da7af9fc83
- 将命名空间改为“fzsd” - 完善交互器 - 添加管理员命令(/function admin.fzsd:<...>) - 添加启动函数,用于自动升级等功能 - 添加重装、深度安装、深度卸载、深度重装函数
6 lines
593 B
Mcfunction
6 lines
593 B
Mcfunction
execute store success storage fzsd:version fzsd.need_update int 1 run data merge storage fzsd:version {fzsd:{version: '3.0.0-beta.5'}}
|
||
execute if data storage fzsd:version fzsd{need_update: 1} run function fzsd:system/update
|
||
function fzsd:system/carpet/try_load_fzsd_score
|
||
function #fzsd:load
|
||
execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{"nbt": "fzsd.level.info", "interpret": true, "storage": "fzsd:logger"}, {"text": "FZ Survival Data Pack,当前版本:", "color": "gold"}, {"nbt":"fzsd.version", "storage": "fzsd:version", "color": "yellow"}]
|