#emi hiding items with kubejs

13 messages · Page 1 of 1 (latest)

small pivot
#

i tried 3 codes but neither work

REIEvents.hide('item', event => {

global.Remove_items.forEach(item => {
event.hide(item)
})

})

or this one

JEIEvents.hideItems(event => {

global.Remove_items.forEach(item => {
  event.hide(item)
})

})

ore this one

RecipeViewerEvents.removeEntriesCompletely('item', event => {

global.Remove_items.forEach(item => {
  event.remove(item)
})

})

mental leafBOT
#

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

small pivot
#

global.Remove_items.forEach this part is used to import a string from another script which i use in other places

#

and yes i tried a code like this but it also didnt work

REIEvents.hide('item', event => {
event.hide('ae2:charger')
})

prime nimbus
#

JEIEvents should be the correct option in 1.20 or below

#

I’ve definitely had it working with JEI + EMI, I doubt it would work with just EMI

small pivot
prime nimbus
#

That might work

#

Not sure since it doesn’t fully implement JEI

manic pier
#

Add this tag to the item c:hidden_from_recipe_viewers

torn ore
#
ServerEvents.tags(`item`, event => {
    event.add(`c:hidden_from_recipe_viewers`, "minecraft:stick")
})
small pivot
rancid impBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should create a new post for unrelated issues.