Started by
Scripticle
on
Topic category: Help with MCreator software
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!
Topic category: Help with MCreator software
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!
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?
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