StartupEvents.registry("minecraft:item", e => {

    const materialStats = {
        wooden: {
            tier: "wood",
            durability: 120,
            one_handed_damage: 0,
            two_handed_damage: 0,
            one_handed_speed: -2.8,
            two_handed_speed: -2.4
        },
        stone: {
            tier: "stone",
            durability: 250,
            one_handed_damage: 1,
            two_handed_damage: 1,
            one_handed_speed: -2.8,
            two_handed_speed: -2.4
        },
        copper: {
            tier: "iron",
            durability: 300,
            one_handed_damage: 1,
            two_handed_damage: 1,
            one_handed_speed: -2.8,
            two_handed_speed: -2.4
        },
        iron: {
            tier: "iron",
            durability: 500,
            one_handed_damage: 2,
            two_handed_damage: 2,
            one_handed_speed: -2.8,
            two_handed_speed: -2.4
        },
        golden: {
            tier: "gold",
            durability: 80,
            one_handed_damage: 0,
            two_handed_damage: 0,
            one_handed_speed: -2.6,
            two_handed_speed: -2.2
        },
        steel: {
            tier: "iron",
            durability: 650,
            one_handed_damage: 3,
            two_handed_damage: 3,
            one_handed_speed: -2.8,
            two_handed_speed: -2.4
        },
        diamond: {
            tier: "diamond",
            durability: 1500,
            one_handed_damage: 3,
            two_handed_damage: 3,
            one_handed_speed: -2.8,
            two_handed_speed: -2.4
        },
        netherite: {
            tier: "netherite",
            durability: 2000,
            one_handed_damage: 4,
            two_handed_damage: 4,
            one_handed_speed: -2.8,
            two_handed_speed: -2.4
        }
    }

    const FantasiaSwords = [
        "wooden_sword",
        "stone_sword",
        "copper_sword",
        "iron_sword",
        "steel_sword",
        "golden_sword",
        "diamond_sword",
        "netherite_sword"
    ]

    return
    global.FantasiaStanceWeapons = global.FantasiaStanceWeapons.concat(
        FantasiaSwords
    )

    FantasiaSwords.forEach(name => {
        let material = name.replace("_sword", "")
        let config = materialStats[material]
        if (config) registerVanillaStanceWeapon(e, name, "sword", config)
    })
})