Custom mob AI attack pathfinding issue.

Started by Ali107 on Sat, 03/11/2023 - 18:26

Topic category: Troubleshooting, bugs, and solutions

Last seen on 16:03, 3. Jun 2023
Joined Jul 2020

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom mob AI attack pathfinding issue.
Sat, 03/11/2023 - 18:26

Version: 2023.1 - 1.18.2


When a mob tries to attack another mob, it would run toward it and attack. 

The thing is that sometimes when a custom mob attacks, it would navigate to its target and just be a tad bit away from its target so that it won't be able to hit it. (tested on biped model)


If two different custom biped mobs want to fight each other, there is a small chance of them just staring at each other without getting close enough in range for them to attack. (something external must nudge one of the attacking mobs in order to let them continue the fight)


To fix it, either make the mob navigation walk closer to the target mob or allow the mod makers to adjust the mob's attack reach.