2022-07-07 07:39:01 +08:00
|
|
|
|
# 调用者:advancements/fz:~
|
|
|
|
|
|
|
|
|
|
## 调试
|
|
|
|
|
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": "死亡"}]
|
|
|
|
|
|
|
|
|
|
## 将事件数据缓存,并重置事件计分板
|
|
|
|
|
# scoreboard players operation fz.var.score fz.variable.integer = @s fz.event.death_count
|
|
|
|
|
scoreboard players set @s fz.event.death_count 0
|
|
|
|
|
|
|
|
|
|
## 运行事件
|
2022-07-08 09:18:06 +08:00
|
|
|
|
function #fz:game_event/player/on_dead
|
2022-07-07 07:39:01 +08:00
|
|
|
|
|
|
|
|
|
## 重置事件进度
|
2022-07-08 09:18:06 +08:00
|
|
|
|
advancement revoke @s only fz:game_event/on_dead
|