LootJS.modifiers((event) => {

    // --- TABLE 1 : NET_JUNK (Déchets et ressources) ---
    event.addLootTableModifier("simplefishnets:fishing/net_junk")
        // Supprime tout le contenu actuel de la table
        .removeLoot(Ingredient.all)
        // Ajoute tes items avec des poids spécifiques
        .addWeightedLoot([
            LootEntry.of("minecraft:dirt").withWeight(20),
            LootEntry.of("minecraft:oak_planks").withWeight(15),
            LootEntry.of("minecraft:iron_nugget").withWeight(10),
            LootEntry.of("minecraft:gold_nugget").withWeight(5),
            LootEntry.of("minecraft:bone").withWeight(10),
            LootEntry.of("minecraft:bone_meal").withWeight(15),
            LootEntry.of("minecraft:egg").withWeight(10),
            LootEntry.of("minecraft:ink_sac").withWeight(10),
            LootEntry.of("quark:egg_parrot_red_blue").withWeight(2),
            LootEntry.of("quark:egg_parrot_green").withWeight(2),
            LootEntry.of("galosphere:silver_nugget").withWeight(5),
            LootEntry.of("minecraft:scute").withWeight(3)
        ]);

    // --- TABLE 2 : NET_VANILLA_FISH (Poissons moddés) ---
    event.addLootTableModifier("simplefishnets:fishing/net_vanilla_fish")
        // Supprime tous les poissons d'origine
        .removeLoot(Ingredient.all)
        // Ajoute les poissons de tes captures d'écran
        .addWeightedLoot([
            LootEntry.of(Item.of("fishofthieves:battlegill", '{battlegill_variant: "fishofthieves:jade"}')).withWeight(5),
            LootEntry.of(Item.of("fishofthieves:wrecker", '{wrecker_variant: "fishofthieves:rose"}')).withWeight(5),
            LootEntry.of(Item.of("fishofthieves:stormfish", '{stormfish_variant: "fishofthieves:ancient"}')).withWeight(5),
            LootEntry.of(Item.of("fishofthieves:devilfish", '{devilfish_variant: "fishofthieves:ashen"}')).withWeight(5),
            LootEntry.of(Item.of("fishofthieves:splashtail", '{splashtail_variant: "fishofthieves:ruby"}')).withWeight(5),
            LootEntry.of(Item.of("fishofthieves:pondie", '{pondie_variant: "fishofthieves:charcoal"}')).withWeight(5),
            LootEntry.of("aquaculture:red_shrooma").withWeight(10),
            LootEntry.of("aquaculture:red_grouper").withWeight(10),
            LootEntry.of("aquaculture:perch").withWeight(10),
            LootEntry.of("aquaculture:leech").withWeight(15),
            LootEntry.of("aquamirae:spinefish").withWeight(10),
            LootEntry.of("fishofthieves:grubs").withWeight(15),
            LootEntry.of("fishofthieves:leeches").withWeight(15),
            LootEntry.of("fishofthieves:ancientscale").withWeight(5)
        ]);
});