LootJS.modifiers((event) => {
    // 1. REGULAR AMMO (15% Chance, 5-15 count) - ammodefault REMOVED
    const regular = [
        "pointblank:ammo9mm", "pointblank:ammo45acp", "pointblank:ammo46", 
        "pointblank:ammo357", "pointblank:ammo57", "pointblank:ammo545", 
        "pointblank:ammo556", "pointblank:ammo68", "pointblank:ammo762", 
        "pointblank:ammo762x51", "pointblank:ammo12gauge"
    ];

    // 2. HEAVY AMMO (8% Chance, 1-5 count)
    const heavy = [
        "pointblank:ammo50ae", "pointblank:ammo338lapua", 
        "pointblank:ammo50bmg", "pointblank:ammolasercharge"
    ];

    // 3. EXPLOSIVES (5% Chance, 1-2 count)
    const explosives = [
        "pointblank:grenade", "pointblank:grenade40mm", "pointblank:grenade20mm", 
        "pointblank:smaw_rocket", "pointblank:at4_rocket", "pointblank:javelin_rocket"
    ];

    const sporeChests = event.addTableModifier("spore:chests/equipment_chest");

    // Apply Regular
    regular.forEach(id => {
        sporeChests.addLoot(LootEntry.of(id).limitCount(5, 15).when((c) => c.randomChance(0.15)));
    });

    // Apply Heavy
    heavy.forEach(id => {
        sporeChests.addLoot(LootEntry.of(id).limitCount(1, 5).when((c) => c.randomChance(0.08)));
    });

    // Apply Explosives
    explosives.forEach(id => {
        sporeChests.addLoot(LootEntry.of(id).limitCount(1, 2).when((c) => c.randomChance(0.05)));
    });
});
