更新restore_score | 美化README,作者:Max_小葵 | 实验性:重新设计版本更新功能
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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"}
|
||||
Reference in New Issue
Block a user