#execute if score @s timer matches 40 run data modify entity @s CustomName.color set value "#ff0000"
execute if score @s timer matches 39 run data modify entity @s CustomName.color set value "#FF1919"
execute if score @s timer matches 38 run data modify entity @s CustomName.color set value "#FF3232"
execute if score @s timer matches 37 run data modify entity @s CustomName.color set value "#FF4B4B"
execute if score @s timer matches 36 run data modify entity @s CustomName.color set value "#FF6464"
execute if score @s timer matches 35 run data modify entity @s CustomName.color set value "#FF7D7D"
execute if score @s timer matches 34 run data modify entity @s CustomName.color set value "#FF9696"
execute if score @s timer matches 33 run data modify entity @s CustomName.color set value "#FFAFAF"
execute if score @s timer matches 32 run data modify entity @s CustomName.color set value "#FFC8C8"
execute if score @s timer matches 31 run data modify entity @s CustomName.color set value "#FFE1E1"
execute if score @s timer matches 30 run data modify entity @s CustomName.color set value "#FFFFFF"

execute if score @s timer matches 1 run function survivalplus:tools/trap/dummy/dmgreset