#Can a recipe whitelist be made?

26 messages · Page 1 of 1 (latest)

north karma
#

I would like to remove all recipes from a large complicated mod with the exception of a couple items. Is it possible to make a whitelist of allowed recipes rather than going through and manually disabling almost every recipe?

timid latchBOT
#

Once your question has been answered, please close this post with </resolve:1050379261372006400> command!

static oracle
#

??filter_logic

undone oarBOT
# static oracle ??filter_logic

Recipe filters can combine other filers in different ways to enable not, and and or logic.

  • {not: {a: b}} // not filter, invert logic
  • {a: b, c: d} // and filter, both must match
  • [{a: b}, {c: d}] // or filter, either must match

Examples are:
Removes every recipe from the mod with the id MOD that has an output of the item minecraft:beacon.

event.remove({mod: "MOD", output: "minecraft:beacon"})

Removes every recipe except the ones from the mod with the id MODID.

event.remove({not: {mod: "MODID"}})

These logic components can also be combined:

event.remove({output: 'modID:itemID', not: { id: 'some:id'}})
north karma
static oracle
timid latchBOT
#

Ticket closed!

north karma
# static oracle ??filter_logic

Is it possible to use that logic when hiding things in JEI? I've tried this but it isn't working:


    'immersiveengineering:ore_aluminum',
    'immersiveengineering:deepslate_ore_aluminum',
    'immersiveengineering:ore_lead',
    'immersiveengineering:deepslate_ore_lead',
    'immersiveengineering:ore_silver',
    'immersiveengineering:deepslate_ore_silver',
    'immersiveengineering:ore_nickel',
    'immersiveengineering:deepslate_ore_nickel'
    
]}})```
static oracle
#

i dont think you can use a list there badaThink

#

but you can try this

#
event.hide({
  mod: 'immersiveengineering', not: {
    id: /^immersiveengineering:(deepslate_)*ore_(aluminum|lead|silver|nickel)/
  }
})
north karma
static oracle
#

oh wait i actually fucked it up

#

i modified it

#

but now that i think of it

#

why do you wanna hide everything from IE except a couple ores?

north karma
static oracle
#

why not just get a mod that adds those ores

#

or add the ores yourself with kjs hmmm

north karma
#

I'm going to be using more of IE's content later, I'm just disabling it all for now until I get to that point in the pack's progression.

#

I mostly just used that list as an example for the question.

static oracle
#

ah

north karma
# static oracle i modified it

The modified version didn't do anything either. Someone in the other thread I posted mentioned using "Ingredient.of". Any idea how I'd do that?

static oracle
#

hm can you link me to it

undone oarBOT
#

[Quote ➤](#1054204283056304138 message) You can use Ingredient.of irrc

static oracle
#

should probably move this there then