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!