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

Started by Estam on

Topic category: Help with modding (Java Edition)

Last seen on 13:07, 23. Apr 2023
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

Last seen on 00:03, 27. May 2022
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.

Last seen on 09:42, 5. Sep 2023
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

 

Last seen on 20:23, 30. Oct 2023
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.

Last seen on 20:23, 30. Oct 2023
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.