Started by
McQuackenstein._.1
on
Topic category: Help with Minecraft modding (Java Edition)
So I'm making a mod that adds lots of additional stuff to Minecraft such as dyes and I was wondering if there was any way to make it like the other dyes so when I right click sheep with it, the sheep will turn the corresponding colour. And how could I also use the dye in banner crafting in crafting tables/looms?
Do I need procedures to do this with the sheep? And do I just add multiple crafting recipes for the banners to get it to work?
For the sheeps you can despawn the sheep then spawn an other entity that have the dye color. Technically it's not the same sheep bue the player will think it is
If anyone finds this again in the future. I have been trying for a while to make new dyes and can make it work for most things, but I cant dye the sheep. I did try to just despawn the sheep and spawn a new one the right color, but nothing happen when I right click said sheep. If anyone know exactly how to do it I would apreciate an answer as hundreds of google searchs resulted in nothing. Only one post ever had an actual picture of the procedure that would be required and it didnt work of course.
To make this, it looks like you have to use custom code for the most part if you want it to mimic exact dye behaviors in game. The base dye register in the code has an integer cap of 0-15, meaning that it's capped out in the base code. I'd recommend checking out the mod Dye Depot and opening that in a program like IntelliJ to examine the code. While observing the code I learned a lot that way