How to Block Creative Mode and Cheats at World Creation
Locking the difficulty button alone does not stop someone from starting a world in Creative mode or enabling commands to bypass the challenge. Difficulty Lock Mod includes setup restrictions to close both loopholes during world creation.
Updating the Configuration
1. Open your Minecraft config folder and edit the Difficulty Lock Mod configuration file.
2. Find disableCreativeModeSelection and enable it. This removes Creative mode from the world creation screen.
3. Find forceCheatsDisabled and enable it. This blocks players from enabling cheats while setting up a new world.
4. If you also want the combat difficulty fixed from start to finish, verify that shouldLockDifficulty is enabled alongside your preferred difficulty option.
5. Save your changes and restart Minecraft.
What Changes on the Setup Screen
When you go to Singleplayer and click Create New World, the game mode selector will no longer let you choose Creative mode, and the toggle to allow cheats during setup will be blocked.
Keep in mind that these two settings specifically restrict the world creation screen. In singleplayer vanilla Minecraft, the pause menu still contains the Open to LAN button, so these options are best used to enforce consistent modpack starts and prevent accidental Creative or cheat-enabled worlds.