How do i make players drop items on death

Started by yeka_king on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make players drop items on death

I'm new to modding as a whole and I seem to not be able to figure out how to make players drop an item on death and I would rather them dropping only when killed by another player. Also if its possible I want to make the item player specific by maybe using UUID of that player.

I'd really appreciate if anyone could help me with this. Thanks in advance.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I could help with part of it…
Sat, 02/22/2025 - 21:02

I could help with part of it. First make a new procedure with the global trigger entity kills. Then have an if statement with the condition being if source entity is type player. After that make it summon the item. I don't know how to make it specific but just like you said you could have it get the UUID.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could try storing the…
Sun, 02/23/2025 - 01:03

You could try storing the player's xyz in global variables