summon zombie_villager ~ ~ ~ {VillagerData:{type:tundra,profession:cartographer,level:99},IsBaby:0b,CanPickUpLoot:0b,Tags:[merchant_face,rare,plussed,spawnmerchant,starmerchant,starmerc,addtrades],equipment:{mainhand:{id:brush},head:{id:iron_helmet,components:{unbreakable:{}}}},drop_chances:{mainhand:0f,head:0f},DeathLootTable:"survivalplus:entities/merchant"}
execute as @n[tag=starmerchant,type=zombie_villager,tag=addtrades] run function survivalplus:merchants/starmerchanttrades
#execute at @n[tag=spawnmerchant] run summon villager ~ ~ ~ {VillagerData:{type:plains,profession:nitwit,level:99},Offers:{},Invulnerable:1b,NoAI:1b,Silent:1b,Tags:[merchant,plussed,starmerchant,starmerc],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=starmerc,type=villager] run function survivalplus:merchants/zstarmerchanttrades
tag @e[tag=spawnmerchant] remove spawnmerchant
function survivalplus:mobs/vanish