#RecipeViewerEvents help

10 messages · Page 1 of 1 (latest)

signal elbow
#

I'm currently trying to change the way some items show up in jei, and i'm struggling with the creative inventory side of things. How can I make it so that custom items I added with kubejs don't show up in the creative inventory, and how do I make certain normally hidden items that aren't in the creative inventory show up in the creative inventory?

currently I've got

RecipeViewerEvents.addEntries('item', event => {
    event.add('garnished:sepia_fungus_colony')
})

RecipeViewerEvents.removeEntriesCompletely('item', event => {
    event.remove('kubejs:incomplete_gun_table')
    event.remove('kubejs:incomplete_ammo_part')
    event.remove('kubejs:incomplete_40mm')
    event.remove('kubejs:incomplete_rpg_rocket')
})

but it only works in jei.

timid perchBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

signal elbow
#

also how can I edit what blocks another existing block can be placed on? I want to make the block garnished:sepia_fungus be able to be placed on the block farmersdelight:rich_soil

wet relic
#

there is a startup event called modifyCreativeTab that you can add or remove items from

signal elbow
#

how do I use modifyCreativeTab?

wet relic
#

select the 1.21 version btw

signal elbow
wet relic
#

yeah all the usecases are in tutorials