添加分数恢复脚本
This commit is contained in:
+1
-1
@@ -4,4 +4,4 @@
|
||||
execute if score fz.logger.level fz.variable.integer matches ..400 run tellraw @a [{"nbt": "fz.level.debug", "interpret": true, "storage": "fz:logger"}, {"text": "事件已触发:玩家"}, {"selector": "@s"}, {"text": "挖掘了方块"}]
|
||||
|
||||
## 运行事件
|
||||
function #fz:game_event/player/on_broke_block
|
||||
function #fz:game_event/player/on_broke_block_with_tool
|
||||
+1
-1
@@ -33,4 +33,4 @@ scoreboard players operation fz.var.score fz.variable.integer += @s fz.event.use
|
||||
scoreboard players operation fz.var.score fz.variable.integer += @s fz.event.used_tool.offset
|
||||
|
||||
## 判断分数
|
||||
execute unless score fz.var.score fz.variable.integer matches ..0 run function fz:game_event/player/on_broke_block
|
||||
execute unless score fz.var.score fz.variable.integer matches ..0 run function fz:game_event/player/on_broke_block_with_tool
|
||||
Reference in New Issue
Block a user