Hello! Recently I figured out that if you have an instance of a child of the item class, you can override the
int getColorFromItemStack(ItemStack stack, int renderPass) method to change the color of it's associated item programmatically, and leave the textures grayscale, which can be very useful. What I can't figure out is how to change the color of a set of armor being displayed on the player in the program. Overriding the few unique ItemArmor methods don't seem to achieve the desired effect, although I would think that it cannot be too difficult since the leather armor already supports changes. If anyone could help, I'd be very appreciative, thank you!
It looks like overriding ItemArmor#getColor should change the colour of the item when in the inventory and when worn. The colour methods of ItemArmor only support Leather armour by default.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Hello! Recently I figured out that if you have an instance of a child of the item class, you can override the
int getColorFromItemStack(ItemStack stack, int renderPass) method to change the color of it's associated item programmatically, and leave the textures grayscale, which can be very useful. What I can't figure out is how to change the color of a set of armor being displayed on the player in the program. Overriding the few unique ItemArmor methods don't seem to achieve the desired effect, although I would think that it cannot be too difficult since the leather armor already supports changes. If anyone could help, I'd be very appreciative, thank you!
It looks like overriding ItemArmor#getColor should change the colour of the item when in the inventory and when worn. The colour methods of ItemArmor only support Leather armour by default.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.