Skip to content

文件结构

我的世界游戏引擎会从Mod中固定的路径读取所需的文件,因此文件要放到对应的文件夹中,否则在游戏内不会生效。例如,生物的行为JSON文件必须放在行为包下的entities文件夹中。

下面是地图类型作品的文件夹结构。

作品文件夹 |-- .mcs   |-- behavior_packs   |   |-- behavior_pack_***   |        |-- entities   |        |-- script_***   |           |-- Parts   |        |-- items   |        |-- netease_items   |        |-- netease_blocks   |        |-- Parts   |           |-- ***   |              |-- ***.part   |              |-- ***Part.py   |              |-- ***PartMeta.py   |              |-- _init_.py   |        |-- Presets   |        |-- loot_tables   |        |-- recipes   |        |-- spawn_rules   |        |-- trading   |        |-- storyline   |        |-- Galaxy   |        |-- manifest.json   |-- resource_packs   |   |-- resource_pack_***   |        |-- entity   |        |-- attachables   |        |-- models   |        |-- materials   |        |-- effects   |        |-- textures   |        |-- netease_items_res   |        |-- sounds   |        |-- texts   |        |-- ui   |        |-- font   |        |-- manifest.json   |-- .db   |   |-- presets.json   |-- level.dat   |-- level.dat_old   |-- levelname.txt   |-- world_behavior_packs.json   |-- world_resource_packs.json   |-- world_icon.jpeg   |-- work.mcscfg  

Addon类型的作品内没有地图文件、behavior_packs、resource_packs,只有行为包、资源包。Addon中的行为包和资源包的结构和上面的说明一样。