[MC-11242] When you jump and place a fence post under you you will get inside the fence post Created: 07/Mar/13  Updated: 09/Jun/18  Resolved: 26/Dec/17

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.5, Minecraft 1.5.1, Minecraft 14w04a, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 14w21b, Minecraft 1.8, Minecraft 1.8.1-pre2, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 15w49b, Minecraft 1.12 Pre-Release 7, Minecraft 1.12.2
Fix Version/s: Minecraft 17w50a

Type: Bug
Reporter: David Assignee: Unassigned
Resolution: Fixed Votes: 11
Labels: collision, collision-box, entity, fence, inside, jump, place, player

Attachments: PNG File 2013-03-07_18.07.00.png     PNG File 2013-03-07_20.29.32.png    
Issue Links:
Duplicate
is duplicated by MC-18775 Stuck in Fence Resolved
is duplicated by MC-21717 Glitch Through fences Resolved
is duplicated by MC-32506 Fall inside of fence Resolved
is duplicated by MC-36037 Fence posts Resolved
is duplicated by MC-41081 Fence Occlusion Resolved
is duplicated by MC-48728 Minecraft 1.7.4 - Fence Hitbox Glitch? Resolved
is duplicated by MC-50003 Noclip Fences Resolved
is duplicated by MC-51062 Fences are placeable while jumping Resolved
is duplicated by MC-64166 Fences are Temporarily Non-Solid when... Resolved
is duplicated by MC-70017 Falling through fence if placed on si... Resolved
is duplicated by MC-70856 Able to jump and place a fence which ... Resolved
is duplicated by MC-73075 Fences are ghosts that you can see Resolved
is duplicated by MC-79411 When placing down a fence (any wood t... Resolved
is duplicated by MC-79666 Can jump inside fences while placing Resolved
is duplicated by MC-91474 Fence hitbox error? Resolved
is duplicated by MC-92766 A hitbox glitch I don't see going awa... Resolved
is duplicated by MC-131147 An error with the fences Resolved
Relates
relates to MC-2208 Blocks with special placement can be ... Resolved
relates to MC-667 Lily pads can be placed intersecting ... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

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.



 Comments   
Comment by user33 [ 26/Dec/17 ]

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

Comment by Marcono1234 [ 08/Dec/15 ]

Confirmed for

  • 15w49b
Comment by KingSupernova [ 09/Mar/15 ]

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.

Comment by kasamikona [ 18/Oct/14 ]

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.

Comment by Itouch2 [ 24/May/14 ]

Confirmed for 14w21b.

Comment by Victor N [ 23/Jan/14 ]

Affects 14w04a

Comment by Marios [ 19/Oct/13 ]

Affects 13w42b

Comment by Dean Baset [ 08/Mar/13 ]

Confirmed

Comment by Kumasasa [ 07/Mar/13 ]

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

Generated at Sun Jan 12 12:27:01 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.