Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

[1.18] [Bug] Mekanism gasses in kubejs throw error #67

Open
MechOrigin opened this issue Apr 27, 2023 · 0 comments
Open

[1.18] [Bug] Mekanism gasses in kubejs throw error #67

MechOrigin opened this issue Apr 27, 2023 · 0 comments

Comments

@MechOrigin
Copy link

Here is the script in server_scripts:

// Chemical Reactor
    event.recipes.multiblocked.multiblock("chemical_reactor")
        .inputItem(Item.of('mekanism:advanced_control_circuit', 1))
        .inputFluid(Fluid.of('secretly_complicated:ethene_fluid_still', 810))
        .inputFluid(Fluid.of('secretly_complicated:oxygen_fluid_still', 810))
        // .inputGas({type: 'kubejs:ethene_gas', amount: 810})
        // .inputGas("secretly_complicated:oxygen_gas 810")
        .outputItem(Item.of('secretly_complicated:polyethylene_block').withCount(1))
        .setPerTick(true)
        .inputFE(30)
        .duration(360)

I try different variations of the inputGas, mainly the .inputGas({type: 'kubejs:ethene_gas', amount: 810}) which is what the wiki says to do. But it just throws an error:

[ERR ] Error occurred while handling event 'recipes': Wrapped java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap') (server_scripts:NTC3/base/modSpecific/multiblocked/multiblock_recipes.js#237)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant