Erratic Mob Chasing/Attacking Behavior

Started by whales0ng on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Erratic Mob Chasing/Attacking Behavior

I’ve encountered a serious problem with my custom mob’s movement as it attempts to chase and attack its target:

  • The model spins and jolts around during movement, making it struggle to catch up to a fleeing target
  • The mob sometimes seems unable to deal damage to its target, even if it is right on top of it - it may or may not succeed in dealing damage after a delay
  • Here is a clip demonstrating the problem: https://youtu.be/lHNZEsFEn9U?si=M4RWVaH-06JKx1kH

    I suspect that this may have something to do with the mob’s hitbox, as that has been giving me a bit of grief as well due to MCreator only allowing cuboid hitboxes (separate thread asking about that here: https://mcreator.net/forum/107909/custom-entity-hitboxes-length-and-width)

    If anyone has any ideas regarding how to fix this, I would be very grateful to hear them. Manually editing the code is an option as I am working with friends familiar with Java, I would just need to know what files to edit and where to find them.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
still need help with this if…
Sun, 07/07/2024 - 20:27

still need help with this if anyone might be able to offer some advice!

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
help needed with this, if…
Thu, 07/25/2024 - 22:03

help needed with this, if anyone can help or may know someone who can help, please let me know.

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The way I fixed it was by…
Sat, 07/27/2024 - 15:15

The way I fixed it was by messing with the mob hit box making it a bit bigger then the texture, hope this helps -ace 

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hi! thanks so much for…
Sat, 07/27/2024 - 16:02

hi! thanks so much for responding. i will certainly try it, but i’ve adjusted the hitbox many times before to no effect, unfortunately