Tools created do not break with procedure damage.

Started by WeswePengu on Wed, 07/11/2018 - 21:35

Topic category: Bugs and solutions

Last seen on 21:21, 19. Dec 2019
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Tools created do not break with procedure damage.
Wed, 07/11/2018 - 21:35

Hello,

For my mod, I am trying to create an object, using tools, that you right click and regain all hunger (Like a Cornucopia.) I want it to last 5 uses and decrease by 1 each use. But when it reaches 0 on durability, instead of breaking, it just stays at 0 durability in my inventory and continues to be usable.

 

Any work arounds for this?

Last seen on 10:39, 20. Apr 2020
Joined Jan 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Made a quick video on how to…
Mon, 07/16/2018 - 16:21

Made a quick video on how to do it but I forgot one bit. Both links: (Note: External Links to Youtube)

1st

2nd

I'm not bothered to delete them both, combine with vegas, export and re-upload with another description so yeah. Hope this helped.

Last seen on 10:39, 20. Apr 2020
Joined Jan 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Oh and if you want it to…
Mon, 07/16/2018 - 16:23

Oh and if you want it to break, make it remove from inventory using Remove 1 [block] from players inventory] :D You might want to add a custom sound too.