Attack Condition Help

Started by platrbx on

Topic category: Help with MCreator software

Last seen on 09:13, 19. Jan 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Attack Condition Help

Could someone help me figure out how to make it so that if a player's variable (Bounty) is over 10, an npc will attack them? Everything ive tried either doesnt work or results in the game crashing result to "Ticking Entity"

Last seen on 18:20, 18. Apr 2024
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i think you can set them to…
Sun, 03/19/2023 - 07:53

i think you can set them to attack players in the AI, then add a condition “if [variable of (get nearest entity of type player in radius [30])] > 10”

 

i think there’s a better way of doing this but this is what i could think of for now.