Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/up-mods/boringdefaultgamerules
A mod that allows to change the default game rule values. Uses JSON Schema!
https://github.com/up-mods/boringdefaultgamerules
Last synced: about 2 months ago
JSON representation
A mod that allows to change the default game rule values. Uses JSON Schema!
- Host: GitHub
- URL: https://github.com/up-mods/boringdefaultgamerules
- Owner: Up-Mods
- License: mit
- Created: 2021-09-07T21:24:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T00:43:42.000Z (3 months ago)
- Last Synced: 2024-10-26T08:51:12.348Z (3 months ago)
- Language: Java
- Homepage:
- Size: 259 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boring Default Game Rules
A mod that allows for changing the default game rule values. Meant to be used by modpacks, servers and players, because it's useful for everyone!
## Download
This mod is available for download on the following services:
- [Modrinth (recommended)](https://modrinth.com/mod/boring-default-game-rules)
- [CurseForge](https://www.curseforge.com/minecraft/mc-mods/boring-default-game-rules)
- [GitHub Releases (alternative)](https://github.com/EnnuiL/BoringDefaultGameRules/releases)## Usage
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 opened either thanks to a button at the bottom of Vanilla's "Game Rules" screen or through the mod's config button on [Mod Menu](https://modrinth.com/mod/modmenu). 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](https://json-schema.org/tools?toolingTypes=editor) ([Visual Studio Code](https://code.visualstudio.com/) is recommended if you have none), it will make use of the automatically-generated [JSON Schema](https://json-schema.org/) 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):
```jsonc
{
// The file path of this mod's JSON schema. Don't worry about changing this value!
"$schema": "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 all 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
}
```