detecting player got killed by another

Started by e1sh7 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
detecting player got killed by another

I am working on a mod that when a player dies by another player the dead player drops an item which can't be obtained unless u got killed

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Global trigger entity dies…
Thu, 05/29/2025 - 13:34

Global trigger entity dies

If source entity is (sub) type of player and target entity is (sub) type of player

do: spawn dropped item [item] at x: X y: Y z: Z

 

I think that should do it