scoreboard players operation fz.var.score fz.variable.integer = @s fz.event.damage_taken function #fz:event/on_damage_taken scoreboard players set @s fz.event.damage_taken 0 advancement revoke @s only fz:event/on_damage_taken