添加分数恢复脚本
This commit is contained in:
@@ -20,5 +20,27 @@ scoreboard objectives remove fz.module.scoreboard.display.kill_count
|
||||
### 交易榜
|
||||
scoreboard objectives remove fz.module.scoreboard.display.trade_count
|
||||
|
||||
## 清除队伍
|
||||
### 轮播
|
||||
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
|
||||
|
||||
## 日志
|
||||
execute if score fz.logger.level fz.variable.integer matches ..500 run tellraw @a [{"nbt": "level.info", "interpret": true, "storage": "fz:logger"}, {"text": "已删除计分板数据!"}]
|
||||
@@ -51,6 +51,11 @@ team add fz.module.scoreboard.display.placement_count
|
||||
scoreboard objectives add fz.module.scoreboard.display.trade_count dummy
|
||||
team add fz.module.scoreboard.display.trade_count
|
||||
|
||||
team add fz.module.scoreboard.fake
|
||||
team add fz.module.scoreboard.shadow
|
||||
team modify fz.module.scoreboard.fake prefix {"text": "假的"}
|
||||
team modify fz.module.scoreboard.shadow prefix {"text": "挂机"}
|
||||
|
||||
## 标记为已安装
|
||||
data modify storage fz:installed fz.module.scoreboard set value 1b
|
||||
|
||||
|
||||
@@ -3,28 +3,6 @@
|
||||
## 关闭轮播循环
|
||||
schedule clear fz:module/scoreboard/display/carousel/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
|
||||
|
||||
## 关闭计分板显示
|
||||
scoreboard objectives setdisplay sidebar.team.aqua
|
||||
scoreboard objectives setdisplay sidebar.team.black
|
||||
@@ -43,6 +21,9 @@ scoreboard objectives setdisplay sidebar.team.red
|
||||
scoreboard objectives setdisplay sidebar.team.white
|
||||
scoreboard objectives setdisplay sidebar.team.yellow
|
||||
|
||||
team remove fz.module.scoreboard.fake
|
||||
team remove fz.module.scoreboard.shadow
|
||||
|
||||
## 询问是否清除数据
|
||||
execute if score fz.logger.level fz.variable.integer matches ..600 run tellraw @s [{"nbt": "fz.level.alert", "interpret": true, "storage": "fz:logger"}, {"text": "您要删除计分板数据吗,它将会永久失去!(真的很久!)"}, {"text": "[确定]", "color": "dark_red", "clickEvent": {"action": "suggest_command", "value": "/function #fz:module/scoreboard/clear_data"}, "hoverEvent": {"action": "show_text", "contents": {"text": "将命令填入聊天框"}}}]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user