how to check if the entity that killed the player is a player

Started by edenskilton on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to check if the entity that killed the player is a player

how to check when a player is killed was it killed by another player

I suggest you check our…
Thu, 04/30/2026 - 10:50

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

Joined Jun 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First set the global trigger…
Mon, 06/08/2026 - 20:19

First set the global trigger to "entity dies" and then get an if do block from the flow control tab. Next get the "is sub type of entity" procedure block and select "player" in the detection block

Get an if do block from the flow control tab and put it in the "do" section of the first if do block. Then go to the bottom of the logic tab and get the "is sub type of entity" procedure block and replace "event/target entity" with "source entity" from the Minecraft components tab and then select "player" in the entity detection block. 

Now you can put the procedure logic you want in the second if do blocks "do" section.