fz-survival-datapack/data/fzsd/functions/game_event/advancement/on_took_damage.mcfunction

7 lines
285 B
Mcfunction
Raw Normal View History

# 调用者advancements/fzsd:~
execute if predicate fzsd:is_real_player run function fzsd:game_event/player/on_took_damage
## 重置事件
scoreboard players operation @s fzsd.event.damage_taken %= 10 fzsd.variable.integer
advancement revoke @s only fzsd:game_event/on_took_damage