mojira.dev
MC-11242

When you jump and place a fence post under you you will get inside the fence post

The bug

When you jump and place a fence post under you you will get inside off the fence post.

Note: This works correctly for fence gates and cobblestone walls.

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The class BlockFence is not overriding the method net.minecraft.block.Block.getCollisionBoundingBox(IBlockState, IBlockAccess, BlockPos) and therefore returns the hitbox instead of the collision box.

Related issues

MC-18775 Stuck in Fence MC-21717 Glitch Through fences MC-32506 Fall inside of fence MC-36037 Fence posts MC-41081 Fence Occlusion MC-48728 Minecraft 1.7.4 - Fence Hitbox Glitch? MC-50003 Noclip Fences MC-51062 Fences are placeable while jumping MC-64166 Fences are Temporarily Non-Solid when Placed directly beneath player MC-70017 Falling through fence if placed on side of a Block while crouching MC-70856 Able to jump and place a fence which causes a character to be stuck in a fence MC-73075 Fences are ghosts that you can see MC-79411 When placing down a fence (any wood type) and flying down to it quickly, you get inside it. MC-79666 Can jump inside fences while placing MC-91474 Fence hitbox error? MC-92766 A hitbox glitch I don't see going away any time soon MC-131147 An error with the fences

Attachments

Comments

migrated
[media][media]
kumasasa

Confirmed.
Ouch. That looks like it hurt. (Sic!)

migrated

Confirmed

migrated

Affects 13w42b

migrated

Affects 14w04a

migrated

Confirmed for 14w21b.

migrated

Confirmed for 1.8.1-pre2.

Suggested fix for the devs:
Replace the 1.5 block high collision box of the fence with a 1 block high one that matches the visual shape, and then add an invisible 0.5 block high collision box on top. This will not be a perfect solution, it just means that if a player manages to fall through the top 0.5 block section, they will be standing on what is effectively a 1 block high internal support platform. Due to the fact that the fence is only visually 1 block high anyway, this would mean a player wouldn't even appear to be inside the fence.

migrated

Confirmed in 1.8.3. The fact that you can fall though it is intended, you are inside the fence's hitbox, and that is how crouching works. The actual bug is that you can place the fence there in the first place. The game should detect that the block would intersect your hitbox and should prevent the placement like it does with other blocks.

marcono1234

Confirmed for

  • 15w49b

JUE13

I can confirm that this is fixed at approximately 17w50a.

migrated

(Unassigned)

Confirmed

collision, collision-box, entity, fence, inside, jump, place, player

Minecraft 1.5, Minecraft 1.5.1, Minecraft 14w04a, Minecraft 1.7.5, Minecraft 14w11b, ..., Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 15w49b, Minecraft 1.12 Pre-Release 7, Minecraft 1.12.2

Minecraft 17w50a

Retrieved