tag @s[scores={svm_ep.p.harpie_movement=1}] add has


effect clear @s[tag=has] minecraft:jump_boost
execute at @s[tag=has] run playsound minecraft:item.armor.equip_elytra master @a[distance=..20] ~ ~ ~ 2 0
execute at @s[tag=!has] run playsound minecraft:item.armor.equip_elytra master @a[distance=..20] ~ ~ ~ 2 0.7
execute unless entity @s[nbt={Inventory:[{Slot:102b}]}] run item replace entity @s armor.chest with minecraft:elytra[custom_data={svm_ep.harpie_wings:1b}]

scoreboard players set @s[tag=!has] svm_ep.p.harpie_movement 1
scoreboard players set @s[tag=has] svm_ep.p.harpie_movement 0
tag @s remove has