How to dynamically change an item color? #5031
-
DescriptionBefore starting, these are the versions I am working with: yarn_mappings=1.21.10+build.2; fabric_version=0.138.3+1.21.10. Please let me know if you need more info. I am trying to create an item that has two layers, and one of them should be colored depending on some variable (like the potions). I tried following @dicedpixels' (sorry for @'ing you) guide on Item Appearance, but I can't find the ItemTintSources mentioned at the end of the tutorial. Also, I tried following some other tutorial on how to do the same, and they mentioned ColorProviderRegistry.ITEM (even on this question on the discussions page), but this apparently was removed, and only BLOCK is left on this class. Any clues on how can I do this? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
|
Beta Was this translation helpful? Give feedback.
ColorProviderRegistry.ITEMwas removed in 1.21.4. The tutorial does not mention it, please re-read that tutorial and see the vanilla potion client item (assets/minecraft/items/potion.json).