Skip to content

Jilence/dynamically-image-loader

Repository files navigation

Dynamically Image Loader

The library allows you to dynamically load avatars (the Player Head) into the Minecraft Resource Pack in Minecraft 1.20.*

Test Messages Scoreboard

Note

The library depends on a resource pack that is not included in the library. You need to create a resource pack with the necessary textures and load it into the game.

Installation

Resource Pack

  1. Create a new resource pack or use an existing one.

  2. Incorporate the required textures into the resource pack.

  3. Download the textures from this GitHub Repository and integrate them into your resource pack.

  4. (Optional) If you prefer to remove shadows, download the files and insert them into the assets/minecraft/shaders/core directory of your resource pack.

Dependencies

Gradle Kotlin DSL

implementation("com.github.Jilence:dynamically-image-loader:v1.0.6")

Repository

maven("https://jitpack.io")

Usage

Build a Component

val icon = IconBuilder.Builder()
            .withUsername("Player Name")
            .withAscent(10)
            .buildAsComponent()

Build a String

val icon = IconBuilder.Builder()
            .withUsername("Player Name")
            .withAscent(5)
            .build()

You can place the component or string wherever you desire!

player.sendMessage(icon)

player.sendMessage(icon.append(Component.text("Hello Player!")))

IMPORTANT: ⚠️ To embed your player head into the scoreboard, ensure that the scoreboard doesn't have a character limit. I utilized KTGui for testing purposes. Feel free to use any tool or method you prefer!

About

Dynamically loads skin avatar player heads into minecraft

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors