Minecraft – Why aren’t the gamerules being saved

minecraft-java-edition

One of my worlds, I use /gamerule doDaylightCycle false to freeze the day/night cycle.

The problem is, whenever I exit and reload the world, it reverts back to doing the day/night cycle. I have to manually type the command everytime I enter the world.

None of my other worlds have this problem, instead they save the previous gamerule when reloading the world.

Best Answer

Yes, I know it's a bit outdated but have you tried editing the level.dat?
Just download this program and run it. Open the menu File > Open and then select the level.dat in C:/Users/[me]/AppData/Roaming/.minecraft/[matching mc world]/level.dat. Then unfold to the followings Data > GameRules > doDaylightCycle. Double-click to edit it and enter false. Save and start the game.