Hitbox
A hitbox defines the physical "boundaries" (or an approximation thereof) of a block or entity. Hitboxes are utilised in the calculations of collisions and targeting.
Unlike with block models, all hitboxes' sizes are hard-coded and cannot be changed independently without modification. However, it can be scaled via minecraft:scale
attribute.
Entities' hitboxes are color-coded, and can be seen through the F3 + B debug hotkey.
Entity hitboxes[edit | edit source]
Bounding box[edit | edit source]
The bounding box manages an entity's collision with other entities and blocks. It is also used for detecting hits and interactions from players, villagers, arrows, and other entities.
The bounding box is shown as a white color-coded hitbox around the entities.[Java Edition only] It moves with the entity but maintains a static orientation without rotating.
An entity's bounding box can transform into different shapes depending on the situation. For instance, a pufferfish when approached by players gradually expands its shape, from unpuffed, to semi-puffed, then to fully puffed. It instantly shrinks its shape back to normal once it cools down. Players can also change their bounding box by sneaking, crawling, swimming, gliding, or any other means.
Eye height[edit | edit source]
The eye height shows an entity's eyes placement. It is used for detecting when an entity is submerged in a water or phasing through a solid block. In this state, the game usually times the entity running out of air or suffocate.
The eye height is also used to determine if two entities can see and follow each other by their eye contact.[1]
The eye height is shown as flat red lines typically appearing on entities' eyes or head.
A long blue tint placed in-line with the eye height hitbox shows which direction entities are looking.
Passenger attachment point[edit | edit source]
The passenger attachment point shows the point where an entity passenger is attached on a mountable entity.
The passenger attachment point is shown as a small green hitbox. This hitbox appears on a mountable entity when it is mounted by another entity.
When an entity mounts another entity, the passenger's bounding box aligns precisely with the bottom side of the passenger attachment point hitbox.
Block hitboxes[edit | edit source]
Collision box[edit | edit source]
The collision box manages block collision with entities. The collision boxes for blocks are usually shaped in cubes, but some may have different shapes, like slabs, lecterns, fences, and stairs.
A collision box may not be present for all blocks, like non-solid blocks such as grass, sign, button, lever and torch have no collision box. Some blocks may have custom collision box that make them semi-solid, like scaffolding and hanging sign.
While most blocks have their collision box identical to their interaction box, some may have different collision box compared to their interaction box counterpart. For instances, the lecterns' collision box do not extend into the upper part of their interaction box, and the fences' collision box are a bit taller than their interaction box.
Interaction box[edit | edit source]
The interaction box manages block interactions with entities, such as block placement, destruction, right-click, and other interactions. The interaction box is shown in black outlines around the block's edges when looking at the given block; this is especially visible in the barrier block.
The interaction boxes for blocks are usually contained within its own 1×1×1 cube space, but some blocks are capable of extending outside of this space.[2] There are several instances where this can be seen:
- The arm of an extended piston – specifically the part that protrudes into the piston's block space.[2][3]
- The extended top of an opened shulker box.[2]
- The very top part of a lectern's head.[2] This is especially obvious when a block is placed above the lectern, making lectern's outline overlap with the block.
This behavior is caused by the ray-casting that usually detect the interaction box precense to never collide with it, even though it should.[2]
Miscellaneous hitboxes[edit | edit source]
Third-person view camera collision box[edit | edit source]
The third-person view camera has a collision box that collides with solid blocks, but doesn't collide with transparent blocks, such as glasses and glass panes, and non-solid blocks. However, the third-person view camera does collide with the barrier block.
Smoke particles collision box[edit | edit source]
Smoke particles have a collision box that collides with solid blocks. Smoke particles come from the campfire, and have collision unlike other particles, which usually phase through blocks and entities. Likewise, smoke particles do not collide with transparent blocks and non-solid blocks, but collide with the barrier block.
List of entities' hitboxes[edit | edit source]
Most entities' bounding boxes are shaped in cuboids, and do not always overlap with the models of the entities. For example, the witch's bounding box does not include the upper part of its hat, and the wither's bounding box does not include the two heads on its sides. Because most bounding boxes are cuboids, it is standard to measure them by their width and height, with both being measured in blocks tall.
Not all entities have a single cuboid bounding box, some entities like the ender dragon have multiple distinct hitboxes. The list mainly shows the sizes of an entity's bounding box or similar. Other hitboxes may be include in the notes.
Java Edition hitboxes are shown first, unless stated otherwise.
- Varies indicates that entity has variable hitbox sizes.
- None indicates that entity does not have hitbox sizes.
- N/A indicates that no data is available for the hitbox sizes.
- Empty cell indicates that entity may not have hitbox sizes or no data is available. (None or N/A)
Entity | Height | Width | Height (Baby) | Width (Baby) | Note |
---|---|---|---|---|---|
Allay | 0.6 | 0.35 | |||
Armadillo | 0.65 | 0.7 | 0.39 | 0.42 | |
Armor Stand | 0.5 | 1.975 | 0.25 | 0.9875 | |
Axolotl | 0.42 | 0.75 | 0.21 | 0.375 | |
Bat | 0.9 | 0.5 | |||
Bee | 0.6 | 0.7 | 0.3 | 0.35 | |
Blaze | 1.8 | 0.6 | |||
Bogged | 1.99[JE only] 1.9[BE only] | 0.6 | |||
Breeze | 1.77 | 0.6 | |||
Camel | 2.375 | 1.7 | 1.1875 | 0.85 | Adult (sitting): Height: 0.945 blocks Width: 1.7 blocks Baby (sitting): |
Cat | 0.7 | 0.6 | 0.35 | 0.3 | |
Cave Spider | 0.5 | 0.7 | |||
Chicken | 0.7 | 0.4 | 0.35 | 0.2 | |
Cod | 0.3 | 0.5 | |||
Cow | 1.4 | 0.9 | 0.7 | 0.45 | |
Creaking [upcoming Drop] | 2.7 | 0.9 | |||
Creeper | 1.7 | 0.6 | |||
Dolphin | 0.6 | 0.9 | 0.39[BE only] | 0.585[BE only] | |
Donkey | 1.5 | 1.3965 | 0.75 | 0.6982 | |
Drowned | 1.95 | 0.6 | 0.975 | 0.3 | |
Elder Guardian | 1.9975 | 1.9975 | |||
Ender Dragon | 8 | 16 | Bounding box only. Green hitboxes are not counted. | ||
Enderman | 2.9 | 0.6 | Angry: Height: 3.25 blocks Width: 0.6 blocks | ||
Endermite | 0.3 | 0.4 | |||
Evoker | 1.95 | 0.6 | |||
Fox | 0.7 | 0.6 | 0.35 | 0.3 | |
Frog | 0.5 | 0.5 | |||
Ghast | 4.0 | 4.0 | |||
Giant[JE only] | 12 | 3.6 | |||
Glow Squid | 0.8 | 0.8 | |||
Goat | 1.3 | 0.9 | 0.65 | 0.45 | Adult (jumping): Height: 0.91 blocks Width: 0.63 blocks Baby (jumping): |
Guardian | 0.85 | 0.85 | |||
Hoglin | 1.4 | 1.3965 | 0.7 | 0.6982 | |
Horse | 1.6 | 1.3965 | 0.8 | 0.6982 | |
Husk | 1.95 | 0.6 | 0.975 | 0.3 | |
Illusioner[JE only] | N/A | N/A | |||
Iron Golem | 2.7 | 1.4 | |||
Llama | 1.87 | 0.9 | 0.935 | 0.45 | |
Magma Cube | Varies | Varies | Big: Height: 2.08 blocks Width: 2.0808 blocks Medium: | ||
Mooshroom | 1.4 | 0.9 | 0.7 | 0.45 | |
Mule | 1.6 | 1.3965 | 0.8 | 0.6982 | |
Ocelot | 0.7 | 0.6 | 0.35 | 0.3 | |
Panda | 1.25 | 1.3 | 0.625 | 0.65 | |
Parrot | 0.9 | 0.5 | |||
Phantom | 0.5 | 0.5 | |||
Pig | 0.9 | 0.9 | 0.45 | 0.45 | |
Piglin | 1.95 | 0.6 | |||
Piglin Brute | 1.95 | 0.6 | |||
Pillager | 1.95 | 0.6 | |||
Player | 1.8 | 0.6 | Sneaking: Height: 1.5 blocks Width: 0.6 blocks Gliding/swimming: | ||
Polar Bear | 1.4 | 1.4 | 0.7 | 0.7 | |
Pufferfish | Varies | Varies | Unpuffed: Height: 0.35 blocks Width: 0.35 blocks Semi-puffed: Height: 0.49 blocks Width: 0.49 blocks Fully Puffed: Height: 0.7 blocks Width: 0.7 blocks | ||
Rabbit | 0.5[JE only] 0.402[BE only] | 0.4[JE only] 0.402[BE only] | 0.25[JE only] 0.268[BE only] | 0.2[JE only] 0.268[BE only] | |
Ravager | 2.2 | 1.95 | |||
Salmon | 0.4 | 0.7 | Bedrock Edition has small, medium, and large variants.
Small Salmon: | ||
Sheep | 1.3 | 0.9 | 0.65 | 0.45 | |
Shulker | Varies | 1 | Closed: Height: 1 block Width: 1 block Peeking: | ||
Silverfish | 0.3 | 0.4 | |||
Skeleton | 1.99 | 0.6 | |||
Skeleton Horse | 1.6 | 1.3965 | 0.8 | 0.6982 | |
Slime | Varies | Varies | Big: Height: 2.08 blocks Width: 2.0808 blocks Medium: Height: 1.04 blocks Width: 1.0404 blocks Small: Height: 0.52 blocks Width: 0.5202 blocks | ||
Sniffer | 1.75 | 1.9 | 0.875[JE only] 0.7875[BE only] | 0.95[JE only] 0.855[BE only] | |
Snow Golem | 1.9 | 0.7 | |||
Spider | 0.9 | 1.4 | |||
Squid | 0.8 | 0.8 | |||
Stray | 1.99 | 0.6 | |||
Strider | 1.7 | 0.9 | 0.85 | 0.45 | |
Tadpole | 0.3 | 0.4 | |||
Tropical Fish | 0.4 | 0.5 | |||
Turtle | 0.4 | 1.2 | 0.12 | 0.36 | |
Vex | 0.8 | 0.4 | |||
Villager | 1.95 | 0.6 | 0.975 | 0.3 | |
Vindicator | 1.95 | 0.6 | |||
Wandering Trader | 1.95 | 0.6 | |||
Warden | 2.9 | 0.9 | While digging/emerging:[needs testing in Bedrock Edition] Height: 1 block Width: 0.9 blocks | ||
Witch | 1.95 | 0.6 | |||
Wither | 3.5 | 0.9 | |||
Wither Skeleton | 2.4 | 0.7 | |||
Wolf | 0.85[JE only] 0.8[BE only] | 0.6 | 0.425[JE only] 0.4[BE only] | 0.3 | |
Zoglin | 1.4 | 1.3965 | 0.7 | 0.6982 | |
Zombie | 1.95 | 0.6 | 0.975 | 0.3 | |
Zombie Horse | 1.6 | 1.3965 | 0.8 | 0.6982 | |
Zombie Villager | 1.95 | 0.6 | 0.975 | 0.3 | |
Zombified Piglin | 1.95 | 0.6 | 0.975 | 0.3 |
Entity | Height | Width |
---|---|---|
Area Effect Cloud | 0.5 | Varies |
End Crystal | 2 | 2 |
Evoker Fangs | 0.8 | 0.5 |
Fishing Bobber | 0.25 | 0.25 |
Glow Item Frame | N/A | N/A |
Item Frame | N/A | N/A |
Leash Knot | 0.5 | 0.375 |
Interaction[JE only] | Varies | Varies |
Marker[JE only] | None | None |
Block Display[JE only] | None | None |
Text Display[JE only] | None | None |
Item Display[JE only] | None | None |
Painting | N/A | N/A |
Entity | Height | Width | Note |
---|---|---|---|
Arrow and Tipped Arrow | 0.5 | 0.5 | Eye Height: 0.13 blocks |
Bottle o' Enchanting | 0.25 | 0.25 | |
Dragon Fireball | 1 | 1 | |
Egg | 0.25 | 0.25 | |
Ender Pearl | 0.25 | 0.25 | |
Eye of Ender | 0.25 | 0.25 | |
Fireball | 1[JE only] 0.31[BE only] | 1[JE only] 0.31[BE only] | |
Firework Rocket | 0.25 | 0.25 | |
Llama Spit | 0.25 | 0.25 | |
Shulker bullet | 0.3125 | 0.3125 | |
Small Fireball | 0.3125 | 0.3125 | |
Snowball | 0.25 | 0.25 | |
Spectral Arrow | 0.5 | 0.5 | |
Thrown Lingering Potion | 0.25 | 0.25 | |
Trident | 0.5 | 0.5 | |
Wind Charge | 0.3125 | 0.3125 | |
Wither Skull | 0.3125 | 0.3125 |
Entity | Height | Width |
---|---|---|
Boat | 0.5625 | 1.375 |
Boat with Chest | 0.5625 | 1.375 |
Minecart | 0.7 | 0.98 |
Minecart with Chest | 0.7 | 0.98 |
Minecart with Command Block | 0.7 | 0.98 |
Minecart with Furnace | 0.7 | 0.98 |
Minecart with Hopper | 0.7 | 0.98 |
Minecart with Monster Spawner | 0.7 | 0.98 |
Minecart with TNT | 0.7 | 0.98 |
Entity | Height | Width |
---|---|---|
Experience Orb | 0.5[JE only] 0.25[BE only] | 0.5[JE only] 0.25[BE only] |
Item | 0.25 | 0.25 |
Entity | Height | Width |
---|---|---|
Falling Block | 0.98 | 0.98 |
Primed TNT | 0.98 | 0.98 |
Ender dragon[edit | edit source]
The ender dragon has nine distinct hitboxes, consisting of a single massive white hitbox with eight small green hitboxes inside. These green hitboxes move as the ender dragon flies, but do not rotate. Players can damage the ender dragon by hitting one of their green hitboxes.
Variable hitbox sizes[edit | edit source]
The size of an entity's hitbox is not necessarily static and may change depending on certain situations. For instance, a player's hitbox gets smaller while crouching, and the hitbox of a pufferfish changes while its puffed. Below is the list of entities whose hitbox can change sizes given specific situations.
Enderman | Normal | Angry |
---|---|---|
Height | 2.9 | 3.25 |
Width | 0.6 | 0.6 |
Player | Normal | Sneaking | Gliding/swimming | Sleeping |
---|---|---|---|---|
Height | 1.8 | 1.5 | 0.6 | 0.2 |
Width | 0.6 | 0.6 | 0.6 | 0.2 |
Pufferfish | Unpuffed | Semi-puffed | Fully Puffed |
---|---|---|---|
Height | 0.35 | 0.49 | 0.7 |
Width | 0.35 | 0.49 | 0.7 |
Shulker | Closed | Peeking | Open |
---|---|---|---|
Height | 1 | 1.2 | 2 |
Width | 1 | 1 | 1 |
History[edit | edit source]
Block hitboxes[edit | edit source]
- The hitboxes of pointed dripstone in Java Edition 20w48a could sometimes also randomly extend into adjacent blocks, allowing this to be seen.[4] Fixed in Java Edition 20w49a.
- The hitboxes of melon stems and pumpkin stems with ages 8[verify] and over could visually extend into the block space above them while they existed (from Beta 1.8 Pre-release up to the removal of the last four in 14w10a and the remaining four in 14w25a).
- The hitboxes of cakes with 8[verify] or more bites could extend into the adjacent block space while these existed (from Beta 1.2 up to their removal in 14w26a).
- The hitboxes of cakes and cacti at far distances could previously (from Beta 1.2 and Alpha v1.0.11 respectively up to their fixing, although it became unobservable for cake from 15w38a onward due to MC-106300 — resolved as "Fixed".) also become greater than a full block, allowing this to be seen.
Collision box[edit | edit source]
Java Edition | |||||||
---|---|---|---|---|---|---|---|
1.0.0 | Beta 1.9 Prerelease 2 | Fences no longer have a full block hitbox on the xz plane, and instead more closely match their shape. | |||||
1.1 | 12w01a | The fence gate hitbox has changed to match the changes made to fence hitboxes. | |||||
1.4.4 | 1.4.3 | Walls now have their own collision box size - previously they shared their size with fences.[5] | |||||
The above change also fixed a bug causing their hitboxes to distort and stop working correctly at far distances from the world origin. | |||||||
1.5 | 13w06a | Fence hitboxes have been changed - concave corners now have their collision boxes respect that rather than always using its effective convex hull, resulting in an invisible portion of collision box there. | |||||
The above change also fixed a bug causing their hitboxes to distort and stop working correctly at far distances from the world origin. | |||||||
1.13 | 17w47a | The hitbox of brewing stands now takes into account the central rod as well.[6][verify] | |||||
The collision box of walls has been made to be correctly concave.[7][verify] | |||||||
1.14 | 19w13a | The outline boxes of cauldrons now fit the model better, allowing for blocks beneath it to be targeted.[8][verify] |
Interaction box[edit | edit source]
Java Edition pre-Classic | |||||||
---|---|---|---|---|---|---|---|
rd-132211 | Targeted blocks now have a visual indicator in which they alternate between bright and dark continuously. | ||||||
Java Edition Classic | |||||||
0.0.13a | Targeted blocks also have a thin outline box. | ||||||
0.24_SURVIVAL_TEST | The holographic pulsating hitbox displayed when able to place or break a block has been removed, leaving just the wireframe hitbox. | ||||||
? | The hitboxes for some blocks (flowers, mushrooms, torches) are no longer full cubes, and are more fitting for the size of the block. | ||||||
Java Edition Infdev | |||||||
Minecraft Infdev | 20100313 | Prior to this version, the wireframe hitbox for highlighting blocks would behave increasingly incorrectly at far distances from the world origin. On all supported hardware, its position would jitter erratically with small shifts in camera rotation. On some GPUs/graphics cards, the geometry of the box would also distort, resulting in non-cubic shapes. | |||||
Java Edition Alpha | |||||||
v1.0.11 | The hitbox of cacti at far distances became greater than a full block. | ||||||
Java Edition Beta | |||||||
1.2 | The hitbox of cakes at far distances became greater than a full block. | ||||||
Java Edition | |||||||
? | Stairs cannot be targeted at angles where the crosshair does not point at a solid feature of the block. However, the wireframe outline still displays as a full cube regardless. | ||||||
? | The hitboxes for randomly misaligned blocks such as tall grass are now themselves randomly offset as well to accommodate them. | ||||||
1.9 | 15w38a | Cake's wireframe hitbox now always appears at (0,0,0) regardless of where the targeted cake actually is. This also masks a distance issue fixed in 15w49a - see below. | |||||
15w46a | The hitbox of redstone wire now covers only part of the surface of the block below, based on the orientation of the redstone. | ||||||
15w49a | Prior to this snapshot, the wireframe hitboxes used for cake and cactus would appear stretched and misshapen at far distances from spawn. | ||||||
15w49b | The hitbox height of the end portal block has been increased from 1⁄16 of a block to 3⁄4 of a block. | ||||||
1.11 | 16w35a | Cake's hitbox now appears at the right position again.[9] | |||||
1.13 | 17w47a | The outline boxes of anvils and hoppers now much more closely fit the model shape of these blocks. | |||||
The hitbox of brewing stands now takes into account the central rod as well.[10][verify] | |||||||
The outline boxes of fences is now correctly L-shaped, T-shaped or +-shaped when branching in perpendicular directions.[11] | |||||||
Cactus now has a correct cuboid outline box.[12] | |||||||
Blocks containing multiple vines now have better outline boxes. | |||||||
Glass panes and iron bars have cleaner outline boxes when branching. | |||||||
End portal frame outline boxes now properly account for the eye. | |||||||
Piston and lily pad outline boxes were changed. | |||||||
The collision box of walls has been made to be correctly concave.[13][verify] | |||||||
1.14 | 18w48a | The outline boxes of beds now match better the visual shape of the bed. | |||||
19w13a | The outline boxes of cauldrons now fit the model better, allowing for blocks beneath it to be targeted.[14] | ||||||
1.16 | 20w10a | Fire now has an outline box (alongside soul fire),[15] bringing it more in line with other blocks. Previously, fire had no outline box at all, and breaking it required targeting underlying blocks, which also allowed it to be put out in Creative mode when holding a sword or trident, which were programmed to not break blocks. It also prevented its block states from being read in the debug screen or modified via debug stick. | |||||
20w18a | The outline box of redstone wire has been changed to much more closely the visual shape of the block. For example, redstone wire branching in different directions causes its outline box to itself branch in said directions,[16] mirroring the behavior of fences, glass panes, iron bars and walls, and, if traveling up the side of a block, the vertical portion of the dust can now also be targeted.[17] |
Entity hitboxes[edit | edit source]
Java Edition | |||||||
---|---|---|---|---|---|---|---|
1.4.4 | 1.4.3 | F3 + B now shows the hitbox around entities. At this point, the hitbox is white and opaque and does not have an outline. | |||||
1.7.2 | 1.7.1 | Debug entity hitboxes have visually changed to be more intuitive. | |||||
1.20.2 | 23w31a | F3 + B now shows the passenger's attachment point on the entity it's riding. |
Issues[edit | edit source]
Issues relating to "Hitbox" are maintained on the bug tracker. Issues should be reported and viewed there.
Gallery[edit | edit source]
Screenshots[edit | edit source]
-
Ender dragon has nine distinct hitboxes.
-
Wither heads don't have a hitbox of its own.
-
Sheep has the same hitboxes despite being upside down.
-
Netherite, diamond, and emerald have entity hitboxes.
-
Pseudo-blocks like item frame and painting have entity hitboxes.
References[edit | edit source]
- ↑ "How crawling came to Minecraft" by Henrik Kniberg – minecraft.net, July 21, 2020.
- ↑ a b c d e MC-158827
- ↑ MC-124459
- ↑ MC-206643 — resolved as "Fixed".
- ↑ MC-1332 — resolved as "Fixed".
- ↑ MC-4504 — resolved as "Fixed".
- ↑ MC-2666 — resolved as "Fixed".
- ↑ MC-129205 — resolved as "Fixed".
- ↑ MC-106300 — resolved as "Fixed".
- ↑ MC-4504 — resolved as "Fixed".
- ↑ MC-12000 — resolved as "Fixed".
- ↑ MC-59610 — resolved as "Fixed".
- ↑ MC-2666 — resolved as "Fixed".
- ↑ MC-129205 — resolved as "Fixed".
- ↑ MC-163655 — resolved as "Fixed".
- ↑ MC-137336 — resolved as "Fixed".
- ↑ MC-153508 — resolved as "Fixed".
[edit | edit source]
General mechanics | |
---|---|
Survival | |
Combat | |
Environment | |
Movement | |
User interface | |
Visuals |