A custom aggressive mob stands next to the player when attacking and does nothing. How to fix it?

Started by АртемКукумбер on

Topic category: Help with Minecraft modding (Java Edition)

A custom aggressive mob stands next to the player when attacking and does nothing. How to fix it?

Greetings everyone! I created my first mob. Model and animations were made in Blockbench. Customized it, built the AI. Mob in principle as a normal aggressive. If he spots it, he goes and attacks. However, very often, when he approaches, he just stands next to me and just looks at me. If I come closer, he will of course hit me. How do I solve this problem?

I tried increasing the hitbox. Tweaked the speed. Tried to do something with the AI, but I'm not very good at it. None of that helped.