Started by
ImDaMilan
on
Topic category: Help with MCreator software
Is there a procedure or a way that checks when a player kills a zombie or any kind of mob? And would it be possible to acieve this by using NOT procedure and putting it next to IS ENTITY ALIVE?
Edited by ImDaMilan on Mon, 03/22/2021 - 16:40
You need to look for "Entity dies", then do "If source entity sub type player". This will check if what killed the mob was a player.
Sadly, it doesn't work, what I wanted to create is a procedure that sends a message to a player every time he kills a certain amount of zombies, but I just can't get it to work.
If you are still looking for a solution I have found it for you. You just need to Create a procedure with a criteria of "Entity dies" with an if block and the condition set to "is source entity (sub)type player". Then INSIDE of that if block you have another if block with a condition "is event/target entity (sub)type zombie" and then make it raise a variable (eg zombiesKilled) by one and then check with another if block if said variable has reached the amount you want and finally make it send a message in chat
Where is the "is source entity (sub)type player" block? I have checked in Entity data and it is not there.
if you type on the search bar "(sub)type" it should pop up
how do you finnd the thing that checks the source of death?