Hitboxes for custom entities are inconsistent.

Started by MP1Player on

Topic category: Help with MCreator software

Last seen on 00:39, 23. Sep 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hitboxes for custom entities are inconsistent.

So basically, I am working on a mod with a spider based entity and a slime based entity, both of which attack the player, but theres a main problem. The hitboxes for them are inconsistent. The spider can hit through walls and same with the slime. They have incredibly stupid range and are annoying as heck. For information, the bounding boxes for both to indeed fit their models. So what is going wrong here with my custom entities hitboxes?

Last seen on 00:39, 23. Sep 2023
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, so more developmentā€¦
Thu, 06/11/2020 - 17:49

Alright, so more development: The entities hitboxes are actually in line correctly, but the range is still completely stupid. It can still hit through walls. I dont know what is going on here. If its something wrong with the AI, here it is:

  1. Fight attacker mobs back, call for help (check)
  2. Do melee/contact attack with speed factor (0.5) (Chase after lost sight not checked)
  3. Wander Around with speed factor (0.4)
  4. Look around
  5. Swim when in water