Detect when player uses Totem

Started by DeathD84 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect when player uses Totem

Pretty simple, I want to detect when a player uses a totem of undying

 

Currently, I tried to use "Entity dies", but that doesn't trigger it, 

and I want to make sure the procedure only sets off on totem use (No way for procedure to set of falsely)

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe you could try using…
Sun, 03/26/2023 - 19:43

Maybe you could try using the "Before entity is hurt trigger" and then check the player's health and if they're holding a totem.

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I was having this same…
Tue, 03/05/2024 - 17:56

I was having this same problem when I realized I could literally just use the "Entity uses a totem" trigger. Try it out! It's so simple.