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