Dont break items when at 0 durability

Started by TheSkruffy on Thu, 07/23/2020 - 14:49

Topic category: Help with modding (Java Edition)

Last seen on 06:40, 26. Aug 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Dont break items when at 0 durability
Thu, 07/23/2020 - 14:49

I wanted to make a ranged wepon that only has 20 durrability and doesn't use ammo, and when it breaks it gives you an unusable verison of the wepon taht can be repaired. Can someone help

Last seen on 16:07, 31. Dec 2020
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I might be wrong but this…
Thu, 07/23/2020 - 18:20

I might be wrong but this will probably be only possible in the 2020.4 update, as it states in the changelog.
"Added "on item broken" global procedure trigger".

You could use that procedure to give yourself a different version of the item.

Last seen on 06:40, 26. Aug 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
yes, i will try, i was…
Thu, 07/23/2020 - 20:12

yes, i will try, i was hoping just for that, Tny mate