make mob target player with a condition

Started by Gamerboy24_ on

Topic category: Help with modding (Java Edition)

Last seen on 20:26, 15. Dec 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make mob target player with a condition

I'm trying to make a mob target and attack players who have a player value attached to them when they kill another mob. All my attempts don't work, how would I go about doing this?

Last seen on 19:28, 16. Aug 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not really well informed…
Fri, 07/29/2022 - 08:39

I'm not really well informed about entity ai goals etc but- 

You could make it so when a player kills the desired mob- The player's variable called "KilledMob" can be set to true and the mob attacks the player with those that have it as True