Item plays reequip animation on durability decrease

Started by fifugan_1798 on

Topic category: Help with modding (Java Edition)

Last seen on 04:53, 19. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item plays reequip animation on durability decrease

Ive made an item that gets damaged as it is held but for some reason it plays some kind of reequip animation over and over again resulting in the item not even being visible in the players hand

 

code:

 

https://i.imgur.com/U8bh0dJ.png

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I guess you need an item…
Tue, 07/16/2024 - 00:09

I guess you need an item that when is held makes you faster and damages itself, I made a working procedure for that:

 

-global trigger: on player tick update

-if item in main hand of event target entity= "your item" 

-add potion speed

-deal 1 damage to item in main hand of event target entity

 

I'm not really sure about what caused your problem (maybe something is wrong with what that procedure is triggered by) but this one works perfectly

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Really weird, that procedure…
Thu, 07/18/2024 - 11:10

Really weird, that procedure works for me, what MCreator and Minecraft version are you using?