How to get specific mobs to attack player depending on if the player killed one of that mob

Started by knight_974 on

Topic category: Help with modding (Java Edition)

Last seen on 19:44, 18. Jun 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get specific mobs to attack player depending on if the player killed one of that mob

I'm making a mod but I can't get how to do it cause I have a player session variable and a mob variable. So for example if the player killed 10 of that mob the mob will automatically attack the player. But if the player killed 10 of its enemy mob then the player can't attack that mob anymore.