Files
netease-modsdk-wiki/docs/mcguide/20-玩法开发/13-模组SDK编程/50-其它基础游戏配置.md
2025-03-18 14:46:12 +08:00

90 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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"]
}
```