fz-survival-datapack/data/fzsd.extra.bbl/functions/interactor/display.mcfunction
2024-06-16 11:01:54 +08:00

3 lines
666 B
Mcfunction

# 见#fzsd:module/scoreboard/interactor/display
## 当破基岩榜分数不为0时向玩家显示按钮
execute if data storage fzsd:install fzsd.extra{bbl:1b} if score fzsd.module.scoreboard.total.bedrock_broken_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": "fzsd.module.scoreboard.text.bedrock_broken_count", "interpret": true, "storage": "fzsd:module"}, {"text": "]"}]