how can you make it so when someone gets killed the person who killed them gets an item?

Started by Scripticle on

Topic category: Help with MCreator software

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how can you make it so when someone gets killed the person who killed them gets an item?

So I want to make a mod where if you get killed the person who killed you gets an item. But i've been trying for a while and can't seem to figure it out! 

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok. Create mod element…
Sat, 10/15/2022 - 09:41

Ok. Create mod element-procedure, in the procedure there is such a green thing, usually it says "No additional trigger" you have to click on this "no additional trigger" and a list will open for you. Find "entity dies" in it, then create one procedure block, it's in the player procedures tab, procedure:" add 1, red square, item to event/target entity inventory," you need to replace event/target entity with source entity, it's in the minecraft components tab, click on the red box and select the item that should be added, understand?

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
OH I FORGOTthis should all…
Sat, 10/15/2022 - 09:49

OH I FORGOT
this should all be inside "if source entity is (sub) type of player, of if source entity is (sub) type of server player" otherwise the item will always be given when someone kills the entity, with "if" this will only work with the player