Detect when player uses Totem

Started by Noii on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 months ago
Joined Jan 2016
Points:
872

User statistics:

  • Modifications: 0
  • Forum topics: 19
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 71
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)

Active 4 weeks ago
Joined Mar 2023
Points:
297

User statistics:

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

Active 3 months ago
Joined Sep 2021
Points:
978

User statistics:

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