Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How do I set my Entity's size? [1.14.4]

Recommended Posts

Hi! I've encountered a problem where my entity's collision boz is way larger than it's model, is there anyway to fix this? In 1.12 setting the size for an entity was easy, but now I can't seem to find the way to do it. Thanks in advance.

Link to post
Share on other sites

The basic entity size (width and height) is defined when you create the EntityType registry object (example).  This was also the case in 1.12.2, and hasn't really changed.


This width & height is used to set up the entity's bounding box in Entity#setPosition(), which is used for the vast majority of entities (other than paintings, picture frames, leash knots and shulkers, which have their own setPosition() implementations).  This bounding box is centred on the entity's X/Z position, with the Y position at the bottom of the bounding box (e.g. your player bounding box is centered horizontally at your feet, on the ground).

  • Like 2
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.