LootJS.modifiers((event) => {
    /**
     * First loot entry with a condition. Will drop if the player has fortune.
     */
    const sticka = LootEntry.of("kubejs:aquamarine")
        .applyOreBonus("minecraft:fortune")
        .when((c) => c.matchMainHand(ItemFilter.hasEnchantment("minecraft:fortune")));

    /**
     * Second loot entry with a condition. Will drop if the player has silk touch and the first entry doesn't match.
     */
    const applea = LootEntry.of("kubejs:mana_sand").when((c) =>
        c.matchMainHand(ItemFilter.hasEnchantment("minecraft:silk_touch"))
    );

    /**
     * No conditions just an item, so this will always drop if the other two don't.
     */
    const irona = "kubejs:aquamarine";

    event
        .addBlockLootModifier("kubejs:mana_sand")
        .removeLoot(Ingredient.all)
        .addAlternativesLoot(sticka, applea, irona);
});