How can i make an intem drop something when it is destroyed

Started by eltadeixc on Sat, 03/14/2020 - 14:40

Topic category: User side tutorials

Last seen on 18:13, 19. Apr 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can i make an intem drop something when it is destroyed
Sat, 03/14/2020 - 14:40

hey i am creating a mod but i dont now how to make than when an item is broken (the durability ends) it drops another object

Last seen on 19:12, 29. Oct 2020
Joined May 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I haven't tried this, but…
Tue, 03/17/2020 - 21:58

I haven't tried this, but you could make a procedure that activates on "When block destroyed by tool" or "When mob is hit with tool" and check if the durability is 0. If it is, then drop your item. I am assuming your custom item is a tool and not just a regular item.