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

Started by eltadeixc on

Topic category: User side tutorials

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i make an intem drop something when it is destroyed

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

Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.