How to set a mob to only attack when target is in water

Started by scepticsquirrel on Mon, 01/18/2021 - 22:50

Topic category: Help with MCreator software

Last seen on 21:31, 5. Feb 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to set a mob to only attack when target is in water
Mon, 01/18/2021 - 22:50

Hello, i would like to make my water mob attack only when its target is in the water, i have made the procedure:

Return: Is (Get entity [Event entity] is targeting) in water?

and set it to the additional start and continuation conditions in the Mob AI tab, now when the procedure is set on the start condition it crashes the game, but when it is set to only the continuation condition, my mob attacks me outside of the water anyways? any help is appreciated :/