Changing item texture/model in-game?

Started by NatePlays95 on Mon, 03/02/2020 - 12:19

Topic category: Advanced modding

Last seen on 00:06, 7. May 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Changing item texture/model in-game?
Mon, 03/02/2020 - 12:19

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.

Last seen on 00:06, 7. May 2020
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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