How to make a customized hitbox?

Started by Victor2015 on

Topic category: Help with modding (Java Edition)

Last seen on 00:05, 23. Nov 2023
Joined Aug 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a customized hitbox?

 Hello everyone, I would like to ask if it's possible to make a customized hitbox. Since the default hitbox form is of a cube, this is bad for making mobs like lizards, fishes, etc, in general, mobs that has a size of X greater than Z and vice versa. See these mobs I've made, they're 3 bosses, one is a huge Lisard with characteristics of a Spinossaurus, his hitbox should be more like a parallelepiped, so it would cover all the model and leave empty what there's no model parts. but istead of this, the hitbox just make pushes the player away because he try to go on its side, or behind it but the hitbox is in this "empty" places and doens't let the player even approaches. is there a way to modify the hitbox form? Also, the "view" (blue line that is aways in front of the head of a mob) can be moved?

The great bird (Named Sky Queen) has a fine hitbox, but the others don't

 

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
mcreator can't help you make…
Fri, 10/30/2020 - 15:01

mcreator can't help you make very complicated things. you will need coding to make customized hitboxes.