So there's no specific way to set daytime/nighttime length, but there are a few commands you can use in vanilla to make things more comfortable for you.
Press t and type /time hoursperday [number] will change the total number of hours in a day. So instead of 24 it can be anything really. You'll still get shifting day/night cycle depending on your time of year but it will give you more to play with. It'll make those beds come a lot more in useful.
And then there's /time speed [number] (default 60), which sets how fast those hours pass. So the default length of a full day is like 45 minutes I think. So if you take that down to /time speed 46 I believe you get an hour IRL per in-game day. Again, won't change the day/cycle itself but it will give you more time to get stuff done. Then you can sleep through the night. I have historically done a lot of 1 hour IRL days, and they give you a nice extra buffer to play with, especially in the early game.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.