fz-survival-datapack/data/fz/functions/uninstall.mcfunction

16 lines
501 B
Mcfunction

# 调用者:#fz:uninstall
function #fz:module/uninstall
## 整数类型
scoreboard objectives remove fz.variable.integer
function fz:event/uninstall
function fz:logger/uninstall
## 标记为已卸载
data remove storage fz:install_manager fz
data modify storage fz:install_manager fz.global set value 0b
## 日志
execute if score fz.logger.level fz.variable.integer matches ..500 run tellraw @a [{"nbt": "fz.level.info", "interpret": true, "storage": "fz:logger"}, {"text": "卸载完成!"}]