This commit is contained in:
Harveykang 2020-11-29 20:06:34 +08:00
parent 00048b1ac4
commit 381d37914b
5 changed files with 707 additions and 375 deletions

View File

@ -8,6 +8,3 @@ A Minecraft Datapack
##### v2.0.0
- 重写
- 抬头并按一下shift来打开设置界面
待实现(可实现):
- 一个用于恢复计分板分数的地毯脚本
- 一个用于将记分板从1.x升级到2.0的数据包函数

View File

@ -1,4 +1,6 @@
#初始化tagplayer
carpet setDefault commandScript true
carpet setDefault commandScriptACE ops
carpet setDefault scriptsAutoload true
carpet setDefault commandPlayer ops
script load tagplayer

View File

@ -15,8 +15,8 @@ function fz:login/logintips/install
function fz:carpet/carpet
#版本信息
data merge storage fz.installed {installed:1b}
data merge storage fz {version:Alpha-2.0.0.2}
data merge storage fz {date:2020-11.26}
data merge storage fz {time:"23:51"}
data merge storage fz {version:Alpha-2.0.0.3}
data merge storage fz {date:2020-11.27}
data merge storage fz {time:"22:18"}
data merge storage fz {snapshot:-SNAPSHOT}
##data remove storage fz snapshot

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:Alpha-2.0.0.2} if data storage fz.installed {installed:1b} run function fz:start
execute if data storage fz {version:Alpha-2.0.0.3} if data storage fz.installed {installed:1b} run function fz:start
#如果版本不符则更新
execute unless data storage fz {version:Alpha-2.0.0.2} run function fz:update
execute unless data storage fz {version:Alpha-2.0.0.3} run function fz:update
#输出版本信息
tellraw @a [{"text": "FZ's Datapack-"},{"nbt":"version","storage":"fz"},{"nbt": "snapshot", "storage": "fz"}]

File diff suppressed because it is too large Load Diff