Through the command /time set night you cannot immediately sleep. Instead you must wait a couple of seconds to do so, even though you should be able to sleep at night.
Linked issues
is duplicated by 1
Attachments
Comments 11
It does allow immediate sleeping. What you consider night and what Minecraft/Minecraft Server itself considers night are different.
It doesn't @Platypus try it for yourself, and you will see if you use the command '/time set night' and then try to get into a bed you will still get the message that you can only sleep at night for a period of time.
I just did on 1.5.1 and it works fine. Once again, your definition of night may differ from the game itself's definition. It is not and should not be considered a bug.
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.
Still in 1.6.2 An easy way to reproduce this is to do /gamerule doDaylightCycle false, then do /time set night and then try to sleep.
Using /gamerule doDaylightCycle set to false, it is only possible to sleep when /time is set between 12540 (exclusive) and 23459 (exclusive). Since /time set night sets the time to 12500, it's not possible to sleep if doDaylightCycle is false, and you have to wait a few seconds to sleep otherwise. It would be better if /time set night used a different value, say 12550.
Confirmed.