Started by
Lambda System
on
Topic category: Help with Minecraft modding (Java Edition)
I made a mob that you can dye different colors. I managed to pull it off using GeckoLib and Blockbench's little feature of having multiple textures in one model (It might not be the best method, that i recognize). However, theres an issue that I'm a little stumped on.
The color of the mob resets to it's default color whenever I reload the world (example: i dye it red in game, when i reload the world, it goes back to it's default color; lime. even if its tamed)
I feel like the key to resolving this issue involves NBT tags. If using NBT tags can maybe fix this issue, I'd like to know how I'm supposed to use them. Thanks :]
There is a procedure block to set NBT data on mobs. You probably want a numerical tag. When the entity loads into the world, you can read the value of the NBT tag (using the block in Entity data) to figure out what color it should be.
Adding to what @sillypantscoder said, the numerical value 1 would be red, 2 orange, 3 yellow etc.
i think i understand now. thank you all :]