// priority: 100
ServerEvents.highPriorityData(event => {
    const undergardenBoss = (id, gearSet) => {
        let boss = bossMaterialBuilder(event, id, "undergarden")
            .setWeight(75).setQuality(2).setSize(1, 1)
            .addValidGearSet(gearSet).addDimension("undergarden:undergarden")
            .setMinRarity("rare").setMaxRarity("mythic");
        boss.forRarity("rare")
            .setEnchantChance(0.5)
            .setEnchantmentLevels([16, 16, 2, 2])
            .addEffect("minecraft:fire_resistance", 1.0)
            .addAttributeRange("minecraft:generic.max_health", "MULTIPLY_TOTAL", 0.1,
                10, 0.015)
            .addAttributeRange("minecraft:generic.attack_damage", "ADDITION", 1,
                10, 0.75)
            .addAttributeRange("minecraft:generic.movement_speed", "MULTIPLY_TOTAL", 0.15,
                10, 0.01)
            .addAttribute("minecraft:generic.knockback_resistance", "ADDITION", 0.85);
        boss.forRarity("epic")
            .setEnchantChance(0.7)
            .setEnchantmentLevels([24, 24, 2, 2])
            .addEffect("minecraft:fire_resistance", 1.0)
            .addAttributeRange("minecraft:generic.max_health", "MULTIPLY_TOTAL", 0.2,
                10, 0.015)
            .addAttributeRange("minecraft:generic.attack_damage", "ADDITION", 2,
                10, 0.75)
            .addAttributeRange("minecraft:generic.movement_speed", "MULTIPLY_TOTAL", 0.2,
                10, 0.015)
            .addAttribute("minecraft:generic.knockback_resistance", "ADDITION", 0.9);
        boss.forRarity("mythic")
            .setEnchantChance(0.7)
            .setEnchantmentLevels([32, 32, 8, 8])
            .addEffect("minecraft:fire_resistance", 1.0)
            .addAttributeRange("minecraft:generic.max_health", "MULTIPLY_TOTAL", 0.2,
                10, 0.02)
            .addAttributeRange("minecraft:generic.attack_damage", "ADDITION", 2,
                10, 0.75)
            .addAttributeRange("minecraft:generic.movement_speed", "MULTIPLY_TOTAL", 0.2,
                10, 0.02)
            .addAttribute("minecraft:generic.knockback_resistance", "ADDITION", 0.95);
        boss.build();
    };

    undergardenBoss("nuclearcraft:feral_ghoul", "#nuclear");

    undergardenBoss("undergarden:rotbeast", "#the_nether");
    undergardenBoss("undergarden:rotling", "#the_nether");
    undergardenBoss("undergarden:rotwalker", "#the_nether");
    undergardenBoss("undergarden:forgotten", "#the_nether");
    // undergardenBoss("undergarden:minion", "#the_nether");
    undergardenBoss("undergarden:sploogie", "#the_nether");
    undergardenBoss("undergarden:nargoyle", "#the_nether");
    undergardenBoss("undergarden:muncher", "#the_nether");

})