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
}
下载 Boring Default Game Rules
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Boring Default Game Rules
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Boring Default Game Rules
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Boring Default Game Rules
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Boring Default Game Rules
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Boring Default Game Rules
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Boring Default Game Rules
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Boring Default Game Rules
下载 Boring Default Game Rules
下载 Boring Default Game Rules
更新日志
- 完全重写了配置系统,移除了模组中一个庞大的依赖库
- 配置文件格式未发生变化,因此兼容性未被破坏
- 修复了特性标志门控游戏规则的默认值更改未生效的问题
- 为“重置默认值”按钮添加了确认提示
- 优化了配置系统及模组本身
- 将代码库更新至 Minecraft 1.21.5
- 此版本继续支持 Minecraft 1.21.2-1.21.4
- 修复了对 Minecraft 1.21.6 的支持
- 移除了 Hissboom JAR 处理逻辑
- 为 NeoForge 支持铺平了道路
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧