#Recipe removal by regex and datapacking recipes causing minecraft:barrier to be obtainable

6 messages · Page 1 of 1 (latest)

ancient bronze
#

I've run into an interesting bug that doesn't throw any errors that I've seen but does make the minecraft:barrier obtainable. I'm removing one mod's shaped recipes by output via regex and adding recipes to a different mod with JSON files in the data folder. Somehow, this is combining to affect recipes that use tags that I have not added nor modified with KubeJS.

In a testing instance I have Occultism 1.90.0 and KubeJS 2001.6.4-build.95 as well as JEI 15.2.0.27, and can reliably recreate the issue with the below files.

In \kubejs\data\occultism\recipes\miner\deeps\ I have a file named almandine.json with the following contents:{ "type": "occultism:miner", "ingredient": { "tag": "occultism:miners/deeps" }, "result": { "item": "gtceu:deepslate_almandine_ore" }, "weight": 600, "conditions": [ { "type": "forge:not", "value": { "type": "forge:tag_empty", "tag": "forge:ores/almandine" } } ] }
In \kubejs\server_scripts\ I have a file called conflicts.js with the following contents:ServerEvents.recipes(event => { event.remove({ output: /rebornstorage:(small|medium|large|larger)_(item|fluid)_disk.*/ }) })

I am going to just remove the recipes individually rather than with regex to fix this, but I thought it was worth sharing as it had me thoroughly confused for a while. Let me know if you'd like me to gather any logs or anything!

next umbraBOT
#

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

minor peak
#

removing by output only works for supported recipes like vanilla or via addon like kubejs create, kubejs mekanism, etc...

so removing by recipe ID is your best bet

ancient bronze
#

What do you mean? I've already gone ahead and removed the recipes by output and it's working as far as I can tell. Should I instead remove them by id because output is unsupported for general use?

minor peak
#

remove by output is supported only for vanilla recipes like smithing, shaped, shapeless, smelting, etc AND mods that contains addons

if for your need this is not enough you need to remove by id
you can use both too, like remove by output and the leftovers by id

ancient bronze
#

Ah okay, thanks for the clarification, the recipes in question are all shaped recipes in this instance.