16 lines
629 B
Mcfunction
16 lines
629 B
Mcfunction
|
# 调用者:advancements/fz:~
|
|||
|
|
|||
|
## 详细
|
|||
|
execute if score fz.logger.level fz.variable.integer matches ..400 run tellraw @a [{"nbt": "fz.level.fine", "interpret": true, "storage": "fz:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "使用了工具"}]
|
|||
|
|
|||
|
## 运行事件
|
|||
|
function #fz:event/player/on_used_tool
|
|||
|
|
|||
|
## 判断并触发挖掘事件
|
|||
|
execute unless score @s fz.event.used_tool.offset matches ..-1 run function fz:event/player/on_broke_block
|
|||
|
|
|||
|
## 重置事件计分板
|
|||
|
function #fz:event/player/on_used_tool/reset_used_tool
|
|||
|
|
|||
|
## 重置事件进度
|
|||
|
advancement revoke @s only fz:event/on_used_tool
|