How do I make a mob drop one of an item when it is killed?

Started by Matt The Banana on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a mob drop one of an item when it is killed?

I have searched far and wide and cannot find a way to make an entity drop one of an item when it is killed. I would like to know one of these two things:

1. Can/How do you drop items using the Event Editor?

2. How do I make it drop one item with code?

I've really been trying to find this. Hopefully you guys can help me out. If so, Thank You!

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you very much! I had…
Tue, 05/21/2019 - 19:57

Thank you very much! I had no idea "spawn gem" spawned a dropped entity! This information is very useful to me.

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello, I'm new to using…
Sun, 09/17/2023 - 08:47
Hello, I'm new to using MCreator and I was coming to see if anyone can help me.

Like Matt, I want to create a procedure so that when an entity dies at the hands of a player it drops an item created by me, but I can't do it.

Could someone send me a screenshot of what it would be like or help me in some way? Thanks in advance.

MCreator Version: 23.1
Minecraft Version: 1.18.2