Player kills a mob

Started by ImDaMilan on

Topic category: Help with MCreator software

Active 3 years ago
Joined Feb 2021
Points:
660

User statistics:

  • Modifications: 0
  • Forum topics: 23
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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
Active 1 month ago
Joined Dec 2016
Points:
939

User statistics:

  • Modifications: 2
  • Forum topics: 14
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 124
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.

Active 3 years ago
Joined Feb 2021
Points:
660

User statistics:

  • Modifications: 0
  • Forum topics: 23
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
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.

Active 2 years ago
Joined Mar 2021
Points:
539

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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

Active 2 years ago
Joined Apr 2021
Points:
527

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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.

Active 2 years ago
Joined Mar 2021
Points:
539

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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

Active 1 year ago
Joined Oct 2021
Points:
496

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 46
how do you finnd the thing…
Mon, 10/25/2021 - 05:59

how do you finnd the thing that checks the source of death?