AlexSa1000 / MysticalAgriculture-Refabricated

Fabric port of Mystical Agriculture
MIT License
10 stars 11 forks source link

Master Infusion Crystal Bug #5

Open blakeroni1551 opened 3 years ago

blakeroni1551 commented 3 years ago

Describe the bug: Crafting the infernium blocks into prudentium blocks uses up the master infustion crystal when it is not supposed to.

To Reproduce: Craft any of the block upgrade recipes for the infernium to impermium blocks and it will happen.

Expected behavior: Supposed to not use up the master infusion crystal in the center of the recipe.

Screenshots: https://imgur.com/a/dRfUOKL

Versions:

HueboWasTaken commented 3 years ago

same thing happening to me, infusion crystal is also being deleted by ae2 molecular assemblers and tech reborn auto crafter when crafting essence in block form AND non-block form

hotdog95 commented 3 years ago

I have created a simple kubejs script to fix this issue, it replaces the recipes, just pop the file into server_scripts for what ever modpack you are using that has kubejs. if you don't have cube, I suggest looking up how to make datapacks and replace the files using that (same path as the mystical block recipes, "find a file" in GIT with the serch term "block_combine")

`events.listen("recipes", function (event) { // prudentium_block event.custom({ "type": "mysticalagriculture:infusion_crystal", "pattern": [ " # ", "#X#", " # " ], "key": { "#": { "item": "mysticalagriculture:inferium_block" }, "X": { "item": "mysticalagriculture:master_infusion_crystal" } }, "result": { "item": "mysticalagriculture:prudentium_block" } }).id('mysticalagriculture:prudentium_block_combine')

// tertium_block
event.custom({
    "type": "mysticalagriculture:infusion_crystal",
    "pattern": [
        " # ",
        "#X#",
        " # "
    ],
    "key": {
        "#": {
        "item": "mysticalagriculture:prudentium_block"
        },
        "X": {
        "item": "mysticalagriculture:master_infusion_crystal"
        }
    },
    "result": {
        "item": "mysticalagriculture:tertium_block"
    }
}).id('mysticalagriculture:tertium_block_combine')

// imperium_block
event.custom({
    "type": "mysticalagriculture:infusion_crystal",
    "pattern": [
        " # ",
        "#X#",
        " # "
    ],
    "key": {
        "#": {
            "item": "mysticalagriculture:tertium_block"
        },
        "X": {
            "item": "mysticalagriculture:master_infusion_crystal"
        }
        },
    "result": {
        "item": "mysticalagriculture:imperium_block"
    }
}).id('mysticalagriculture:imperium_block_combine')

// supremium_block
event.custom({
    "type": "mysticalagriculture:infusion_crystal",
    "pattern": [
        " # ",
        "#X#",
        " # "
    ],
    "key": {
        "#": {
        "item": "mysticalagriculture:imperium_block"
        },
        "X": {
        "item": "mysticalagriculture:master_infusion_crystal"
        }
    },
    "result": {
        "item": "mysticalagriculture:supremium_block"
    }
}).id('mysticalagriculture:supremium_block_combine')

})`