first commit
This commit is contained in:
89
docs/mcguide/20-玩法开发/13-模组SDK编程/50-其它基础游戏配置.md
Normal file
89
docs/mcguide/20-玩法开发/13-模组SDK编程/50-其它基础游戏配置.md
Normal file
@@ -0,0 +1,89 @@
|
||||
---
|
||||
front:
|
||||
hard: 入门
|
||||
time: 分钟
|
||||
---
|
||||
|
||||
# <span id="其他基础游戏配置"></span>其他基础游戏配置
|
||||
|
||||
<span id="通用配置"></span>
|
||||
## 通用配置
|
||||
|
||||
下面是配置文件说明文档。
|
||||
|
||||
配置文件统一放在mod behavior文件夹的config文件夹中,即config与entities同级目录。
|
||||
|
||||
<span id="配置文件"></span>
|
||||
### 配置文件
|
||||
|
||||
<span id="netease_require"></span>
|
||||
#### netease_require
|
||||
|
||||
- 描述
|
||||
|
||||
管理mod加载依赖顺序
|
||||
|
||||
- 参数
|
||||
|
||||
| 参数名 | 数据类型 | 说明 |
|
||||
| :--- | :--- | :--- |
|
||||
| modName | str | mod命名,该命名字段只用于加载依赖 |
|
||||
| modRequire | list | 依赖用到的mod列表 |
|
||||
|
||||
- 路径
|
||||
|
||||
behavior/config/netease_require.json
|
||||
|
||||
- 文件名
|
||||
|
||||
netease_require.json
|
||||
|
||||
- 示例
|
||||
|
||||
```json
|
||||
{
|
||||
// 表示SampleMod依赖RequireMod,因此加载的时候会先加载RequireMod这个mod
|
||||
"modName":"SampleMod",
|
||||
"modRequire":[
|
||||
"RequireMod"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
<span id="服务端配置"></span>
|
||||
## 服务端配置
|
||||
|
||||
服务端配置文件定义的配置如下
|
||||
|
||||
<span id="配置文件"></span>
|
||||
### 配置文件
|
||||
|
||||
<span id="banned_items"></span>
|
||||
#### banned_items
|
||||
|
||||
- 描述
|
||||
|
||||
禁用物品配置文件
|
||||
|
||||
- 参数
|
||||
|
||||
| 参数名 | 数据类型 | 说明 |
|
||||
| :--- | :--- | :--- |
|
||||
| banned_items | list | 禁用物品的identifier |
|
||||
|
||||
- 路径
|
||||
|
||||
behavior/config/banned_items.json
|
||||
|
||||
- 文件名
|
||||
|
||||
banned_items.json
|
||||
|
||||
- 示例
|
||||
|
||||
```json
|
||||
{
|
||||
"banned_items": ["minecraft:egg", "minecraft:snowball"]
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user