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

Started by eltadeixc on

Topic category: User side tutorials

Active 5 years ago
Joined Feb 2020
Points:
662

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 3 months ago
Joined May 2014
Points:
1033

User statistics:

  • Modifications: 3
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 321
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.