更新restore_score | 美化README,作者:Max_小葵 | 实验性:重新设计版本更新功能

This commit is contained in:
延皓
2021-08-03 06:30:28 +08:00
parent e3a7b02a63
commit 13ec1d9b9a
33 changed files with 162 additions and 136 deletions
+2
View File
@@ -0,0 +1,2 @@
execute unless score version3 fz.cache = newVersion3 fz.cache run function fz:start/update
execute if score version3 fz.cache = newVersion3 fz.cache run function fz:start/start
+3
View File
@@ -0,0 +1,3 @@
execute unless score version2 fz.cache = newVersion2 fz.cache run function fz:start/update
execute if data storage fz:survival {snapshot: 1b} if score version2 fz.cache = newVersion2 fz.cache run function fz:start/000x
execute unless data storage fz:survival {snapshot: 1b} run function fz:start/start
+7
View File
@@ -0,0 +1,7 @@
#判断各功能是否已安装并运行
execute if data storage fz:survival installed{scoreboards: 1b} run function fz:scoreboards/start
execute if data storage fz:survival installed{sweeper: 1b} run function fz:sweeper/start
execute if data storage fz:survival installed{config: 1b} run function fz:config/start
function fz:carpet/carpet
#测试用的输出
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
@@ -0,0 +1,6 @@
#卸载
function fz:uninstall
#安装
function fz:install
#提示已安装
tellraw @a {"text": "[信息]升级完成","color": "#5fff00"}