I am wanting to remove some specific potions from my modpack for balancing reasons. I tried to do it myself but it seems like it won't work for potions specifically. Any help would be greatly appreciated.
Here is the code I typed up for one:
ServerEvents.recipes(event => {
[
'minecraft:minecraft.potion.levitation.effect.minecraft.levitation..Duration..2400.to.minecraft.potion.flying.effect.attributeslib.flying..Duration..9600'
].forEach((recipeID) => event.remove({id: recipeID}));
})
Also attached is the recipe ID in a screenshot for an example.