fz-survival-datapack/data/fzsd/functions/module/scoreboard/install.mcfunction
延皓 da7af9fc83 完善所有剩余功能,后续bug修复后即准备发布正式版并向下移植
- 将命名空间改为“fzsd”
- 完善交互器
- 添加管理员命令(/function admin.fzsd:<...>)
- 添加启动函数,用于自动升级等功能
- 添加重装、深度安装、深度卸载、深度重装函数
2022-07-30 16:34:38 +08:00

63 lines
2.2 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.

# 调用者:#fzsd:module/scoreboard/install
## 源计分板
### 总榜
scoreboard objectives add fzsd.module.scoreboard.assign.general dummy
## 轮播
team add fzsd.module.scoreboard.display.carousel
## 创建显示计分板
###### 判据均为dummy便于升级维护
### 总榜
scoreboard objectives add fzsd.module.scoreboard.display.general dummy
team add fzsd.module.scoreboard.display.general
### 活跃度
scoreboard objectives add fzsd.module.scoreboard.display.activation dummy
team add fzsd.module.scoreboard.display.activation
### 飞行距离
scoreboard objectives add fzsd.module.scoreboard.display.aviating_distance dummy
team add fzsd.module.scoreboard.display.aviating_distance
### 抖M榜
scoreboard objectives add fzsd.module.scoreboard.display.damage_taken dummy
team add fzsd.module.scoreboard.display.damage_taken
### 死亡榜
scoreboard objectives add fzsd.module.scoreboard.display.death_count dummy
team add fzsd.module.scoreboard.display.death_count
### 挖掘榜
scoreboard objectives add fzsd.module.scoreboard.display.dig_count dummy
team add fzsd.module.scoreboard.display.dig_count
### 钓鱼榜
scoreboard objectives add fzsd.module.scoreboard.display.fishing_count dummy
team add fzsd.module.scoreboard.display.fishing_count
### 击杀榜
scoreboard objectives add fzsd.module.scoreboard.display.kill_count dummy
team add fzsd.module.scoreboard.display.kill_count
### 放置榜
scoreboard objectives add fzsd.module.scoreboard.display.placement_count dummy
team add fzsd.module.scoreboard.display.placement_count
### 交易榜
scoreboard objectives add fzsd.module.scoreboard.display.trade_count dummy
team add fzsd.module.scoreboard.display.trade_count
team add fzsd.module.scoreboard.fake
team add fzsd.module.scoreboard.shadow
team modify fzsd.module.scoreboard.fake prefix {"text": "假的"}
team modify fzsd.module.scoreboard.shadow prefix {"text": "挂机"}
## 标记为已安装
data modify storage fzsd:installed fzsd.module.scoreboard set value 1b
## 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{"nbt": "fzsd.level.info", "interpret": true, "storage": "fzsd:logger"}, {"text": "已安装组件:计分板"}]