execute if score wither death matches 1 as @n[tag=hmmerchant,tag=!sellrerare,type=villager] run data remove entity @s Offers.Recipes[{buy:{id:"minecraft:wither_skeleton_skull",components:{"minecraft:custom_data":{del:"tag"}}}}]
execute if score wither death matches 1 as @n[tag=hmmerchant,tag=!sellrerare,type=villager] at @s run function survivalplus:merchants/reraretrade
execute if score warden death matches 1 as @n[tag=hmmerchant,tag=!sellgravecomp,type=villager] run data remove entity @s Offers.Recipes[{buy:{id:"minecraft:sculk_catalyst",components:{"minecraft:custom_data":{del:"tag"}}}}]
execute if score warden death matches 1 as @n[tag=hmmerchant,tag=!sellgravecomp,type=villager] at @s run function survivalplus:merchants/gravecompasstrade
advancement revoke @s only survivalplus:tools/interactmechanic