This commit is contained in:
延皓
2021-07-26 05:56:24 +08:00
parent 24290e4c2d
commit d096df4784
2 changed files with 14 additions and 3 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
#如果未安装且未卸载则安装
execute unless data storage fz.installed {installed: 1b} unless data storage fz.installed {installed: 0b} run function fz:install
#如果版本正确且已安装则开始运行
execute if data storage fz {version: 2.1.1} if data storage fz.installed {installed: 1b} run function fz:start
execute if data storage fz {version: 2.1.2} if data storage fz.installed {installed: 1b} run function fz:start
#如果版本不符则更新
execute unless data storage fz {version: 2.1.1} run function fz:update
execute unless data storage fz {version: 2.1.2} run function fz:update
#输出版本信息
tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}]