mojira.dev
MC-188578

Sleeping in a bed in a custom dimension doesn't set time to day

The bug

When sleeping in a bed in any custom dimension that allows a user to sleep in a bed, it does set the user's spawn, but doesn't set the time to day, as it seems the weather and time of day are linked to the overworld's time and weather. 

How to reproduce

  1. Create a minecraft world with any custom dimension datapack. For example the one I'm working on [here|https://www.planetminecraft.com/data-pack/skylands-reborn/]

  2. Enter the custom dimension (/execute in custom:skylands run tp @s ~ 100 ~) by some means

  3. Set the time to night, and place a bed down

  4. Sleeping in the bed will allow the player to lay down, and the screen fades, but time is not set to day

Linked issues

Comments 9

Hello, I would argue that this isn't necessarily a duplicate, as you can actually sleep in the bed which prevents phantoms from spawning, and you can indeed have two dimensions with the "type":"minecraft:overworld" type, or simply use the bed_works boolean. The bug part is that it doesn't actually advance the night on successful sleep, which wasn't mentioned in the original post whatsoever, but I guess I could be persuaded to say this is somehow a feature request, for sleeping to fully work in custom dimensions, but that's all I wanted to add. 

I can confirm this for 21w08b and 1.16.5.

Confirm it is present in 1.17

Confirmed in 1.19.4 still

This bug is the cause of a bug in my mod: Changing the spawnpoint to the nether makes beds not skip the day in the overworld.

I want this bug to be fixed within 3.5 years so my mod is not gonna suffer for this.

Your mod can introduce a fix too... No need to wait and delay your mod.

This relates to MC-186626.

Wyatt Boyle

(Unassigned)

Confirmed

Platform

Low

Custom Worlds

1.16 Pre-release 3, 1.16.5, 21w08b, 1.17, 1.19.2, 1.19.4

Retrieved