Skip to content

Default Gamerules

Jeremy edited this page Sep 18, 2026 · 1 revision

How to configure the default gamerules on the world creation screen.

Gamerule Settings

The gamerules section will pre-fill the gamerules for the world. Gamerules can still be modified by a player while creating the world if they choose to.

Every entry is a gamerule name and its value, such as:

gamerules: {
    keepInventory: true,
    playersSleepingPercentage: 50
}

Example

{
    title: "Hardcore Island",
    description: "Spawn shipwrecked on an small island in hardcore mode with no natural regeneration.",

    world: {
        gamemode: "hardcore",
        difficulty: "hard",
        seed: 300285457
    },

    gamerules: {
        naturalRegeneration: false,
        universalAnger: true,
        reducedDebugInfo: true
    }
}

Clone this wiki locally