How to spawn an item when entity dies.

Started by _Fox_ on

Topic category: Help with modding (Java Edition)

Last seen on 20:26, 1. Jun 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to spawn an item when entity dies.
Sat, 05/30/2020 - 16:39 (edited)

So I tried to make skeletons drop a custom music disc but I did not know how to do that so I made a custom mob and I want it to drop a custom music disc but it has to be rare.
Right now I'm sitting and trying to make a custom procedure for it but I do not have any skills at making this kind of stuff so I'm asking for help.

Edited by _Fox_ on Sat, 05/30/2020 - 16:39
Last seen on 22:41, 29. Dec 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Have a procedure with the…
Sat, 05/30/2020 - 19:30

Have a procedure with the global trigger, "when entity dies"  (no other trigger) and have the procedure be: 

 

If:   {is entity subtype: skeleton}

   Do: {Spawn Gem at x y z: [music disc]}

 

 

That is if you still want skeletons to drop it.

Last seen on 20:26, 1. Jun 2020
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you very much :3
Mon, 06/01/2020 - 15:51

Thank you very much :3