Boring Default Game Rules

Boring Default Game Rules 是一款简单的模组,允许更改所有游戏规则的默认值。该模组旨在成为编辑游戏规则默认值最便捷的方式:它不仅提供了一个配置界面,还通过生成 JSON Schema 实现便捷的离线配置!
属于 Boring 系列作品。别忘了看看 Boring Backgrounds 和 Damage Incorporated!
依赖项
自 Minecraft 1.20.6 起,此模组需要 Fabric API 以及 Fabric Loader 或 Quilt Loader。
此模组还提供对 Mod Menu 的可选支持。
配置
使用此模组时,主要有两种方式可以编辑游戏规则的默认值。
主要方式是通过“Edit Default Game Rules”(编辑默认游戏规则)界面打开。你可以通过原版“Game Rules”(游戏规则)界面底部的按钮,或者通过 Mod Menu 中的模组配置按钮来访问该界面。在此界面中,你可以像在世界中修改游戏规则值一样修改默认值;如果需要重置,列表底部还提供了“Reset Defaults”(重置默认值)按钮。
然而,如果你不在游戏中且至少启动过一次游戏,也不必担心!配置文件位于 .minecraft/config/boring_default_game_rules/config.json。如果你拥有 兼容 JSON Schema 的编辑器(推荐使用 Visual Studio Code,若你没有任何编辑器),它将利用自动生成的 JSON Schema 来增强你的编辑体验!生成的 JSON Schema 不仅包含关于配置本身的文档,还为游戏中检测到的所有游戏规则提供建议。
下方是带有注释的格式(如果你处于离线状态,JSON Schema 中也包含有关选项的信息):
{
// 此模组 JSON Schema 的文件路径。无需更改此值!
"$schema": "config.schema.json",
// 游戏规则及其新默认值的映射,这些默认值将覆盖原始值
"default_game_rules": {
// 这将把 "keepInventory" 设置为 true 作为默认值
// 自动补全由 JSON Schema 提供,因此无需记忆所有游戏规则选项
"keepInventory": true
},
// 定义是否应生成 JSON Schema。除非你知道自己在做什么,否则请勿禁用此项
"generate_json_schema": true
}
Boring Default Game Rules

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
As of Minecraft 1.20.6+, this mod requires Fabric API and either Fabric Loader or Quilt Loader.
This mod also has optional support 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 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. 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 use 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. 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
}
评论 0
登录后参与评分
还没有评论,来抢沙发吧