添加分数恢复脚本

This commit is contained in:
延皓
2022-07-26 07:57:04 +08:00
parent 5520832d55
commit 3ce37c9abf
29 changed files with 331 additions and 129 deletions
@@ -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
@@ -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