Item texture change based in a variable

Started by FroakieGamer12260 on

Topic category: Help with modding (Java Edition)

Last seen on 20:41, 23. Apr 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item texture change based in a variable

for exemple, if a variable is 1, the texture is an circle, if variable is 2, is an square, 0 if an star

Last seen on 02:33, 27. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can do this using item…
Mon, 02/12/2024 - 12:56

You can do this using item properties. In this case, the procedure that returns the item property would return a different number for each possible state of the variable, and then you would link each number to one of the textures. If you want it to be based on the itemstack rather than one of the player's variables, you could do the same thing using an NBT tag as the reference.