Minecraft – How to make it stay daytime all the time

minecraft-java-edition

I've wanted a mechanism that is able to make it stay day all the time, and I've tried thinking up ways but they don't work. How do I do it?

Best Answer

The only ways I can think of involve using game commands.

One way is to get into the console and type /gamerule doDaylightCycle false

Alternatively, you can use a combination of Daylight Sensors and Command Blocks to execute the command /time set 1000. The downside to using this is that you need to stay within range to keep the area around the command block loaded. Running across the world allows night to come again.

Here's an tutorial video that explains how to set up the Daylight Sensor method:
How to make it always day or night in Minecraft using Command Blocks and Daylight Sensors