How to make a procedure that checks if a mob dies and if it does gives the player an item

Started by BashBomb on Sun, 03/14/2021 - 19:45

Topic category: Help with modding (Java Edition)

Last seen on 01:59, 26. Mar 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a procedure that checks if a mob dies and if it does gives the player an item
Sun, 03/14/2021 - 19:45

I am trying to make a bounty hunter mod that when you kill a specific mob you get a random item, but I don't know how to see when that specific mob dies to the player.

 

This is what I got so far, also the reason it's on google docs is because idk how to put a picture on this so oh well.

 https://docs.google.com/document/d/1HnJ35FcobUPbEv6g8262f9AERyRIx9mocT2JSkaN6FQ/edit?usp=sharing

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
create a new procedure like…
Mon, 03/15/2021 - 12:51

create a new procedure like this:

https://cdn.discordapp.com/attachments/599250311852458006/821002017942143016/unknown.png

this will type the text on screen when any entity is killed by a player.