execute as @e[tag=trinket] at @s if entity @e[tag=zombmerchant,type=villager,distance=..1] on origin run advancement grant @s only survivalplus:adventure/merchant/trinkettrade
execute at @e[type=item,tag=bloodbonetrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!bloodbonetrinket] run function survivalplus:merchants/trinketrades/bloodbonetrinket
execute at @e[type=item,tag=cointrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!cointrinket] run function survivalplus:merchants/trinketrades/cointrinket
execute at @e[type=item,tag=creepertrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!creepertrinket] run function survivalplus:merchants/trinketrades/creepertrinket
execute at @e[type=item,tag=cspidertrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!cspidertrinket] run function survivalplus:merchants/trinketrades/cspidertrinket
execute at @e[type=item,tag=foottrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!foottrinket] run function survivalplus:merchants/trinketrades/foottrinket
execute at @e[type=item,tag=husktrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!husktrinket] run function survivalplus:merchants/trinketrades/husktrinket
execute at @e[type=item,tag=icegemtrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!icegemtrinket] run function survivalplus:merchants/trinketrades/icegemtrinket
execute at @e[type=item,tag=igolemtrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!igolemtrinket] run function survivalplus:merchants/trinketrades/igolemtrinket
execute at @e[type=item,tag=meteortrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!meteortrinket] run function survivalplus:merchants/trinketrades/meteortrinket
execute at @e[type=item,tag=pigmantrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!pigmantrinket] run function survivalplus:merchants/trinketrades/pigmantrinket
execute at @e[type=item,tag=slimetrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!slimetrinket] run function survivalplus:merchants/trinketrades/slimetrinket
execute at @e[type=item,tag=watertrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!watertrinket] run function survivalplus:merchants/trinketrades/watertrinket
execute at @e[type=item,tag=wskeltrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!wskeltrinket] run function survivalplus:merchants/trinketrades/wskeltrinket
execute at @e[type=item,tag=wstonetrinket] as @e[type=villager,distance=..1,tag=zombmerchant,tag=!wstonetrinket] run function survivalplus:merchants/trinketrades/wstonetrinket