Wiki 9Minecraft Wiki 9Minecraft

Adding And Hiding Items %5Bminecraft 1.16.5 To 1.18.2%5D

Java EditionModFAQ 10Related mods 60
DownloadJust Enough Items Mod

Get the files on 9Minecraft

Note

Version note: This page covers adding and hiding item ingredients for Minecraft 1.16.5, 1.18.2, 1.19.2, and 1.20.1. Use the API Javadocs for exact class and method names on the version you target.

Other ingredient pages:

  • Minecraft 1.12.2: Adding Items, Hiding Ingredients, Item Subtypes, Non-Item Ingredients
  • Minecraft 1.21, 1.21.1, 1.21.11, 26.1.2, and 26.2: Ingredients and Visibility

Overview

JEI automatically adds items automatically from multiple sources, including:

  • Creative Tabs
  • The Item Registry
  • The Block Registry

Adding Items

  1. Make sure your item is registered properly. If you can't /give it to yourself, odds are it isn't registering!

  2. If a subtype of your item is missing, make sure it's in a creative tab. If it's still missing afterwards, JEI might think it's a duplicate of another item, you can register it during registerItemSubtypes.

Removing/Hiding Items

Assuming you already have a JEI plugin created, you can hide items by using IRecipeRegistration.getIngredientManager().removeIngredientsAtRuntime() during registerRecipes().