JEI Integration

Sub-types

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

Hide Items & Fluids

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

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

Add Items & Fluids

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

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

Add Information

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

Revision #2
Created Fri, Aug 21, 2020 5:06 PM by LatvianModder
Updated Thu, Sep 3, 2020 1:04 PM by LatvianModder