This commit is contained in:
延皓
2021-07-26 05:46:11 +08:00
parent 46107e54dc
commit 346592820a
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -3,6 +3,8 @@
scoreboard objectives add parameter dummy scoreboard objectives add parameter dummy
#用于数学计算的记分板 #用于数学计算的记分板
scoreboard objectives add calculator dummy scoreboard objectives add calculator dummy
scoreboard players set 200 calculator 200
scoreboard players set 100 calculator 100
scoreboard players set 10 calculator 10 scoreboard players set 10 calculator 10
scoreboard players set 1 calculator 1 scoreboard players set 1 calculator 1
#检测玩家退出游戏的记分板 #检测玩家退出游戏的记分板
@@ -16,9 +18,9 @@ function fz:login/logintips/install
function fz:carpet/carpet function fz:carpet/carpet
#版本信息 #版本信息
data merge storage fz.installed {installed: 1b} data merge storage fz.installed {installed: 1b}
data merge storage fz {version: 2.0.9} data merge storage fz {version: 2.0.10}
data merge storage fz {date: 2021-7.21} data merge storage fz {date: 2021-7.26}
data merge storage fz {time: "1:03"} data merge storage fz {time: "5:44"}
##data merge storage fz {snapshot: -SNAPSHOT} ##data merge storage fz {snapshot: -SNAPSHOT}
data remove storage fz snapshot data remove storage fz snapshot
tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"} tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"}
+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 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.0.3} if data storage fz.installed {installed: 1b} run function fz:start execute if data storage fz {version: 2.0.10} if data storage fz.installed {installed: 1b} run function fz:start
#如果版本不符则更新 #如果版本不符则更新
execute unless data storage fz {version: 2.0.3} run function fz:update execute unless data storage fz {version: 2.0.10} run function fz:update
#输出版本信息 #输出版本信息
tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}] tellraw @a [{"text": "[版本信息]FZ's Datapack-","color": "#ffd900"},{"nbt":"version","storage":"fz","color": "#ffd900"},{"nbt": "snapshot", "storage": "fz","color": "red"}]