LootJS.modifiers(event => {
    const forbidden = [
        // Vanilla Tiers
        "minecraft:chainmail_helmet", "minecraft:chainmail_chestplate", "minecraft:chainmail_leggings", "minecraft:chainmail_boots",
        "minecraft:iron_helmet", "minecraft:iron_chestplate", "minecraft:iron_leggings", "minecraft:iron_boots",
        "minecraft:golden_helmet", "minecraft:golden_chestplate", "minecraft:golden_leggings", "minecraft:golden_boots",
        "minecraft:diamond_helmet", "minecraft:diamond_chestplate", "minecraft:diamond_leggings", "minecraft:diamond_boots",
        "minecraft:netherite_helmet", "minecraft:netherite_chestplate", "minecraft:netherite_leggings", "minecraft:netherite_boots",

        // Soul Ingot Gear
        "soulsweapons:soul_ingot_helmet", "soulsweapons:soul_ingot_chestplate", "soulsweapons:soul_ingot_leggings", "soulsweapons:soul_ingot_boots",

        // Soul Robes Gear
        "soulsweapons:soul_robes_helmet", "soulsweapons:soul_robes_chestplate", "soulsweapons:soul_robes_leggings", "soulsweapons:soul_robes_boots",

        // Forlorn Gear
        "soulsweapons:forlorn_helmet", "soulsweapons:forlorn_chestplate", "soulsweapons:forlorn_leggings", "soulsweapons:forlorn_boots"
    ];

    // This part wraps your list to ensure it ignores enchantments/NBT
    const forbiddenItems = forbidden.map(id => Item.of(id).ignoreNBT());

    // This regex (/.*/) applies the rule to every single loot table (entities AND chests)
    event.addLootTableModifier(/.*/)
        .removeLoot(forbiddenItems);
});