[MC-8471] Blocks cannot be placed on a block you are next to Created: 26/Jan/13  Updated: 25/Mar/19  Resolved: 06/Feb/18

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w04a, Minecraft 1.7.4, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w32d, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.2-pre4, Minecraft 1.8.2-pre5, Minecraft 1.8.2-pre6, Minecraft 1.8.2-pre7, Minecraft 1.8.2, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w32a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10.2, Minecraft 16w42a, Minecraft 1.11, Minecraft 17w06a
Fix Version/s: Snapshot 13w10b, Minecraft 18w05a

Type: Bug
Reporter: Kevin Reid Assignee: Unassigned
Resolution: Fixed Votes: 25
Labels: placement, redstone, redstone-comparator, redstone-repeater

Issue Links:
Duplicate
is duplicated by MC-12029 Jumping and placing Redstone repeater... Resolved
is duplicated by MC-18208 placing repeaters in creative Resolved
is duplicated by MC-48517 Can't place blocks in certain places Resolved
is duplicated by MC-49097 carpets Resolved
is duplicated by MC-52888 Standing in certain locations prevent... Resolved
is duplicated by MC-58153 Placing a block where you stand Resolved
is duplicated by MC-60446 When "hugging" a block, a newly place... Resolved
is duplicated by MC-74688 Player interferes with Block placemen... Resolved
is duplicated by MC-87055 Cannot place block on other in some c... Resolved
is duplicated by MC-91246 Can't place ladder while I'm on a ladder Resolved
Relates
relates to MC-2208 Blocks with special placement can be ... Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Creative

 Description   

The bug

Sometimes blocks cannot be placed on a block you directly standing next to. When you place them they appear for a short moment (client-side) but directly afterwards disappear.

How to reproduce

  1. Dig a 1 block deep hole
  2. Move up against any side or corner of the hole
  3. Attempt to place a repeater or comparator on the block you moved towards
    → The repeater will appear and disappear immediately, as if the server thinks you are occupying the space and cannot place a block.

If you cannot reproduce the bug, try sprinting against the block.

Cause

The cause seems to be that the server thinks the player is intersecting with the collision box of the block to be placed while the client thinks he is not.
For example

To check: box[13.0, 4.0, 8.0 -> 14.0, 4.875, 9.0]

Client player: box[14.0, 4.0, 8.080747030085668 -> 14.600000023841854, 5.799999952316284, 8.680747053927526]
Server player: box[13.999999999999998, 4.0, 8.085848427457286 -> 14.600000023841856, 5.799999952316284, 8.685848451299144]

However, it is interesting that the server let the client move inside the block in the first place.

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

Removed part
The reason why the method net.minecraft.network.NetHandlerPlayServer.processPlayer(CPacketPlayer) did not prevent the movement then is because it contracts the player bounding box by 0.0625. Removing this might solve the problem as well, but could result in the player being teleported back when running with the speed effect against a wall or similar.

Edit: Code analysis was partwise wrong. The actual reason is not quite clear.



 Comments   
Comment by Josiah Abram Guthrie [ 25/Mar/19 ]

I have a similar problem. I am unable to place blocks in a 4x4 block area. 

Comment by [Mod] tryashtar [ 06/Feb/18 ]

I also can't reproduce in the latest 1.13 snapshot using Jesper's video instructions

Comment by [Mod] Michael Wobst [ 16/Jan/18 ]

Since I always had problems trying to reproduce this bug, can someone please check if this is still an issue in the latest development snapshot?

Comment by ziggurism [ 02/Dec/16 ]

Confirm for 1.11

Comment by ziggurism [ 05/Aug/16 ]

Confirm 1.10.2

Comment by ziggurism [ 19/May/16 ]

Confirm 16w20a.

Comment by ziggurism [ 11/May/16 ]

Confirm 1.9.4

Comment by ziggurism [ 11/Apr/16 ]

Confirm for 16w15a.

Comment by ziggurism [ 07/Apr/16 ]

Confirm for 16w14a

Comment by ziggurism [ 29/Feb/16 ]

Confirm for 1.9 Edit: redstonehelper has already marked it, oops

Comment by ziggurism [ 27/Feb/16 ]

Confirm for 1.9-pre4

Comment by ziggurism [ 24/Feb/16 ]

Confirm for 1.9-pre3

Comment by ziggurism [ 19/Feb/16 ]

Confirm for 1.9-pre2

Comment by ziggurism [ 17/Feb/16 ]

Confirm for 1.9-pre1

Comment by ziggurism [ 04/Feb/16 ]

Confirmed for 16w05b.

Comment by ziggurism [ 03/Feb/16 ]

Confirmed for 16w05a.

Comment by ziggurism [ 02/Feb/16 ]

Came here from MC-44773. Can confirm this bug in 16w04a.

Comment by Moon Heroin [ 05/Aug/15 ]

This still happens in 15w32a. But only at certain places in a map and/or in certain directions. Happens in both creative and survival. This can ruin the ladder in main hand, a block in other hand climbing trick. Please fix.

Comment by a [ 24/Jun/15 ]

I can't reproduce this consistently, though I have had it occur in 1.8.7 on LAN. I was laying half slabs on the bottom half of the block, in the air, and I was sneaking over the edge to lay them in a row, and the block would flash for an instant and then disappear again if I was holding the arrow keys off the edge, OR if I was still moving a tiny bit. If I slowed down to a sure stop each and every time, the block would never flash and it would place properly.

Comment by Someone 3x7 [ 20/Feb/15 ]

I originally posted this to MC-58153 before finding this much older issue. This is very easy to recreate. When placing a block at foot level in front of you while crouched it occurs at exactly 7/10ths of the block your in(in the direction your facing). Although does require some movement. Facing east while standing on 0.7 64 0.5 hold shift and tap forward and back keeping near X 0.7 while trying to place block at 1 65 0. Of coarse its easier in creative where can instantly destroy the block when it does get placed. These steps work anywhere, I just felt east in a positive chunk was easier to explain. East in a negative chunk would be at -0.3 instead, etc

Edit: release version 1.8.2

Comment by Marno [ 04/Nov/14 ]

Here is an image sequence (note the timestamps of the screenshots) to try and show this happening with oak wood. Also had it happen to a comparator earlier.

Was standing on a ladder when trying to place the block, it would disappear and when I right-click again it appears back in the hot-bar.

Comment by Arjan de Vries [ 01/Nov/14 ]

It's not always reproducable. If it isn't, try playing walking a few minutes and try again. It has nothing to do with orientation of stairs. It happens with blocks, and lately I also experienced it when placing ladders while climbing. I can reproduce, whenever I want, although sometimes I need to play for a few minutes.

Comment by Jeremy [ 01/Nov/14 ]

Cannot reproduce in 1.8.1 pre-3. The video shown by Arjan might have been an upside down side stair oriented perpendicular to the player. That (and the accompanying 1/4 block quarter stair hitbox issue) can create a situation like the one shown in the video.

Comment by Arjan de Vries [ 27/Oct/14 ]

https://www.youtube.com/watch?v=77dkxtap-l0&list=UUek3flso2pgg_QoptI57pJw

Heres proof that it still happens in 1.8.1 pre-3...

Comment by Arjan de Vries [ 27/Oct/14 ]

This issue still exists in 1.8.1 pre-3 and still affects ALL BLOCKS.

Why the title is still only alluding to repeaters and comparators is beyond me. I posted a video on july 23rd in this thread. Here it is again:

https://www.youtube.com/watch?v=TKVL1R5C-Nw

Comment by Galaxy_2Alex [ 25/Oct/14 ]

Cannot Confirm in 1.8.1 Pre3 on Singleplayer. Was not able to test Multiplayer.

Comment by Jesper the End [ 09/Aug/14 ]

confirmed for 14w32d

Comment by Darin Triplett [ 08/Aug/14 ]

Confirmed in...well I've seen this since as long as I can remember playing (1.4.x?) Repeaters (and Comparators since they were introduced) have always been glitchy to place. This happens for me with Repeaters and Comparators when laying out complex redstone and appears to be different than MC-58153, which I notice when building in general. The more I think about it, This seems to have been around for awhile and I've only recently tried to reproduce and report it since my 1.8 snapshot LP. With the new launcher, I will have to go back and attempt to reproduce MC-8471 and MC-58153 in previous version.

Comment by Jesper the End [ 23/Jul/14 ]

Well for me it doesn't just look crappy, it's also a problem for me since my redstone breaks because of this bug

Comment by Arjan de Vries [ 23/Jul/14 ]

https://www.youtube.com/watch?v=TKVL1R5C-Nw

Here, I uploaded this to prove it affects all blocks

Comment by Arjan de Vries [ 23/Jul/14 ]

It's not really a problem, but it looks really crappy, as it happens quite frequently when you are an intensive MC builder. Could a mod please update the title based on some closed duplicates? And also update the version to snapshot 29b?

Comment by Jesper the End [ 17/Jul/14 ]

not being able to place certain blocks is not too much of a problem for me, but this also affects selectors. when you do /execute @a[x,y,z,0] inside a block, it will still detect the player, even though the coordinates are inside a block. And that kinda bugs me

Comment by Arjan de Vries [ 17/Jul/14 ]

More like repeaters, comparators and all other blocks. I think this bug is too major to be hidden away like this. Reproduceable in all snapshots. If you're lucky.

Comment by Itouch2 [ 28/Feb/14 ]

Confirmed for 1.7.4, 1.7.5 and 1.8 snapshots

Comment by Kumasasa [ 24/Feb/14 ]

Jesper the End :

[Mod] Kumasasa added a comment - Yesterday 11:44 PM

Reopened due to MC-48517

Comment by Jesper the End [ 23/Feb/14 ]

why is this reopened all of a sudden?

Comment by Kumasasa [ 23/Feb/14 ]

Reopened due to MC-48517

Comment by Anon Ymus [ 09/Mar/13 ]

I cannot reproduce in 1.5. Resolving as fixed.

Comment by Jesper the End [ 09/Mar/13 ]

thanks ;P

Comment by Tails [ 08/Mar/13 ]

Reopened.

Comment by Jesper the End [ 08/Mar/13 ]

Can you please reopen this ticket? The prove is in the video.

Comment by Kevin Reid [ 16/Feb/13 ]

I agree that the behavior in the above video is similar to what I experienced when I made this report.

Comment by Jesper the End [ 15/Feb/13 ]

it's uploading: http://youtu.be/eJWHE-nIivQ

Comment by DicoTheRedstoner [ 27/Jan/13 ]

I've also experienced this issue, actually
( a lot )

Comment by Kevin Reid [ 26/Jan/13 ]

Now I can't reproduce it either, having restarted. Sorry for the noise!

Comment by Tails [ 26/Jan/13 ]

Unable to reproduce. Please provide screenshots.

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