#Recipe Category JEI

10 messages · Page 1 of 1 (latest)

quick trout
#

Im trying to hide a recipe category in jei via JEIRuntime:

global.jeiRuntime.getRecipeManager().hideRecipeCategory()

does anyone know how to feed the method for example "immersiveengineering:sawmill"?

long veldtBOT
#

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

tawdry stone
#

So combining that together:

function hideRecipeCategory(recipeTypeID) {
    const {recipeManager} = global.jeiRuntime;
    const optionalRecipeType = recipeManager.getRecipeType(recipeTypeID);
    if (optionalRecipeType.isEmpty()) {
        console.error("Unable to hide recipe category that does note exist: " + recipeTypeID);
        return;
    }
    recipeManager.hideRecipeCategory(optionalRecipeType.get());
}

// IDK the category ids, but this is the syntax you could use.
hideRecipeCategory("minecraft:shapeless");
quick trout
#

awesome! works perfectly! THANKS!

quick trout
#

is there a way to hide the assembler in a similar fashion?

tawdry stone
#

I believe those are called catalysts, and yes there is a way to hide them iirc

quick trout
#

I have read, it hides the catalyst when i just hide the “item” in jei, just that this is a multiblock. No idea yet how to do that