How can I change a entity texture when right click with item?

Started by GVS_2008 on

Topic category: Help with modding (Java Edition)

Last seen on 15:26, 3. Jan 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I change a entity texture when right click with item?

I'm making a mod and I want to change the entity texture right clicking with a item,without despawning the entity.
I already saw this in other mods,but I can't find a tutorial.

Someone help,please!

Last seen on 15:09, 13. Jun 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I only know the way of: 1…
Thu, 10/12/2023 - 14:51

I only know the way of:

1 Create a duplicate of your item but chaning the texture.

2-Procedure, When right-Clicked: set item in main hand of [ event/target ] entity to that object

3-You can wait X ticks or another event (like being right clicked again) and change the item again to the other.