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

Started by knight_974 on Thu, 03/04/2021 - 17:49

Topic category: Help with modding (Java Edition)

Last seen on 20:41, 1. Apr 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to get specific mobs to attack player depending on if the player killed one of that mob
Thu, 03/04/2021 - 17:49

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.