How do I find which item was destroyed in my inventory?

Started by HelloPotatoPerson on Sat, 02/20/2021 - 04:02

Topic category: Help with MCreator software

Last seen on 21:43, 7. Mar 2021
Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I find which item was destroyed in my inventory?
Sat, 02/20/2021 - 04:02

Hello! I'm making a custom enchantment for Totems of Undying called Sky Escape that shoots the player up into the air, then gives them slow falling until they touch the ground. However, I'm having some trouble with the event triggering. I tried to cause it to trigger with health if the player was holding the totem, but to no avail. Instead, I want it to activate when the totem is destroyed. The "item is destroyed" event sounds interesting, but I can't figure out how to track the destroyed item. How is this done?