Changing item texture/model in-game?

Started by NatePlays95 on

Topic category: Advanced modding

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Changing item texture/model in-game?

I know the "Render" part of the code takes care of picking the texture/model, but how can you change it depending on, maybe the item's nbt or a player attribute?

I'm asking for people that want, for example, make a weapon that visually charges power, or something like a compass that changes according to player direction, or a shield that rotates when you're blocking.

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, that's why I posted on…
Tue, 03/03/2020 - 18:26

Well, that's why I posted on advanced modding, I'm willing to solve it the hard way: java.

I found how entities get their textures in code, and those can be assigned to a nbt value, but for blocks and items I haven't found where on the code it code the json model

 

Gonna search a little more on Minecraft forum