Detect what entity killed Player?

Started by JustHaven on

Topic category: Help with modding (Java Edition)

Last seen on 21:46, 29. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect what entity killed Player?

I just simply want to do a statement like:

if [Event/target entity] killed by type: (insert mob here)

do (insert code here)

Is there a way to achieve this?

Last seen on 19:54, 12. Apr 2024
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make some custom entity tags…
Sat, 01/14/2023 - 04:53

Make some custom entity tags for each entity you need, and make a procedure with the 'entity dies' global trigger. Then run the procedure.Screenshot-2023-01-13-225309

Last seen on 15:21, 16. Oct 2023
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Or you can try using "is …
Tue, 01/17/2023 - 15:28

Or you can try using "is (sub) type of" procedure with source entity. 

Last seen on 05:15, 6. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
any way to make this detect…
Tue, 01/09/2024 - 04:12

any way to make this detect if it was a player that killed another player?