Detecting which player killed which mob

Started by nickbug on

Topic category: Help with modding (Java Edition)

Last seen on 16:13, 14. Jul 2019
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detecting which player killed which mob

I saw that you can detect if a player kills an entity. How would you be able to find out which entity and which player?