一个NeoForge模组,控制Minecraft技术选项
A NeoForge mod that controls Minecraft technology options
本模组仅支持 Minecraft 1.21+ ,暂无向更低版本兼容的计划。
This mod only supports Minecraft 1.21+ and has no plans to be compatible with lower versions at the moment.
本模组代码基于 LGPL-3.0 协议开源,其它资产基于 CC-BY-NC-ND 4.0 发布,请遵守协议。
This module code is open source based on the LGPL-3.0 protocol, while other assets are released based on the CC-BY-NC-ND 4.0 protocol. Please comply with the protocol.
- 下载模组,放置到
.minecraft/mods或.minecraft/versions/{version}/mods文件夹 - 进入存档,使用
/rg命令显示模组控制面板以调整规则的启用状态
- 在
configs/rolling-gate.json中修改默认配置,该配置将影响所有存档 - 在存档目录中创建
rolling-gate.json文件以覆盖默认配置 - 配置文件格式为 JSON,示例如下:
{
// string
"rule1": "value",
// int
"rule2": 1,
// double
"rule3": 1.0,
// boolean
"rule4": true
}-
/rg- 显示模组控制面板reload- 重新加载配置文件category [category]- 查看分组下的所有规则[rule] [value]- 设置规则的值[rule]- 查看规则详细介绍default [rule] [value]- 设置当前存档的规则默认值
-
/rg- Display mod control panelreload- Reload configuration filecategory [category]- View all rules under the group[rule] [value]- Set the value of the rule[rule]- View detailed information of rulesdefault [rule] [value]- Set default rules for the current save
| 规则 | 类型 | 默认值 | 允许值 | 描述 |
|---|---|---|---|---|
language |
String | zh_cn |
en_us, zh_cn |
设置卷帘门的默认语言 |
| Rule | Type | Default Value | Allowed Value | Description |
|---|---|---|---|---|
language |
String | zh_cn |
en_us, zh_cn |
Set the default language for RollingGate |
|
Gugle 💻 19822751 |
꧁[C̲̅j̲̅s̲̅a̲̅h̲̅]꧂ 💻 19170004 |
- 编写一个类添加规则
- Write a class addition rule
@RGServerRules(value = "your_mod_id", languages = {"zh_cn", "en_us"})
public class YourModServerRules {
@Rule(allowed = {"your_rule_value1", "your_rule_value2"}, categories = "your_rule_category")
public static String yourRule = "your_rule_value1";
}