execute if entity @s[scores={invisibility=2..}] run effect give @s invisibility 1 1 true
execute if entity @s[scores={invisibility=1}] run function main:settings/stats/iframes/tick_2
execute if entity @s[scores={invisibility=1..}] run function main:settings/stats/iframes/tick_3
execute if entity @s[team=!player] run team join player @a