How can i detect if the player killed a certain entity?

Started by Estam on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i detect if the player killed a certain entity?

Im making a custom advancment that adds an advancment "betrayl" when you kill an iron golem. 

I included my procedure here

https://www.mediafire.com/view/xm17ouyk6oj3err/image%25282%2529.png/file

it doesnt work for some reason :/

please help

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the first: is entity player…
Fri, 08/13/2021 - 23:43

the first: is entity player replace the "Event/target entity" with "Source entity".

after that it should work.

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Click on entity Click on…
Sat, 08/14/2021 - 07:42

Click on entity

Click on trigger

Make procedure "when entity dies".

 

With method above. You will only need the achievement block/procedure.

 

Chew

 

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just delete it and put it on…
Mon, 08/16/2021 - 19:22

Just delete it and put it on the custom mob on the "Entity died" trigger, then make it so the achievement will only be given if the source entity is a player, then add the achievement block in the if. But the entity needs to be custom, and the picture looked like it would be checking an iron golem.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Actually, you are checking…
Mon, 08/16/2021 - 19:22

Actually, you are checking it.