fz-survival-datapack/data/fz/functions/load.mcfunction

8 lines
629 B
Mcfunction
Raw Normal View History

2020-11-27 00:27:49 +08:00
#如果未安装且未卸载则安装
2021-07-03 06:21:34 +08:00
execute unless data storage fz.installed {installed: 1b} unless data storage fz.installed {installed: 0b} run function fz:install
2020-11-27 00:27:49 +08:00
#如果版本正确且已安装则开始运行
2021-07-03 06:21:34 +08:00
execute if data storage fz {version: 2.1.0} if data storage fz.installed {installed: 1b} run function fz:start
2020-11-27 00:27:49 +08:00
#如果版本不符则更新
2021-07-03 06:21:34 +08:00
execute unless data storage fz {version: 2.1.0} run function fz:update
2020-11-27 00:27:49 +08:00
#输出版本信息
2020-12-05 07:27:57 +08:00
tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}]