Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Boring Default Game Rules

Banner for the Boring Default Game Rules mod

Boring Default Game Rules is a simple mod that allows for changing the default values of all games rules. This mod aims to be the most convenient way to edit the default values of a game rule by not only offering a config screen, but also easy off-game configuration by generating a JSON Schema!

Part of the Boring series. Don't forget to check out Boring Backgrounds and Damage Incorporated!

Dependencies

This mod requires Minecraft 1.19.4+ and the Quilt Standard Libraries. This mod also has optional integration with Mod Menu.

Configuration

With this mod, there are two main methods in which you can edit the default game rules.

The main way to edit the defaults is through the "Edit Default Game Rules" screen, which can be accessed either through a button at the bottom of Vanilla's "Game Rules" screen or through the mod's config button on Mod Menu. On this screen, you can change the defaults like you would change the game rule values on a regular world, with a "Reset Defaults" button being available at the bottom of the list if needed.

However, If you aren't in-game and have at least started it once, don't worry! There is a config file is located at .minecraft/config/boring_default_game_rules/config.json, and if you have a JSON Schema-compatible editor (Visual Studio Code is recommended if you have none), it will make usage of the automatically-generated JSON Schema in order to enhance your editing experience! The generated JSON Schema contains not only documentation on the config itself, but also provides suggestions for all game rules detected on the game.

Below here is the commented format (if you are offline, the JSON Schema also contains information about the options):

{
    // The file path of this mod's JSON schema. It's automatically defined by this mod and is only used by the text editor, so don't worry about this
    // If needed, the path can be regenerated by using "GENERATE_ME" as its value
    "$schema": "file:///path/to/.minecraft/config/boring_default_game_rules/config.schema.json",
    // A map of game rules and the new default value that will override the original
    "default_game_rules": {
        // This will set "keepInventory" to true as the default value
        // Autocompletions are provided by the JSON schema, so don't worry about having to memorize the game rule options
        "keepInventory": true
    },
    // Defines if a JSON schema should be generated or not. Only disable this if you know what you are doing
    "generate_json_schema": true
}

License

This mod is licensed under the MIT license. You can freely include the mod on any modpack with no permission. Usage of this mod's code on other projects or derivatives of this mod is allowed as long as attribution is given.

External resources



Project members

Ennui

Owner

Up

Lead Developer


Technical information

License
MIT
Client side
optional
Server side
optional
Project ID