$summon piglin ~ ~ ~ {CustomName:{translate:"vb.custom_mob.piglin_shroomist"},Tags:["vb.custom_mob.piglin_shroomist","vb.custom_mob","vb.loaded","vb.new_summon"],DeathLootTable:"vb:entities/piglin_shroomist",IsBaby:0,drop_chances:{head:0f,chest:0f},equipment:{mainhand:{id:"minecraft:crossbow",components:{"minecraft:custom_model_data":{flags:[0b]},"minecraft:enchantments":{$(enchants)}}},chest:{id:"minecraft:golden_chestplate",components:{"minecraft:custom_model_data":{flags:[0b]},"minecraft:equippable":{"slot":"chest","asset_id":"vb:custom_mob/piglin_shroomist"}}},head:{id:"minecraft:golden_helmet",components:{"minecraft:custom_model_data":{flags:[0b]},"!minecraft:equippable":{},"minecraft:item_model":"vb:custom_mob/piglin_shroomist_head_$(band)"}}}}

team join vb.no_nametag @n[tag=vb.new_summon]

tag @n[tag=vb.new_summon] remove vb.new_summon