Just Enough Items
KubeJS JEI Integration
For 1.21+, see RecipeViewerEvents!
#Hide Items & Fluids
JEIEvents.hideItems(event => {
event.hide('example:ingredient')
})
JEIEvents.hideFluids(event => {
event.hide('example:fluid')
})
#Add Items & Fluids
JEIEvents.addItems(event => {
event.add(Item.of('example:item', {test: 123}))
})
JEIEvents.addFluids(event => {
event.add('example:fluid')
})
#Add Information
JEIEvents.information(event => {
event.addItem('example:ingredient', ['Line 1', 'Line 2'])
})
#Hide Categories
JEIEvents.removeCategories(event => {
console.log(event.categoryIds) //log a list of all category ids to logs/kubejs/client.txt
event.remove('create:compacting')
})
#Sub-types
JEIEvents.subtypes(event => {
event.useNBT('example:item')
event.useNBTKey('example:item', 'type')
})
#Hide Recipes
JEIEvents.removeRecipes(event => {
event.remove('example:crafting_catagory', 'example:item_or_recipe')
})