execute at @e[type=zombie,tag=zombie2vill] run function survivalplus:mobs/zombmerchant
execute as @e[tag=zombie2vill,type=zombie] run kill @s
execute at @e[tag=spawnmerchant,type=zombie_villager] run summon minecraft:villager ~ ~ ~ {VillagerData:{type:plains,profession:nitwit,level:99},Offers:{Recipes:[{maxUses:3,buy:{id:dirt},sell:{id:bread,components:{on_consume_effects:[{type:apply_effects,effects:[{id:hunger,duration:600}]}],item_name:{"text":"Moldy Bread","italic":false},count:2}}},{maxUses:2,buy:{id:cobblestone,count:3},sell:{id:campfire}},{buy:{id:coal},sell:{id:beef,count:2}},{buy:{id:oak_sapling},sell:{id:apple,count:2}},{maxUses:20,buy:{id:wheat_seeds,count:3},sell:{id:podzol}},{buy:{id:flint,count:2},sell:{id:oak_log}},{buy:{id:wheat},sell:{id:potato}},{buy:{id:wheat},sell:{id:carrot}},{buy:{id:wheat,count:3},sell:{id:mutton,count:3}},{buy:{id:bone},sell:{id:white_wool,count:3}},{maxUses:0,buy:{id:splash_potion,components:{potion_contents:{potion:"weakness"}}},buyB:{id:golden_apple},sell:{id:skull_banner_pattern,components:{item_name:{"text":"Dead Man's Wish","italic":false,"color":"white"}}}}]},CustomName:{"text":"Zombie Merchant"},Invulnerable:1b,NoAI:1b,Silent:1b,Tags:[merchant,plussed,zombmerchant,zombmerc],Team:merchant,active_effects:[{id:invisibility,duration:-1,show_particles:0b}],equipment:{mainhand:{id:bundle},offhand:{id:glowstone}},drop_chances:{mainhand:0f,offhand:0f}}
execute as @e[tag=spawnmerchant,type=zombie_villager] run tag @s remove spawnmerchant