Closed lonevox closed 1 year ago
Looking into this further, it seems like this mod is generating minecraft:smelting recipes wrong.
Here's the serialized vanilla Red Sandstone -> Smooth Red Sandstone smelting recipe (note that the result JSON is a string):
{"type":"minecraft:smelting","cookingtime":200,"experience":0.1,"ingredient":{"item":"minecraft:red_sandstone"},"result":"minecraft:smooth_red_sandstone"}
And here's the serialized gtceu Opal Ore -> Opal Gem smelting recipe:
{"type":"minecraft:smelting","ingredient":{"tag":"c:ores/opal"},"result":{"item":"gtceu:gem.opal","count":2},"experience":0.5,"cookingtime":0}
Because the Opal recipe's result JSON is an object and not a string that simply says the item output (which is what is expected because vanilla smelting only has a single item output), it causes the JsonSyntaxExceptions as a string is expected by Minecraft's SimpleCookingSerializer. Not sure how to solve this. Minecraft's SimpleCookingSerializer definitely can't be used though, so maybe minecraft:smelting recipes shouldn't be used like this?
It's easy to fix, just a simple mixin can add vanilla supports. It's just that I haven't dealt with it yet, because right now it's just missing functionality in fabric, and actually fabric lacks a lot of features that forge has, which I'll implement them later
GregTech CEu Version
1.0.0 fabric
Recipe Viewer Installed
JEI
Environment
Singleplayer
Cross-Mod Interaction
No
Expected Behavior
Put an appropriate smeltable item into an electric furnace such as Raw Iron and it should smelt it.
Actual Behavior
The game crashes with an index out of bounds error: https://pastebin.com/wfTcZWyA
The following seems to be related. Upon loading any world, the console logs an error for each ingot smelting recipe. The one below is for beryllium.
Steps to Reproduce
Additional Information
The electric furnace works with the forge version of the mod.