Skip to main content

JEI Integration

Sub-types

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

Hide Items & Fluids

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

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

Add Items & Fluids

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

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

Add Information

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