execute if entity @s[tag=!purity_feather_holder] run scoreboard players set @s feather_purity 0

execute if entity @s[scores={feather_purity=0}] run tag @s add purity_feather_holder
execute if entity @s[scores={feather_purity=0}] run attribute @s movement_speed modifier add feather_of_purity_movement_speed 0.05 add_value
execute if entity @s[scores={feather_purity=0}] at @s run particle white_ash ~ ~1 ~ 0.4 0.5 0.4 0 20
execute if entity @s[scores={feather_purity=1..}] run attribute @s movement_speed modifier remove feather_of_purity_movement_speed
execute if score @s feather_purity matches 1.. run scoreboard players remove @s feather_purity 60
execute if score @s feather_purity matches ..-1 run scoreboard players set @s feather_purity 0
schedule function kiwi3:relics/feather_of_purity/feather_of_purity_remove_modifier 100t replace