Is it possible to change the bounding box size for an entity in version forge 1.20.1?

Started by BluePhoenixV on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to change the bounding box size for an entity in version forge 1.20.1?

I'm making a single boss entity for me and my friends to fight as a sort of secret in a modpack we're developing and the entity is rather large at over 5 blocks tall with that being the exact height of it's bounding box

After having experienced dweller type mobs I wanted to add the ability for this entity to crouch down and move through spaces smaller then this but I cannot for the life of me find any information on how other people developing mods have done this and after browsing through the forum through various versions, searching through dead links, asking AI about these issues and trying to use a deprecated method for 5 hours straight I feel like I should ask real people before continuing, my final solution will be reducing the hitbox to 3 blocks tall and removing everything to do with changing the hitbox size

I've been trying to use the class EntityDimensions to get the dimensions of the entity and using the scalable method to change the width and height of the bounding box but have gotten dozens of ';' expected and not a statement errors without understanding why