mojira.dev
MC-5550

Night Time Doesn't Immediately Allow Sleep

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

Attachments

Comments 11

Confirmed in 13w06a.

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.

1 more comments

@Platypus I will upload a video later showing this bug since you seem to be unable to replicate it.

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.

ReduxMC

migrated

Confirmed

bed, command, night, sleep

Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Snapshot 13w01b, Snapshot 13w06a, ..., Snapshot 13w24b, Snapshot 13w25a, Minecraft 1.6, Minecraft 1.6.1, Minecraft 1.6.2

Minecraft 13w36a

Retrieved