#Help removing dyed backpacks from sophisticated backpacks

29 messages · Page 1 of 1 (latest)

quick shuttle
#

(Neoforge 1.21.1)
Even when using this it does not remove the recipes for creating dyed backpacks but correctly removes all other items. all dyed backpacks have the same item id but differ in nbt data, im not sure how to target them correctly to remove them. Thanks

ServerEvents.recipes((event) => {
  event.remove({ input: /sophisticatedbackpacks:.*/ });
  event.remove({ output: /sophisticatedbackpacks:.*/ });
});
lilac vaporBOT
#

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

silent coyote
#

are you sure you want to remove them from the game or just want to hide it from JEI?

quick shuttle
#

i'd like to remove the recipes preferably

simple mica
#

you need to remove them by ID since they use a special recipe type

silent coyote
#

use JEI to find the recipe id, and if not there you will need to check their jar/repository

quick shuttle
#

could i find the recipe id using EMI? or does it have to be JEI

#

is a recipe ID different from an item ID?

silent coyote
#

EMI might have it, and yes, recipe id is not always item id

quick shuttle
#

ah okay

#

how would i go about finding the recipe ID using JEI

silent coyote
#

hover the output with advanced tooltips turned on

#

should say Recipe Id: something

quick shuttle
#
ServerEvents.recipes((event) => {
  event.remove({ output: "sophisticatedbackpacks:single_color_purple" });
});
#

[ERROR] ! recipes.js#2: Error in 'ServerEvents.recipes': dev.latvian.mods.rhino.EvaluatorException: Unable to parse recipe output filter sophisticatedbackpacks:single_color_purple

#

am i still doing something wrong

simple mica
#

id, not output

#

though ive never seen that error before

quick shuttle
#

changed it to ID, error disappeared but the recipe still exists and is still craftable after /reload and re-joining world

#
ServerEvents.recipes((event) => {
  event.remove({ id: "sophisticatedbackpacks:single_color_purple" });
});
silent coyote
#

if those are dynamically generated you might have issues removing it

#

maybe check if the mod has an option to not generate coloured backpacks

quick shuttle
#

nothing in the config sadly

#

i guess my best option is to just hide them from jei

#

thank you both for your help, i appreciate it!

simple mica
full sparrow
#

You could always create a feature request on the github or in a discord or something?

#

Either way, could you close this ticket please?

hardy oarBOT
#

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.