合并破基岩榜到主数据包

This commit is contained in:
延皓 2022-09-02 05:24:33 +08:00
parent 69ddfba745
commit 7bdae8271e
60 changed files with 326 additions and 52 deletions

View File

@ -0,0 +1,24 @@
{
"parent": "fzsd:game_event",
"criteria": {
"broke_bedrock": {
"trigger": "minecraft:tick",
"conditions": {
"player": [
{
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"fzsd.extra.bbl": {
"min": 1
}
}
}
]
}
}
},
"rewards": {
"function": "fzsd.extra.bbl:event/advancement/broke_bedrock"
}
}

View File

@ -0,0 +1,5 @@
# #fzsd.extra.bbl:event/broke_bedrock
## 如果运行时id不存在则注册运行时id
execute unless score fzsd.module.scoreboard.display.bedrock_broke_count.id fzsd.variable.integer matches 0.. run function fzsd.extra.bbl:display/register_id
scoreboard players operation @s fzsd.module.scoreboard.display.bedrock_broke_count += fzsd.var.score fzsd.variable.integer
scoreboard players operation fzsd.module.scoreboard.total.bedrock_broke_count fzsd.module.scoreboard.assign.general += fzsd.var.score fzsd.variable.integer

View File

@ -0,0 +1,5 @@
# #fzsd.extra.bbl:event/broke_bedrock
team join fzsd.module.scoreboard.display.bedrock_broke_count 总破基岩数
scoreboard players operation 总破基岩数 fzsd.module.scoreboard.display.general = fzsd.module.scoreboard.total.bedrock_broke_count fzsd.module.scoreboard.assign.general
scoreboard players operation 总破基岩数 fzsd.module.scoreboard.display.bedrock_broke_count = fzsd.module.scoreboard.total.bedrock_broke_count fzsd.module.scoreboard.assign.general

View File

@ -0,0 +1,3 @@
# #fzsd:module/scoreboard/clear_data
## 清除数据
scoreboard objectives remove fzsd.module.scoreboard.display.bedrock_broke_count

View File

@ -0,0 +1,21 @@
# ./try_display
## 判断颜色代码https://minecraft.fandom.com/zh/wiki/%E6%A0%BC%E5%BC%8F%E5%8C%96%E4%BB%A3%E7%A0%81
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 0 run scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 1 run scoreboard objectives setdisplay sidebar.team.dark_blue fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 2 run scoreboard objectives setdisplay sidebar.team.dark_green fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 3 run scoreboard objectives setdisplay sidebar.team.dark_aqua fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 4 run scoreboard objectives setdisplay sidebar.team.dark_red fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 5 run scoreboard objectives setdisplay sidebar.team.dark_purple fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 6 run scoreboard objectives setdisplay sidebar.team.gold fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 7 run scoreboard objectives setdisplay sidebar.team.gray fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 8 run scoreboard objectives setdisplay sidebar.team.dark_gray fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 9 run scoreboard objectives setdisplay sidebar.team.blue fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 10 run scoreboard objectives setdisplay sidebar.team.green fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 11 run scoreboard objectives setdisplay sidebar.team.aqua fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 12 run scoreboard objectives setdisplay sidebar.team.red fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 13 run scoreboard objectives setdisplay sidebar.team.light_purple fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 14 run scoreboard objectives setdisplay sidebar.team.yellow fzsd.module.scoreboard.display.bedrock_broke_count
execute if score fzsd.module.scoreboard.carousel.color fzsd.variable.integer matches 15 run scoreboard objectives setdisplay sidebar.team.white fzsd.module.scoreboard.display.bedrock_broke_count
## 详细
execute if score fzsd.logger.level fzsd.variable.integer matches ..300 run tellraw @a [{"nbt": "fzsd.level.fine", "interpret": true, "storage": "fzsd:logger"}, {"text": "已为队伍"}, {"nbt": "fzsd.scoreboard.text.carousel", "interpret": true, "storage": "fzsd:module"}, {"text": "显示"}, {"nbt": "text", "interpret": true, "storage": "fzsd.extra.bbl:text"}, {"text": "计分板"}]

View File

@ -0,0 +1,2 @@
# #fzsd:module/scoreboard/display/carousel/try_display
execute if score fzsd.module.scoreboard.display.current_id fzsd.variable.integer = fzsd.module.scoreboard.display.id.bedrock_broke_count fzsd.variable.integer run function fzsd.extra.bbl:display/carousel/set_display

View File

@ -0,0 +1,6 @@
# #fzsd:module/scoreboard/display/register_id
#### 如果破基岩榜分数不为0注册破基岩计分板id
execute if score fzsd.module.scoreboard.total.bedrock_broke_count fzsd.module.scoreboard.assign.general matches 1.. run function #fzsd:calculation/highest_id_add_1
execute if score fzsd.module.scoreboard.total.bedrock_broke_count fzsd.module.scoreboard.assign.general matches 1.. run scoreboard players operation fzsd.module.scoreboard.display.id.bedrock_broke_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
execute if score fzsd.module.scoreboard.total.bedrock_broke_count fzsd.module.scoreboard.assign.general matches 1.. if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册破基岩计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.bedrock_broke_count", "objective": "fzsd.variable.integer"}}]

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "aqua"}'
scoreboard objectives setdisplay sidebar.team.aqua fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "aqua"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color aqua
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "aqua"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "#202020"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color black
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "#202020"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "blue"}'
scoreboard objectives setdisplay sidebar.team.blue fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "blue"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color blue
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "blue"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "dark_aqua"}'
scoreboard objectives setdisplay sidebar.team.dark_aqua fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "dark_aqua"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color dark_aqua
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "dark_aqua"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "dark_blue"}'
scoreboard objectives setdisplay sidebar.team.dark_blue fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "dark_blue"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color dark_blue
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "dark_blue"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "dark_gray"}'
scoreboard objectives setdisplay sidebar.team.dark_gray fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "dark_gray"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color dark_gray
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "dark_gray"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "dark_green"}'
scoreboard objectives setdisplay sidebar.team.dark_green fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "dark_green"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color dark_green
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "dark_green"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "dark_purple"}'
scoreboard objectives setdisplay sidebar.team.dark_purple fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "dark_purple"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color dark_purple
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "dark_purple"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "dark_red"}'
scoreboard objectives setdisplay sidebar.team.dark_red fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "dark_red"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color dark_red
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "dark_red"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "gold"}'
scoreboard objectives setdisplay sidebar.team.gold fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "gold"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color gold
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "gold"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "gray"}'
scoreboard objectives setdisplay sidebar.team.gray fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "gray"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color gray
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "gray"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "green"}'
scoreboard objectives setdisplay sidebar.team.green fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "green"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color green
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "green"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "purple"}'
scoreboard objectives setdisplay sidebar.team.light_purple fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "purple"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color light_purple
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "purple"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "red"}'
scoreboard objectives setdisplay sidebar.team.red fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "red"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color red
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "red"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "white"}'
scoreboard objectives setdisplay sidebar.team.white fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "white"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color white
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "white"}

View File

@ -0,0 +1,7 @@
# #fzsd.extra.bbl:display/set_text
data modify storage fzsd.extra.bbl:text text set value '{"text": "破基岩榜", "color": "yellow"}'
scoreboard objectives setdisplay sidebar.team.yellow fzsd.module.scoreboard.display.bedrock_broke_count
scoreboard objectives modify fzsd.module.scoreboard.display.bedrock_broke_count displayname {"text": "破基岩榜", "color": "yellow"}
team modify fzsd.module.scoreboard.display.bedrock_broke_count color yellow
team modify fzsd.module.scoreboard.display.bedrock_broke_count displayName {"text": "破基岩榜", "color": "yellow"}

View File

@ -0,0 +1,7 @@
# 见advancements/fzsd.extra.bbl:broke_bedrock
## 排除假人并触发事件
execute if predicate fzsd:is_real_player run function fzsd.extra.bbl:event/player/broke_bedrock
## 重置事件
scoreboard players set @s fzsd.extra.bbl 0
advancement revoke @s only fzsd.extra.bbl:broke_bedrock

View File

@ -0,0 +1,6 @@
# ../advancement/broke_bedrock
## 详细
execute if score fzsd.logger.level fzsd.variable.integer matches ..300 run tellraw @a [{"nbt": "fzsd.level.fine", "interpret": true, "storage": "fzsd:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "破基岩"}]
scoreboard players operation fzsd.var.score fzsd.variable.integer = @s fzsd.extra.bbl
function #fzsd.extra.bbl:event/broke_bedrock

View File

@ -0,0 +1,11 @@
# 应在原模块安装时一并安装模块扩展#fzsd:module/scoreboard/install
## 同时应在加载时检测是否需要重新安装./try_install
## 添加底层实现计分板
scoreboard objectives add fzsd.extra.bbl dummy
## 添加显示计分板
scoreboard objectives add fzsd.module.scoreboard.display.bedrock_broke_count dummy
## 添加计分板订阅队伍
team add fzsd.module.scoreboard.display.bedrock_broke_count
## 设为已安装
data modify storage fzsd:install fzsd.extra.bbl 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": "已安装扩展:破基岩榜"}]

View File

@ -0,0 +1,3 @@
# #fzsd:module/scoreboard/interactor/display
## 当破基岩榜分数不为0时向玩家显示按钮
execute if score fzsd.module.scoreboard.total.bedrock_broke_count fzsd.module.scoreboard.assign.general matches 1.. run tellraw @s [{"text": "[", "color": "dark_gray", "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1210"}, "hoverEvent": {"action": "show_text", "contents": {"nbt": "text", "interpret": true, "storage": "fzsd.extra.bbl:text"}}}, {"nbt": "text", "interpret": true, "storage": "fzsd.extra.bbl:text"}, {"text": "]"}]

View File

@ -0,0 +1,2 @@
# #fzsd:module/scoreboard/interactor/on_click
execute if score @s fzsd.module.interactor.trigger matches -1210 run function fzsd.extra.bbl:interactor/subscribe

View File

@ -0,0 +1,6 @@
# ./on_click
team join fzsd.module.scoreboard.display.bedrock_broke_count @s
## 调试
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "玩家"}, {"selector": "@s"}, {"text": "订阅了"}, {"nbt": "text", "interpret": true, "storage": "fzsd.extra.bbl:text"}, {"text": "计分板"}]

View File

@ -0,0 +1,2 @@
# 扩展现有的模块时应在加载时检测是否需要安装#fzsd:module/scoreboard/load
execute unless data storage fzsd:install fzsd.extra{bbl: 1b} run function fzsd.extra.bbl:install

View File

@ -0,0 +1,8 @@
# #fzsd:module/scoreboard/uninstall
## 移除底层实现计分板
scoreboard objectives remove fzsd.extra.bbl
## 移除计分板订阅队伍
team remove fzsd.module.scoreboard.display.bedrock_broke_count
## 设为已卸载
data modify storage fzsd:install fzsd.extra.bbl set value 0b
execute if score fzsd.logger.level fzsd.variable.integer matches ..500 run tellraw @a [{"nbt": "fzsd.level.info", "interpret": true, "storage": "fzsd:logger"}, {"text": "已卸载扩展:破基岩榜"}]

View File

@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"fzsd.extra.bbl:display/set_text/black"
]
}

View File

@ -0,0 +1,7 @@
{
"replace": false,
"values": [
"fzsd.extra.bbl:assign/bbl",
"fzsd.extra.bbl:assign/general"
]
}

View File

@ -1,39 +1,59 @@
#### 注册总榜计分板id
function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.general fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册总榜计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.general", "objective": "fzsd.variable.integer"}}]
#### 注册活跃度计分板id #### 注册活跃度计分板id
function #fzsd:calculation/highest_id_add_1 function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.activation fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer scoreboard players operation fzsd.module.scoreboard.display.id.activation fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册活跃度计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.activation", "objective": "fzsd.variable.integer"}}]
#### 注册飞行距离计分板id #### 注册飞行距离计分板id
function #fzsd:calculation/highest_id_add_1 function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.aviating_distance fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer scoreboard players operation fzsd.module.scoreboard.display.id.aviating_distance fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册飞行距离计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.activation", "objective": "fzsd.variable.integer"}}]
#### 注册抖M榜计分板id #### 注册抖M榜计分板id
function #fzsd:calculation/highest_id_add_1 function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.damage_taken fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer scoreboard players operation fzsd.module.scoreboard.display.id.damage_taken fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册抖M榜计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.damage_taken", "objective": "fzsd.variable.integer"}}]
#### 注册死亡榜计分板id #### 注册死亡榜计分板id
function #fzsd:calculation/highest_id_add_1 function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.death_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer scoreboard players operation fzsd.module.scoreboard.display.id.death_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册死亡榜计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.death_count", "objective": "fzsd.variable.integer"}}]
#### 注册挖掘榜计分板id #### 注册挖掘榜计分板id
function #fzsd:calculation/highest_id_add_1 function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.dig_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer scoreboard players operation fzsd.module.scoreboard.display.id.dig_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册挖掘榜计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.dig_count", "objective": "fzsd.variable.integer"}}]
#### 注册钓鱼榜计分板id #### 注册钓鱼榜计分板id
function #fzsd:calculation/highest_id_add_1 function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.fishing_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer scoreboard players operation fzsd.module.scoreboard.display.id.fishing_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
#### 注册总榜计分板id execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册钓鱼榜计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.fishing_count", "objective": "fzsd.variable.integer"}}]
function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.general fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
#### 注册击杀榜计分板id #### 注册击杀榜计分板id
function #fzsd:calculation/highest_id_add_1 function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.kill_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer scoreboard players operation fzsd.module.scoreboard.display.id.kill_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册击杀榜计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.kill_count", "objective": "fzsd.variable.integer"}}]
#### 注册交易榜计分板id #### 注册交易榜计分板id
function #fzsd:calculation/highest_id_add_1 function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.trade_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer scoreboard players operation fzsd.module.scoreboard.display.id.trade_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册交易榜计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.trade_count", "objective": "fzsd.variable.integer"}}]
#### 注册放置榜计分板id #### 注册放置榜计分板id
function #fzsd:calculation/highest_id_add_1 function #fzsd:calculation/highest_id_add_1
scoreboard players operation fzsd.module.scoreboard.display.id.placement_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer scoreboard players operation fzsd.module.scoreboard.display.id.placement_count fzsd.variable.integer = fzsd.module.scoreboard.display.highest_id fzsd.variable.integer
##### 日志
execute if score fzsd.logger.level fzsd.variable.integer matches ..400 run tellraw @a [{"nbt": "fzsd.level.debug", "interpret": true, "storage": "fzsd:logger"}, {"text": "注册放置榜计分板id为"}, {"score": {"name": "fzsd.module.scoreboard.display.id.placement_count", "objective": "fzsd.variable.integer"}}]

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/activation # 调用者#fzsd:module/scoreboard/display/set_text/activation
data modify storage fzsd:module fzsd.scoreboard.text.activation set value '{"text": "活跃时间h", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.activation set value '{"text": "活跃时间h", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.activation scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.activation
scoreboard objectives modify fzsd.module.scoreboard.display.activation displayname {"text": "活跃时间h", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.activation displayname {"text": "活跃时间h", "color": "#202020"}
team modify fzsd.module.scoreboard.display.activation color black team modify fzsd.module.scoreboard.display.activation color black
team modify fzsd.module.scoreboard.display.activation displayName {"text": "活跃时间h", "color": "black"} team modify fzsd.module.scoreboard.display.activation displayName {"text": "活跃时间h", "color": "#202020"}

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/aviating_distance # 调用者#fzsd:module/scoreboard/display/set_text/aviating_distance
data modify storage fzsd:module fzsd.scoreboard.text.aviating_distance set value '{"text": "飞行距离", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.aviating_distance set value '{"text": "飞行距离", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.aviating_distance scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.aviating_distance
scoreboard objectives modify fzsd.module.scoreboard.display.aviating_distance displayname {"text": "飞行距离", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.aviating_distance displayname {"text": "飞行距离", "color": "#202020"}
team modify fzsd.module.scoreboard.display.aviating_distance color black team modify fzsd.module.scoreboard.display.aviating_distance color black
team modify fzsd.module.scoreboard.display.aviating_distance displayName {"text": "飞行距离", "color": "black"} team modify fzsd.module.scoreboard.display.aviating_distance displayName {"text": "飞行距离", "color": "#202020"}

View File

@ -1,6 +1,6 @@
# 调用者#fzsd:module/scoreboard/display/set_text/carousel # 调用者#fzsd:module/scoreboard/display/set_text/carousel
data modify storage fzsd:module fzsd.scoreboard.text.carousel set value '{"text": "轮播", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.carousel set value '{"text": "轮播", "color": "#202020"}'
team modify fzsd.module.scoreboard.display.carousel color black team modify fzsd.module.scoreboard.display.carousel color black
team modify fzsd.module.scoreboard.display.carousel displayName {"text": "轮播", "color": "black"} team modify fzsd.module.scoreboard.display.carousel displayName {"text": "轮播", "color": "#202020"}
scoreboard players set fzsd.module.scoreboard.carousel.color fzsd.variable.integer 0 scoreboard players set fzsd.module.scoreboard.carousel.color fzsd.variable.integer 0

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/damage_taken # 调用者#fzsd:module/scoreboard/display/set_text/damage_taken
data modify storage fzsd:module fzsd.scoreboard.text.damage_taken set value '{"text": "抖M榜", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.damage_taken set value '{"text": "抖M榜", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.damage_taken scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.damage_taken
scoreboard objectives modify fzsd.module.scoreboard.display.damage_taken displayname {"text": "抖M榜", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.damage_taken displayname {"text": "抖M榜", "color": "#202020"}
team modify fzsd.module.scoreboard.display.damage_taken color black team modify fzsd.module.scoreboard.display.damage_taken color black
team modify fzsd.module.scoreboard.display.damage_taken displayName {"text": "抖M榜", "color": "black"} team modify fzsd.module.scoreboard.display.damage_taken displayName {"text": "抖M榜", "color": "#202020"}

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/death_count # 调用者#fzsd:module/scoreboard/display/set_text/death_count
data modify storage fzsd:module fzsd.scoreboard.text.death_count set value '{"text": "死亡榜", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.death_count set value '{"text": "死亡榜", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.death_count scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.death_count
scoreboard objectives modify fzsd.module.scoreboard.display.death_count displayname {"text": "死亡榜", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.death_count displayname {"text": "死亡榜", "color": "#202020"}
team modify fzsd.module.scoreboard.display.death_count color black team modify fzsd.module.scoreboard.display.death_count color black
team modify fzsd.module.scoreboard.display.death_count displayName {"text": "死亡榜", "color": "black"} team modify fzsd.module.scoreboard.display.death_count displayName {"text": "死亡榜", "color": "#202020"}

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/dig_count # 调用者#fzsd:module/scoreboard/display/set_text/dig_count
data modify storage fzsd:module fzsd.scoreboard.text.dig_count set value '{"text": "挖掘榜", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.dig_count set value '{"text": "挖掘榜", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.dig_count scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.dig_count
scoreboard objectives modify fzsd.module.scoreboard.display.dig_count displayname {"text": "挖掘榜", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.dig_count displayname {"text": "挖掘榜", "color": "#202020"}
team modify fzsd.module.scoreboard.display.dig_count color black team modify fzsd.module.scoreboard.display.dig_count color black
team modify fzsd.module.scoreboard.display.dig_count displayName {"text": "挖掘榜", "color": "black"} team modify fzsd.module.scoreboard.display.dig_count displayName {"text": "挖掘榜", "color": "#202020"}

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/fishing_count # 调用者#fzsd:module/scoreboard/display/set_text/fishing_count
data modify storage fzsd:module fzsd.scoreboard.text.fishing_count set value '{"text": "钓鱼榜", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.fishing_count set value '{"text": "钓鱼榜", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.fishing_count scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.fishing_count
scoreboard objectives modify fzsd.module.scoreboard.display.fishing_count displayname {"text": "钓鱼榜", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.fishing_count displayname {"text": "钓鱼榜", "color": "#202020"}
team modify fzsd.module.scoreboard.display.fishing_count color black team modify fzsd.module.scoreboard.display.fishing_count color black
team modify fzsd.module.scoreboard.display.fishing_count displayName {"text": "钓鱼榜", "color": "black"} team modify fzsd.module.scoreboard.display.fishing_count displayName {"text": "钓鱼榜", "color": "#202020"}

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/general # 调用者#fzsd:module/scoreboard/display/set_text/general
data modify storage fzsd:module fzsd.scoreboard.text.general set value '{"text": "总榜", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.general set value '{"text": "总榜", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.general scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.general
scoreboard objectives modify fzsd.module.scoreboard.display.general displayname {"text": "总榜", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.general displayname {"text": "总榜", "color": "#202020"}
team modify fzsd.module.scoreboard.display.general color black team modify fzsd.module.scoreboard.display.general color black
team modify fzsd.module.scoreboard.display.general displayName {"text": "总榜", "color": "black"} team modify fzsd.module.scoreboard.display.general displayName {"text": "总榜", "color": "#202020"}

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/kill_count # 调用者#fzsd:module/scoreboard/display/set_text/kill_count
data modify storage fzsd:module fzsd.scoreboard.text.kill_count set value '{"text": "击杀榜", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.kill_count set value '{"text": "击杀榜", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.kill_count scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.kill_count
scoreboard objectives modify fzsd.module.scoreboard.display.kill_count displayname {"text": "击杀榜", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.kill_count displayname {"text": "击杀榜", "color": "#202020"}
team modify fzsd.module.scoreboard.display.kill_count color black team modify fzsd.module.scoreboard.display.kill_count color black
team modify fzsd.module.scoreboard.display.kill_count displayName {"text": "击杀榜", "color": "black"} team modify fzsd.module.scoreboard.display.kill_count displayName {"text": "击杀榜", "color": "#202020"}

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/placement_count # 调用者#fzsd:module/scoreboard/display/set_text/placement_count
data modify storage fzsd:module fzsd.scoreboard.text.placement_count set value '{"text": "放置榜", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.placement_count set value '{"text": "放置榜", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.placement_count scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.placement_count
scoreboard objectives modify fzsd.module.scoreboard.display.placement_count displayname {"text": "放置榜", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.placement_count displayname {"text": "放置榜", "color": "#202020"}
team modify fzsd.module.scoreboard.display.placement_count color black team modify fzsd.module.scoreboard.display.placement_count color black
team modify fzsd.module.scoreboard.display.placement_count displayName {"text": "放置榜", "color": "black"} team modify fzsd.module.scoreboard.display.placement_count displayName {"text": "放置榜", "color": "#202020"}

View File

@ -1,7 +1,7 @@
# 调用者#fzsd:module/scoreboard/display/set_text/trade_count # 调用者#fzsd:module/scoreboard/display/set_text/trade_count
data modify storage fzsd:module fzsd.scoreboard.text.trade_count set value '{"text": "交易榜", "color": "black"}' data modify storage fzsd:module fzsd.scoreboard.text.trade_count set value '{"text": "交易榜", "color": "#202020"}'
scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.trade_count scoreboard objectives setdisplay sidebar.team.black fzsd.module.scoreboard.display.trade_count
scoreboard objectives modify fzsd.module.scoreboard.display.trade_count displayname {"text": "交易榜", "color": "black"} scoreboard objectives modify fzsd.module.scoreboard.display.trade_count displayname {"text": "交易榜", "color": "#202020"}
team modify fzsd.module.scoreboard.display.trade_count color black team modify fzsd.module.scoreboard.display.trade_count color black
team modify fzsd.module.scoreboard.display.trade_count displayName {"text": "交易榜", "color": "black"} team modify fzsd.module.scoreboard.display.trade_count displayName {"text": "交易榜", "color": "#202020"}

View File

@ -2,4 +2,4 @@
execute if data storage fzsd:install fzsd.module{scoreboard:1b} run tellraw @s {"text": "计分板:"} execute if data storage fzsd:install fzsd.module{scoreboard:1b} run tellraw @s {"text": "计分板:"}
execute if data storage fzsd:install fzsd.module{scoreboard:1b} run tellraw @s [[{"text": "[", "color": "dark_gray", "hoverEvent": {"action": "show_text", "contents": {"text": "关", "color": "dark_red"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1000"}}, {"text": "关", "color": "dark_red"}, {"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.carousel", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1010"}}, {"nbt": "fzsd.scoreboard.text.carousel", "interpret": true, "storage": "fzsd:module"}, {"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.general", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1020"}}, {"nbt": "fzsd.scoreboard.text.general", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.activation", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1030"}}, {"nbt": "fzsd.scoreboard.text.activation", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.aviating_distance", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1040"}}, {"nbt": "fzsd.scoreboard.text.aviating_distance", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.damage_taken", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1050"}}, {"nbt": "fzsd.scoreboard.text.damage_taken", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.death_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1060"}}, {"nbt": "fzsd.scoreboard.text.death_count", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.dig_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1070"}}, {"nbt": "fzsd.scoreboard.text.dig_count", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.fishing_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1080"}}, {"nbt": "fzsd.scoreboard.text.fishing_count", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.kill_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1090"}}, {"nbt": "fzsd.scoreboard.text.kill_count", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.trade_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1100"}}, {"nbt": "fzsd.scoreboard.text.trade_count", "interpret": true, "storage": "fzsd:module"}, {"text": "]"}]] execute if data storage fzsd:install fzsd.module{scoreboard:1b} run tellraw @s [[{"text": "[", "color": "dark_gray", "hoverEvent": {"action": "show_text", "contents": {"text": "关", "color": "dark_red"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1000"}}, {"text": "关", "color": "dark_red"}, {"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.carousel", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1010"}}, {"nbt": "fzsd.scoreboard.text.carousel", "interpret": true, "storage": "fzsd:module"}, {"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.general", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1020"}}, {"nbt": "fzsd.scoreboard.text.general", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.activation", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1030"}}, {"nbt": "fzsd.scoreboard.text.activation", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.aviating_distance", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1040"}}, {"nbt": "fzsd.scoreboard.text.aviating_distance", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.damage_taken", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1050"}}, {"nbt": "fzsd.scoreboard.text.damage_taken", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.death_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1060"}}, {"nbt": "fzsd.scoreboard.text.death_count", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.dig_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1070"}}, {"nbt": "fzsd.scoreboard.text.dig_count", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.fishing_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1080"}}, {"nbt": "fzsd.scoreboard.text.fishing_count", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.kill_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1090"}}, {"nbt": "fzsd.scoreboard.text.kill_count", "interpret": true, "storage": "fzsd:module"},{"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.trade_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1100"}}, {"nbt": "fzsd.scoreboard.text.trade_count", "interpret": true, "storage": "fzsd:module"}, {"text": "]"}], [{"text": "[", "hoverEvent": {"action": "show_text", "contents": {"nbt": "fzsd.scoreboard.text.placement_count", "interpret": true, "storage": "fzsd:module"}}, "clickEvent": {"action": "run_command", "value": "/trigger fzsd.module.interactor.trigger set -1200"}}, {"nbt": "fzsd.scoreboard.text.placement_count", "interpret": true, "storage": "fzsd:module"}, {"text": "]"}]]

View File

@ -8,4 +8,5 @@ execute if score @s fzsd.module.interactor.trigger matches -1060 run function #f
execute if score @s fzsd.module.interactor.trigger matches -1070 run function #fzsd:module/scoreboard/interactor/subscribe/dig_count execute if score @s fzsd.module.interactor.trigger matches -1070 run function #fzsd:module/scoreboard/interactor/subscribe/dig_count
execute if score @s fzsd.module.interactor.trigger matches -1080 run function #fzsd:module/scoreboard/interactor/subscribe/fishing_count execute if score @s fzsd.module.interactor.trigger matches -1080 run function #fzsd:module/scoreboard/interactor/subscribe/fishing_count
execute if score @s fzsd.module.interactor.trigger matches -1090 run function #fzsd:module/scoreboard/interactor/subscribe/kill_count execute if score @s fzsd.module.interactor.trigger matches -1090 run function #fzsd:module/scoreboard/interactor/subscribe/kill_count
execute if score @s fzsd.module.interactor.trigger matches -1100 run function #fzsd:module/scoreboard/interactor/subscribe/trade_count execute if score @s fzsd.module.interactor.trigger matches -1100 run function #fzsd:module/scoreboard/interactor/subscribe/trade_count
execute if score @s fzsd.module.interactor.trigger matches -1200 run function #fzsd:module/scoreboard/interactor/subscribe/placement_count

View File

@ -1,5 +1,5 @@
{ {
"__comment": "本标签将强制重装所有模块", "__comment": "本标签将强制卸载所有模块",
"replace": false, "replace": false,
"values": [ "values": [
"#fzsd:system/uninstall/before", "#fzsd:system/uninstall/before",

View File

@ -0,0 +1,7 @@
{
"__comment": "用于兼容fzsd地毯脚本分数恢复功能",
"replace": false,
"values": [
"fzsd.extra.bbl:assign/general"
]
}

View File

@ -2,6 +2,7 @@
"__comment": "调用者fzsd:module:scoreboard/uninstall", "__comment": "调用者fzsd:module:scoreboard/uninstall",
"replace": false, "replace": false,
"values": [ "values": [
"fzsd:module/scoreboard/clear_data" "fzsd:module/scoreboard/clear_data",
"fzsd.extra.bbl:clear_data"
] ]
} }

View File

@ -10,6 +10,7 @@
"fzsd:module/scoreboard/display/carousel/try_display/general", "fzsd:module/scoreboard/display/carousel/try_display/general",
"fzsd:module/scoreboard/display/carousel/try_display/kill_count", "fzsd:module/scoreboard/display/carousel/try_display/kill_count",
"fzsd:module/scoreboard/display/carousel/try_display/placement_count", "fzsd:module/scoreboard/display/carousel/try_display/placement_count",
"fzsd:module/scoreboard/display/carousel/try_display/trade_count" "fzsd:module/scoreboard/display/carousel/try_display/trade_count",
"fzsd.extra.bbl:display/carousel/try_display"
] ]
} }

View File

@ -5,6 +5,8 @@
], ],
"replace": false, "replace": false,
"values": [ "values": [
"fzsd:module/scoreboard/display/register_id" "fzsd:module/scoreboard/display/reset_id",
"fzsd:module/scoreboard/display/register_id",
"fzsd.extra.bbl:display/register_id"
] ]
} }

View File

@ -15,6 +15,7 @@
"#fzsd:module/scoreboard/display/set_text/general", "#fzsd:module/scoreboard/display/set_text/general",
"#fzsd:module/scoreboard/display/set_text/kill_count", "#fzsd:module/scoreboard/display/set_text/kill_count",
"#fzsd:module/scoreboard/display/set_text/placement_count", "#fzsd:module/scoreboard/display/set_text/placement_count",
"#fzsd:module/scoreboard/display/set_text/trade_count" "#fzsd:module/scoreboard/display/set_text/trade_count",
"#fzsd.extra.bbl:display/set_text"
] ]
} }

View File

@ -1,6 +1,6 @@
{ {
"replace": false, "replace": false,
"values": [ "values": [
"fzsd:module/scoreboard/display/set_text/placement_count/dark_blue" "fzsd:module/scoreboard/display/set_text/placement_count/dark_green"
] ]
} }

View File

@ -2,6 +2,7 @@
"__comment": "调用者:#fzsd:module/install", "__comment": "调用者:#fzsd:module/install",
"replace": false, "replace": false,
"values": [ "values": [
"fzsd:module/scoreboard/install" "fzsd:module/scoreboard/install",
"fzsd.extra.bbl:install"
] ]
} }

View File

@ -1,6 +1,7 @@
{ {
"replace": false, "replace": false,
"values": [ "values": [
"fzsd:module/scoreboard/interactor/display" "fzsd:module/scoreboard/interactor/display",
"fzsd.extra.bbl:interactor/display"
] ]
} }

View File

@ -1,6 +1,7 @@
{ {
"replace": false, "replace": false,
"values": [ "values": [
"fzsd:module/scoreboard/interactor/on_click" "fzsd:module/scoreboard/interactor/on_click",
"fzsd.extra.bbl:interactor/on_click"
] ]
} }

View File

@ -2,10 +2,10 @@
"__comment": "调用者fzsd:module/try_load", "__comment": "调用者fzsd:module/try_load",
"replace": false, "replace": false,
"values": [ "values": [
"fzsd:module/scoreboard/display/reset_id",
"#fzsd:module/scoreboard/display/register_id", "#fzsd:module/scoreboard/display/register_id",
"#fzsd:module/scoreboard/display/set_text", "#fzsd:module/scoreboard/display/set_text",
"fzsd:module/scoreboard/display/carousel/loop", "fzsd:module/scoreboard/display/carousel/loop",
"fzsd:module/scoreboard/load" "fzsd:module/scoreboard/load",
"fzsd.extra.bbl:try_install"
] ]
} }

View File

@ -2,6 +2,7 @@
"__comment": "调用者:#fzsd:module/uninstall", "__comment": "调用者:#fzsd:module/uninstall",
"replace": false, "replace": false,
"values": [ "values": [
"fzsd:module/scoreboard/uninstall" "fzsd:module/scoreboard/uninstall",
"fzsd.extra.bbl:uninstall"
] ]
} }

View File

@ -255,6 +255,7 @@ recalculate_total_scores() -> (
'fzsd.module.scoreboard.display.kill_count', 'fzsd.module.scoreboard.display.kill_count',
'fzsd.module.scoreboard.display.trade_count', 'fzsd.module.scoreboard.display.trade_count',
'fzsd.module.scoreboard.display.bedrock_broke_count', 'fzsd.module.scoreboard.display.bedrock_broke_count',
'fzsd.module.scoreboard.display.placement_count',
'fzsd.module.scoreboard.display.aviating_distance' 'fzsd.module.scoreboard.display.aviating_distance'
]; ];
for(scoreboards,recalculate_total_score(_, get_total_score_name_new(_))); for(scoreboards,recalculate_total_score(_, get_total_score_name_new(_)));