#Can I remove brewing recipes by output?

10 messages · Page 1 of 1 (latest)

quasi heath
#

I have MoreJS but I only see an option to remove them by input. I'm having an issue where something in my modpack adds a TON of recipes for Mundane Potions (like basically all other brewing ingredients), and I want to remove them. I tried removing it normally but it doesn't seem to have worked.

Here's the script I tried.

ServerEvents.recipes(event => {
    // All Recipe Removal
    let toRemove = [
      {many other things here},
      {output: Item.of('minecraft:potion', '{Potion:"minecraft:mundane"}')}
    ];
    
      for (const remove of toRemove) {
        event.remove(remove);
    }
})
light daggerBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

dry stagBOT
#

MoreJS is a KubeJS addon with additional events for villager/wanderer trades, structures, the enchantment table, potion brewing and more.

lunar forum
#
    /**
     * Removes all potions where an awkward potion is used as theb base potion ingredient.
     * 1. Argument: The input potion id to filter.
     * 2. Argument: The ingredient to filter.
     * 3. Argument: The result potion id to filter.
     * Passing `null` counts as a wildcard.
     */
    event.removeByPotion("minecraft:awkward", null, null);
#

3. Argument: The result potion id to filter.

quasi heath
lunar forum
#

yes

#

??tryitandsee

dry stagBOT
quasi heath
#

perfect, this works! thank you for your help