summon zombie_villager ~ ~ ~ {VillagerData:{type:plains,profession:cleric,level:99},IsBaby:0b,CanPickUpLoot:0b,Tags:[merchant_face,rare,plussed,spawnmerchant,zombmerchant,zombmerc,nopoly],equipment:{head:{id:iron_helmet,components:{unbreakable:{}}}},drop_chances:{head:0f},attributes:[{id:"attack_damage",base:0f}],DeathLootTable:"survivalplus:entities/merchant"}
execute as @n[tag=zombmerchant,type=zombie_villager] run function survivalplus:merchants/trinketmerchanttrades
#execute at @n[tag=spawnmerchant] run summon minecraft:villager ~ ~ ~ {isbaby:0b,CustomName:"Zombie Villager",VillagerData:{id:plains,profession:nitwit,level:99},Offers:{},Invulnerable:1b,NoAI:1b,Silent:1b,Tags:[merchant,plussed,zombmerchant,zombmerc,addtrades],Team:merchant,active_effects:[{id:invisibility,duration:-1,show_particles:0b}],equipment:{mainhand:{id:bundle},offhand:{id:glowstone}},drop_chances:{mainhand:0f,offhand:0f},DeathLootTable:""}
#execute as @e[tag=hmmerc,type=villager] run function survivalplus:merchants/zombiemerchanttrades
tag @e[tag=spawnmerchant] remove spawnmerchant
function survivalplus:mobs/vanish