2022-07-07 07:39:01 +08:00
|
|
|
## 调试
|
|
|
|
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": "受到了伤害"}]
|
|
|
|
|
2022-07-25 13:34:40 +08:00
|
|
|
## 将事件数据缓存
|
2022-07-07 07:39:01 +08:00
|
|
|
scoreboard players operation fz.var.score fz.variable.integer = @s fz.event.damage_taken
|
2022-07-08 09:18:06 +08:00
|
|
|
scoreboard players operation fz.var.score fz.variable.integer /= 10 fz.variable.integer
|
2022-07-07 07:39:01 +08:00
|
|
|
|
|
|
|
## 运行事件
|
2022-07-25 13:34:40 +08:00
|
|
|
function #fz:game_event/player/on_took_damage
|