[MC-5330] Range for using bed is lower than normal range Created: 24/Dec/12  Updated: 11/Aug/16  Resolved: 10/Aug/16

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.6, Minecraft 1.4.7, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.5.2, Minecraft 1.7.4, Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w08a, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.8, Minecraft 1.8.7, Minecraft 16w04a, Minecraft 1.9 Pre-Release 1, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 16w21a, Minecraft 16w21b, Minecraft 1.10 Pre-Release 1, Minecraft 1.10, Minecraft 1.10.2
Fix Version/s: Minecraft 16w33a

Type: Bug
Reporter: FireHunterX Assignee: [Mojang] Agnes Larsson
Resolution: Fixed Votes: 11
Labels: None
Environment:

Java 7


Attachments: PNG File 2012-12-24_18.12.58.png     PNG File 2012-12-24_18.13.23.png    
Issue Links:
Duplicate
is duplicated by MC-106059 No message for "Player too far away f... Resolved
is duplicated by MC-456 Can't reach bed but can see the colli... Resolved
is duplicated by MC-2529 It takes several clicks to get inside... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

Although you can right-click a bed from a short distance from it, (and during the day as long as you can see the hitbox it will say "You can only sleep at night"), in order to actually sleep in the bed you must click it when you are right next to it.



 Comments   
Comment by [Mod] Neko [ 11/Aug/16 ]

New ticket: MC-106059

Comment by user-f2760 (Inactive) [ 11/Aug/16 ]

Different ticket please.

Comment by robot275 [ 11/Aug/16 ]

The message doesn't show

Comment by [Mojang] Agnes Larsson [ 10/Aug/16 ]

Added a message telling the user that he/she is too far away for sleeping (should be less confusing now). Also made sure the too far away check checks for both parts of the bed.

Comment by Fabian Röling [ 10/Aug/16 ]

Well, then the animation is wrong. It should either:

  • Do nothing and don't play an animation.
  • Use the item in hand.
  • Use the bed
Comment by [Mojang] Agnes Larsson [ 10/Aug/16 ]

This is actually intended . When you sleep in a bed you teleport to the bed, and we don't want it to be possible to teleport longer distances using a bed.

Comment by [Mod] violine1101 [ 09/Jun/16 ]

Still in 1.10

Comment by [Mod] violine1101 [ 02/Jun/16 ]

Still in 1.10-pre1

Comment by [Mod] violine1101 [ 25/May/16 ]

Still in 16w21a and 16w21b

Comment by [Mod] violine1101 [ 22/May/16 ]

Still in 1.9.4 and 16w20a

Comment by Immaterialise [ 17/Feb/16 ]

Confirmed for 1.9-pre1

Comment by [Mod] Michael Wobst [ 02/Feb/16 ]

Confirmed for 16w04a.

Comment by [Mod] Sonicwave [ 28/Jun/15 ]

Confirmed for 1.8.7.

Comment by [Mod] Sonicwave [ 03/Oct/14 ]

Confirmed in 1.8.

Comment by Itouch2 [ 24/Feb/14 ]

Still an issue in 14w08a and 1.7.4

Comment by [Mod] Ezekiel (ezfe) [ 24/Feb/14 ]

Is this still a concern in the latest Minecraft version 14w08a? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Stanimir Vlad [ 22/Jan/13 ]

Edit 10:17 22.1.2013

Confirmed on 1.4.7 survival, creative

Confirmed on 1.4.6 survival, creative

In day time you can right click on the bed and get the error "You can only sleep at night" from whatever is you maximal reach, however at night you can only right click on the bed (and go to sleep) from 3 block radius cantered on the bed block you click (not including the bed block itself).
#######
#######
#######
###B###
###B###
#######
#######
#######

Comment by FireHunterX [ 25/Dec/12 ]

The same result is seen in both game modes.
I only did it in creative because it was daytime in my survival world

Comment by Zuriki [ 25/Dec/12 ]

This is linked to creative mode. The maximum reach on creative mode is much higher, but the code for sleeping checks that you are within survival mode's max range. It's a small discrepancy. Might be best putting the time check within the other range checks to resolve the discrepancy, but it's otherwise not going to cause any problems.

Comment by FireHunterX [ 24/Dec/12 ]

The first screenshot shows that when I right-click the bed from where I stand it says that I have indeed tried to sleep in the day.

The second shows me from the same spot and setting the time to night, but I cannot sleep in the bed unless I get really close to it.

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