From 346592820a944a8fc71fd5fea3184300ddef58c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=B6=E7=9A=93?= <1214946206@qq.com> Date: Mon, 26 Jul 2021 05:46:11 +0800 Subject: [PATCH] 2.0.10 --- data/fz/functions/install.mcfunction | 8 +++++--- data/fz/functions/load.mcfunction | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/data/fz/functions/install.mcfunction b/data/fz/functions/install.mcfunction index afd57f2..f469079 100644 --- a/data/fz/functions/install.mcfunction +++ b/data/fz/functions/install.mcfunction @@ -3,6 +3,8 @@ scoreboard objectives add parameter 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 1 calculator 1 #检测玩家退出游戏的记分板 @@ -16,9 +18,9 @@ function fz:login/logintips/install function fz:carpet/carpet #版本信息 data merge storage fz.installed {installed: 1b} -data merge storage fz {version: 2.0.9} -data merge storage fz {date: 2021-7.21} -data merge storage fz {time: "1:03"} +data merge storage fz {version: 2.0.10} +data merge storage fz {date: 2021-7.26} +data merge storage fz {time: "5:44"} ##data merge storage fz {snapshot: -SNAPSHOT} data remove storage fz snapshot tellraw @a {"text": "[信息]启动完毕","color": "#5fff00"} diff --git a/data/fz/functions/load.mcfunction b/data/fz/functions/load.mcfunction index 9efc412..8118768 100644 --- a/data/fz/functions/load.mcfunction +++ b/data/fz/functions/load.mcfunction @@ -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.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"}] \ No newline at end of file