添加分数恢复脚本

This commit is contained in:
延皓 committed 2022-07-26 07:57:04 +08:00
1 parent 5520832d55
commit 3ce37c9abf
29 files changed
+331 -129

No files matched your search

@@ -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