How do I make it so it detects what mob an entity killed

Started by chesscat on

Topic category: Help with modding (Java Edition)

Last seen on 18:58, 3. Mar 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make it so it detects what mob an entity killed

So an example: A Zombie kills a sheep, how do I detect if it killed a sheep so it spawns a zombie sheep only if the zombie killed a sheep, and not just spawn one mob no matter what mob it kills?