Skip to main content

JEI Integration

Sub-types

events.listen(onEvent('jei.subtypes', functionevent (event)=> {
  event.useNBT('example:item')
  event.userNBTKey('example:item', 'type')
})

Hide Items & Fluids

events.listen(onEvent('jei.hide.items', functionevent (event)=> {
  event.hide('example:ingredient')
})

events.listen(onEvent('jei.hide.fluids', functionevent (event)=> {
  event.hide('example:fluid')
})

Add Items & Fluids

events.listen(onEvent('jei.add.items', functionevent (event)=> {
  event.add(item.of('example:item').nbt(, {test: 123}))
})

events.listen(onEvent('jei.add.fluids', functionevent (event)=> {
  event.add('example:fluid')
})

Add Information

events.listen(onEvent('jei.information', functionevent (event)=> {
  event.add('example:ingredient', ['Line 1', 'Line 2'])
})