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 Minecraft modding (Java Edition)

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.