give @p minecraft:piglin_spawn_egg[
    minecraft:custom_name={
        text:"Grand Crossbowman Spawn Egg",
        italic:false
    },
    minecraft:entity_data={
        id:"minecraft:piglin",
        CustomName:{
            text:"",
            italic:false
        },
        CustomNameVisible:false,
        Health:25,
        attributes:[
            {id:"minecraft:attack_damage", base:5},
            {id:"minecraft:max_health", base:25},
            {id:"minecraft:movement_speed", base:0.3}
        ],
        equipment:{
            mainhand:{
                id:"minecraft:crossbow"
            },
            legs:{
                id:"minecraft:netherite_leggings",
                components:{
                    "minecraft:trim":{
                        material:"minecraft:gold",
                        pattern:"minecraft:snout"
                    }
                }
            }
        },
        drop_chances:{
            mainhand:0,
            legs:0
        },
        DeathLootTable:"an:entities/grand_bastion/crossbowman",
        CanPickUpLoot:true,
        PersistenceRequired:true,
        IsImmuneToZombification:true,
        CannotHunt:true
    }
]