item modify entity @p[dz=2,dx=2,predicate=survivalplus:curse_equipped,nbt=!{equipment:{head:{components:{"minecraft:custom_data":{cursehelm:tag}}}}}] armor.head survivalplus:remove_curse
item modify entity @p[dz=2,dx=2,predicate=survivalplus:curse_equipped] armor.chest survivalplus:remove_curse
item modify entity @p[dz=2,dx=2,predicate=survivalplus:curse_equipped] armor.legs survivalplus:remove_curse
item modify entity @p[dz=2,dx=2,predicate=survivalplus:curse_equipped] armor.feet survivalplus:remove_curse