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.

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use "Do melee attack with…
Sat, 06/14/2025 - 13:11

Use "Do melee attack with range X speed factor Y" block. Usually 1.7 for X fixes that issue, but if it still doesn't work as intended try increasing the number.