fz-survival-datapack/data/fz/functions/module/scoreboard/uninstall.mcfunction
2022-06-23 15:43:39 +08:00

36 lines
1.5 KiB
Mcfunction
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 调用者fz:uninstall
## 关闭轮播循环
schedule clear #fz:module/scoreboard/display/carousel_controller/loop
## 清除队伍
### 轮播
team remove fz.module.scoreboard.display.carousel
### 总榜
team remove fz.module.scoreboard.display.general
### 活跃度
team remove fz.module.scoreboard.display.activation
### 飞行距离
team remove fz.module.scoreboard.display.aviating_distance
### 受伤害榜
team remove fz.module.scoreboard.display.damage_taken
### 死亡榜
team remove fz.module.scoreboard.display.death_count
### 挖掘榜
team remove fz.module.scoreboard.display.dig_count
### 钓鱼榜
team remove fz.module.scoreboard.display.fishing_count
### 击杀榜
team remove fz.module.scoreboard.display.kill_count
### 交易榜
team remove fz.module.scoreboard.display.trade_count
## 日志
tellraw @a [{"nbt": "level.info", "interpret": true, "storage": "fz:logger"}, {"text": "记分板已卸载!"}]
## 询问是否清除数据function
tellraw @s [{"nbt": "level.warn", "interpret": true, "storage": "fz:logger"}, {"text": "您要删除计分板数据吗,它将会永久失去!(真的很久!)"}, {"text": "[确定]","clickEvent": {"action": "run_command", "value": "/function #fz:module/scoreboard/clear_data"}, "hoverEvent": {"action": "show_text", "contents": {"text": "删除计分板,它将会永久失去!(真的很久!)", "color": "red"}}}]
# 标记为已卸载
data modify storage fz:module scoreboard.installed set value 0b