fz-survival-datapack/data/fzsd/functions/module/try_install.mcfunction
延皓 da7af9fc83 完善所有剩余功能,后续bug修复后即准备发布正式版并向下移植
- 将命名空间改为“fzsd”
- 完善交互器
- 添加管理员命令(/function admin.fzsd:<...>)
- 添加启动函数,用于自动升级等功能
- 添加重装、深度安装、深度卸载、深度重装函数
2022-07-30 16:34:38 +08:00

12 lines
1000 B
Mcfunction

# 调用者:#fzsd:module/try_install
## 判断是否需要安装
execute unless data storage fzsd:installed fzsd.module{health:0b} run function #fzsd:module/health/install
execute unless data storage fzsd:installed fzsd.module{here:0b} run function #fzsd:module/here/install
execute unless data storage fzsd:installed fzsd.module{interactor:0b} run function #fzsd:module/interactor/install
execute unless data storage fzsd:installed fzsd.module{join_message:0b} run function #fzsd:module/join_message/install
execute unless data storage fzsd:installed fzsd.module{last_death:0b} run function #fzsd:module/last_death/install
execute unless data storage fzsd:installed fzsd.module{last_nether_portal:0b} run function #fzsd:module/last_nether_portal/install
execute unless data storage fzsd:installed fzsd.module{last_spawn_point:0b} run function #fzsd:module/last_spawn_point/install
execute unless data storage fzsd:installed fzsd.module{scoreboard:0b} run function #fzsd:module/scoreboard/install