commit
773513f95b
@ -7,7 +7,4 @@ A Minecraft Datapack
|
|||||||
|
|
||||||
##### v2.0.0
|
##### v2.0.0
|
||||||
- 重写
|
- 重写
|
||||||
- 抬头并按一下shift来打开设置界面
|
- 抬头并按一下shift来打开设置界面
|
||||||
待实现(可实现):
|
|
||||||
- 一个用于恢复计分板分数的地毯脚本
|
|
||||||
- 一个用于将记分板从1.x升级到2.0的数据包函数
|
|
@ -1,4 +1,6 @@
|
|||||||
#初始化tagplayer
|
#初始化tagplayer
|
||||||
carpet setDefault commandScript true
|
carpet setDefault commandScript true
|
||||||
carpet setDefault commandScriptACE ops
|
carpet setDefault commandScriptACE ops
|
||||||
|
carpet setDefault scriptsAutoload true
|
||||||
|
carpet setDefault commandPlayer ops
|
||||||
script load tagplayer
|
script load tagplayer
|
@ -15,8 +15,8 @@ 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:Alpha-2.0.0.2}
|
data merge storage fz {version:Alpha-2.0.0.3}
|
||||||
data merge storage fz {date:2020-11.26}
|
data merge storage fz {date:2020-11.27}
|
||||||
data merge storage fz {time:"23:51"}
|
data merge storage fz {time:"22:18"}
|
||||||
data merge storage fz {snapshot:-SNAPSHOT}
|
data merge storage fz {snapshot:-SNAPSHOT}
|
||||||
##data remove storage fz snapshot
|
##data remove storage fz snapshot
|
@ -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: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"}]
|
tellraw @a [{"text": "FZ's Datapack-"},{"nbt":"version","storage":"fz"},{"nbt": "snapshot", "storage": "fz"}]
|
1065
tagplayer.sc
1065
tagplayer.sc
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user