Player kills a mob

Started by ImDaMilan on

Topic category: Help with MCreator software

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player kills a mob
Mon, 03/22/2021 - 16:40 (edited)

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
Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to look for "Entity…
Mon, 03/22/2021 - 19:00

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.

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sadly, it doesn't work, what…
Mon, 03/22/2021 - 21:55

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.

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you are still looking for…
Wed, 07/21/2021 - 10:34

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

Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where is the "is source…
Thu, 07/22/2021 - 02:16

Where is the "is source entity (sub)type player" block? I have checked in Entity data and it is not there.

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you type on the search…
Sun, 07/25/2021 - 16:20

if you type on the search bar "(sub)type" it should pop up