how do i detect a players death

Started by LexBoyje on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i detect a players death

I'm making a mod where the worldborder plays a big role.

I'm trying to make it so that when the player dies it shrinks the worldborder by 5 blocks, however I'm having an issue where i can't find the right procedure to detect specificly the player died and then execute the correct command

i currently have is set up like this

Event trigger = entity dies --> execute command "worldborder add -5 20" in name of event/target entity

this seems to do nothing when entities of any type die ingame (I've tried using source entity and it didnt help. I'm also sure I've got the correct command)

 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a block "Is ___ …
Thu, 10/20/2022 - 08:41

There is a block "Is ___ (sub)type of ___" (you can searching). Use this in an IF statement to detect if entity is the one you want.