need help with global trigger event not cancling

Started by Electroman on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
need help with global trigger event not cancling

I am making a totem expansion mod and am making a totem that steals the item out of the attackers hotbar when the person who owns the totem dies. The code works if an entity kills me but if a non entity cause of death(ex:falling) occurs, I die. I have tried to fix this numerous ways, please help. Code:https://imgur.com/a/xAdoAUQ