Skip to content

Ingredient Sidebar (Just Enough Items)

Description

Modify what ingredients show up in the search menu sidebar.

Note

Hidden ingredients will still take up load time, and recipes to create them can still be done. This only prevents seeing the ingredients in JEI.

Identifier

Refer to this via any of the following:

groovy
mods.hei.ingredient
mods.hei.Ingredient
mods.hei.sidebar
mods.hei.Sidebar
mods.jei.ingredient/* Used as page default */
mods.jei.Ingredient
mods.jei.sidebar
mods.jei.Sidebar

Adding Entries

  • Adds the given ingredient with its given NBT data to JEI:

    groovy
    mods.jei.ingredient.add(IIngredient)
  • Adds the given ingredient with its given NBT data to JEI:

    groovy
    mods.jei.ingredient.add(IIngredient...)
  • Adds the given ingredient with its given NBT data to JEI:

    groovy
    mods.jei.ingredient.add(IIngredientType<?>, Collection<Object>)
  • Adds the given ingredient with its given NBT data to JEI:

    groovy
    mods.jei.ingredient.add(IIngredientType<?>, Object...)
  • Adds the given ingredient with its given NBT data to JEI:

    groovy
    mods.jei.ingredient.add(Iterable<IIngredient>)
Example
groovy
mods.jei.ingredient.add(item('minecraft:stone:1').withNbt([display:[Name:'Special Granite']]))
mods.jei.ingredient.add(VanillaTypes.ITEM, item('minecraft:bed').withNbt([display:[Name:'Beds come in 16 different colors!']]))

Removing Entries

  • Hides the ingredient from JEI:

    groovy
    mods.jei.ingredient.hide(IIngredient)
  • Hides the ingredient from JEI:

    groovy
    mods.jei.ingredient.hide(IIngredient...)
  • Hides the ingredient from JEI:

    groovy
    mods.jei.ingredient.hide(IIngredientType<?>, Collection<Object>)
  • Hides the ingredient from JEI:

    groovy
    mods.jei.ingredient.hide(IIngredientType<?>, Object...)
  • Hides the ingredient from JEI:

    groovy
    mods.jei.ingredient.hide(Iterable<IIngredient>)
  • Hides all ingredients of the given type:

    groovy
    mods.jei.ingredient.hideByType(IIngredientType<?>)
  • Removes the vanilla crafting recipe for the given ItemStack and hides the item from JEI:

    groovy
    mods.jei.ingredient.removeAndHide(IIngredient)
  • Removes the vanilla crafting recipe for the given ItemStack and hides the item from JEI:

    groovy
    mods.jei.ingredient.removeAndHide(IIngredient...)
  • Removes the vanilla crafting recipe for the given ItemStack and hides the item from JEI:

    groovy
    mods.jei.ingredient.removeAndHide(Iterable<IIngredient>)
  • Alias for removeAndHide:

    groovy
    mods.jei.ingredient.yeet(IIngredient)
  • Alias for removeAndHide:

    groovy
    mods.jei.ingredient.yeet(IIngredient...)
  • Alias for removeAndHide:

    groovy
    mods.jei.ingredient.yeet(Iterable<IIngredient>)
  • Hides all ingredients of all types from the sidebar. Functionally disables JEI:

    groovy
    mods.jei.ingredient.hideAll()
Example
groovy
mods.jei.ingredient.hide(fluid('water'))
mods.jei.ingredient.hide(item('minecraft:stone:1'), item('minecraft:stone:3'))
mods.jei.ingredient.hide(VanillaTypes.ITEM, item('minecraft:bed:*'))
mods.jei.ingredient.hide(mekanism.client.jei.MekanismJEI.TYPE_GAS, gas('tritium'))
mods.jei.ingredient.hideByType(com.buuz135.thaumicjei.ThaumcraftJEIPlugin.ASPECT_LIST)
mods.jei.ingredient.hideByType(mekanism.client.jei.MekanismJEI.TYPE_GAS)
mods.jei.ingredient.hideByType(VanillaTypes.ITEM)
mods.jei.ingredient.hideByType(VanillaTypes.ENCHANT)
mods.jei.ingredient.hideByType(VanillaTypes.FLUID)
mods.jei.ingredient.hideAll()

Contributors

© 2024 CleanroomMC. All Rights Reserved.

Layout Switch

Adjust the layout style of VitePress to adapt to different reading needs and screens.

Expand all
The sidebar and content area occupy the entire width of the screen.
Expand sidebar with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Expand all with adjustable values
Expand sidebar width and add a new slider for user to choose and customize their desired width of the maximum width of sidebar can go, but the content area width will remain the same.
Original width
The original layout width of VitePress

Page Layout Max Width

Adjust the exact value of the page width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the page layout
A ranged slider for user to choose and customize their desired width of the maximum width of the page layout can go.

Content Layout Max Width

Adjust the exact value of the document content width of VitePress layout to adapt to different reading needs and screens.

Adjust the maximum width of the content layout
A ranged slider for user to choose and customize their desired width of the maximum width of the content layout can go.

Spotlight

Highlight the line where the mouse is currently hovering in the content to optimize for users who may have reading and focusing difficulties.

ONOn
Turn on Spotlight.
OFFOff
Turn off Spotlight.

Spotlight Styles

Adjust the styles of Spotlight.

Under
Add a solid background color underneath the hovering element to highlight where the cursor is currently hovering.
Aside
Add a fixed line with solid color aside the hovering element to highlight where the cursor is currently hovering.