How can I make a hostile ranged mob avoid the player

Started by flexx1 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make a hostile ranged mob avoid the player
Sun, 06/29/2025 - 00:38 (edited)

i have a boss mob that flies and shoots projectiles but i want the mob to actively avoid the player to make it harder to hit them with melee attacks and to force the player to use ranged means of damage, but my method doesnt seem to work

 

i have provided an image with what i have so far

 

any help would be appreciated

 

Edited by flexx1 on Sun, 06/29/2025 - 00:38