行为包的两个文件名称为 world_behavior_packs.json 和 world_behavior_packs_history.json
材质包的两个文件名称为 world_resource_packs.json 和 world_resource_packs_history.json
在世界存档文件夹目录下有以下文件:
- level存放一个地图存档目录,目录名也就是地图名
- db地图存档目录level.dat存储关于地图的全局信息
- levelname.txt地图的名字
- [自行配置]world_behavior_packs.json 配置客户端需要下载的behavior packs
- [自行配置]world_behavior_packs_history.json 配置客户端需要下载的behavior packs
- [自行配置]world_resource_packs.json 配置客户端需要下载的resource packs
- [自行配置]world_resource_packs_history.json 配置客户端需要下载的resource packs
首先配置行为包或材质包的两个文件需要知道行为包或材质包的的UUID
解压你的行为包或材质包 .mcpack改为.zip即可解压
里面有 pack_manifest.json 文件
打开后找到"header"里的"uuid"属性的值就是我们要知道的UUID
当然他们的版本也是要一致的
例如: “uuid”: “e3c5a9be-1cfc-4a74-9f70-9213bab32090”
安装一个行为包
world_behavior_packs.json内容如下
[
{
"pack_id": "e3c5a9be-1cfc-4a74-9f70-9213bab32090",
"version": [
1,
0,
1
]
}
]
world_behavior_packs_history.json内容如下
{
"packs": {
"can_be_redownloaded": true,
"name": "SimpleLand",
"uuid": "e3c5a9be-1cfc-4a74-9f70-9213bab32090",
"version": [
1,
0,
1
]
}
}
写好这两个配置文件,放到世界存档文件夹里即可,把行为包解压到 behavior_packs 里即可
多个行为包安装
实际上多个行为包安装只是在json写入多个配置即可(不要忘记逗号)
world_behavior_packs.json或world_resource_packs.json内容如下
[
{ "pack_id" : "XXX", "version" : [ 1, 0, 1 ] } ,
{ "pack_id" : "XXX", "version" : [ 1, 0, 1 ] },
{ "pack_id" : "XXX", "version" : [ 1, 0, 1 ] }
]
world_behavior_packs_history.json或world_resource_packs_history.json内容如下(多个包必须加[ ])
{
"packs" : [
{ "can_be_redownloaded":true,"name":"XXX","uuid":"XXX","version":[1,0,1] } ,
"can_be_redownloaded":true,"name":"XXX","uuid":"XXX","version":[1,0,1] },
"can_be_redownloaded":true,"name":"XXX","uuid":"XXX","version":[1,0,1] }
]
}
原作者:幻作碎片 https://www.bilibili.com/read/cv4411622/