#Remove item completely

35 messages · Page 1 of 1 (latest)

sick moss
#

ik I can just remove all recipes for an item but is there a way too delete it from the game entirely from all recipes from JEI from everything?

wary meteorBOT
#

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

wide hedge
placid pasture
#

Remove recipes, loot tables, and hide from jei/rei

#

And use inventory changed event to remove the item if detected

hardy sorrel
#

??removingitems

frail brookBOT
# hardy sorrel ??removingitems

Want to remove whole items from the game? Well, you can't do that. Removing items directly from the registry is unsupported and would break mods. Your best option is to remove the item's Recipes and JEI/REI entry.
Click the buttons below to find out how.

lethal oyster
#

The links error xd

#

??__jei

frail brookBOT
# lethal oyster ??__jei

hide items and fluids

JEIEvents.hideItems(event => {
  event.hide('example:ingredient')
})

JEIEvents.hideFluids(event => {
  event.hide('example:fluid')
})

add items and fluids

JEIEvents.addItems(event => {
  event.add(Item.of('example:item', {test: 123}))
})

JEIEvents.addFluids(event => {
  event.add('example:fluid')
})

add information

JEIEvents.information(event => {
  event.addItem('example:ingredient', ['Line 1', 'Line 2'])
})

hide categories

JEIEvents.removeCategories(event => {
  console.log(event.categoryIds) //log a list of all category ids to logs/kubejs/client.txt
  event.remove('create:compacting')
})

subtypes

JEIEvents.subtypes(event => {
  event.useNBT('example:item')
  event.useNBTKey('example:item', 'type')
})

hide recipes

JEIEvents.removeRecipes(event => {
  event.remove('example:crafting_catagory', 'example:item_or_recipe')
})
placid pasture
#

the pages have moved hmmm

lethal oyster
#

Not moved, they have been removed

placid pasture
#

nope, moved

frail brookBOT
#

You can add and hide things in JEI/REI with KubeJS, and the wiki has a page on those!

lethal oyster
#

Or atleast how they we're for 1.19/1.20

placid pasture
#

that, maybe

hardy sorrel
#

I made the ??__jei and ??__rei and ??__rei_grouping macros because the pages still exist but they simply don't have the info

#

not using 1.21? fuck you

sick moss
#

Wait the hide thing kinda works

That just removes it from recipes and jei etc that works

sick moss
sick moss
hardy sorrel
#

I meant that the wiki only has 1.21 info

placid pasture
sick moss
#

so I could just shove it next too my other recipes

placid pasture
#

well its a lot of events that youre asking all at once lol

#

recipes and loot tables are server
jei/rei are client

sick moss
placid pasture
#

lol

sick moss
placid pasture
#

yes

sick moss
#

LES GO

#

TIME FOR MORE BRAIN ROT CODING

placid pasture
#

oh god