shedaniel / RoughlyEnoughItems

Clean and Configurable. Your recipe viewer mod for 1.13+.
Other
327 stars 66 forks source link

[Bug] MI/KubeJS custom recipes don't display 1.19.2 #1364

Open Sipepper opened 1 year ago

Sipepper commented 1 year ago

What happened?

When i tried to add a recipe via KubeJS in a certain way, described below

event.recipes.modern_industrialization.quarry(4, 600)
        .itemIn("modern_industrialization:bronze_drill", 0.04)
        .itemOut("minecraft:iron_ore", 0.4)
        .itemOut("minecraft:coal_ore", 0.4)
        .itemOut("minecraft:copper_ore", 0.2)
        .itemOut("modern_industrialization:tin_ore", 0.3)
        .itemOut("minecraft:gold_ore", 0.15)
        .itemOut("minecraft:redstone_ore", 0.2)
        .dimension("overworld")
        .adjacentBlock("minecraft:bedrock", "below")

The recipe don't show up in REI, but it's shows in JEI, maybe this is because new way of MI integration with KubeJS. The old syntax looks like this

event.recipes.modern_industrialization.assembler({
        eu: 8,
        duration: 200,
        item_inputs: [{
                item: 'modern_industrialization:stainless_steel_large_plate',
                amount: 4
            },
            {
                item: 'modern_industrialization:advanced_machine_hull',
                amount: 1
            }
        ],
        item_outputs: [{
            item: 'modern_industrialization:turbo_machine_casing',
            amount: 1
        }],
        id: 'modern_industrialization:assembler/turbo_machine_casing'
    })

Such recipe will show in REI but not work properly(not adding new features)

What mod loaders are you seeing the problem on?

Fabric

What do you think this bug is of?

Relevant log output

latest log: https://gist.github.com/Sipepper/4def311bf1df3094b6aecdd05d41e637
rei log: https://gist.github.com/Sipepper/20fd86fb740b7228aa02c567e4becac9

Anything else?

No response

By submitting this issue, I have included the necessary logs by pasting the contents into the correct location or attaching the file as an upload.

By submitting this issue, I have confirmed my REI and REI's dependencies are up to date.