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

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry but how would I be…
Mon, 02/24/2025 - 00:40

Sorry but how would I be able to do that?

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have a procedure called on…
Mon, 02/24/2025 - 01:59

Have a procedure called on player tick that does: set variable x to event/target x and then repeat for y and z.

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did it like this: https:/…
Wed, 02/26/2025 - 01:11

I did it like this: https://imgur.com/a/Zhbboom but I keep getting an error. I think it has to do with the type of variable but I am unsure.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you show me the build…
Wed, 02/26/2025 - 14:21

Can you show me the build log?

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That error doesn't have to…
Thu, 02/27/2025 - 00:06

That error doesn't have to do with the procedure I don't think.