CleanroomMC / GroovyScript

A scripting mod for Minecraft without the issues of other scripting mods.
GNU Lesser General Public License v3.0
40 stars 28 forks source link

CompressorRecipeManager expiriences an error of NoSuchMethodError #267

Closed logslmao closed 2 weeks ago

logslmao commented 3 weeks ago

My script is simple, it just adds a gregtech material, nothing else.

println("Initializing GREGTECH content")
mods.gregtech.materialEvent {
    def rose_material = materialBuilder(32000,"rose_heart")
        .liquid(fluidBuilder())
            .color(0x8f1c11)
            .temperature(272.15)
            .translation('gregtech.fluid.liquid_generic')
        .gem()
        .components(material('carbon') * 2)
        .build()
}
println("Init of GREGTECH Completed")

Anyways, the full error is

java.lang.NoSuchMethodError: com.blakebr0.extendedcrafting.crafting.CompressorRecipeManager.getRecipes()Ljava/util/List;

Here is my latest and debug.log https://mclo.gs/IVdq84C https://mclo.gs/PdgNzw7

WaitingIdly commented 3 weeks ago

groovyscript is compatible with https://www.curseforge.com/minecraft/mc-mods/extended-crafting-nomifactory-edition not base extended crafting.

unrelatedly, in your script you make an error involving where parentheses go.

println("Initializing GREGTECH content")
mods.gregtech.materialEvent {
    def rose_material = materialBuilder(32000,"rose_heart")
-       .liquid(fluidBuilder())
+       .liquid(fluidBuilder()
            .color(0x8f1c11)
            .temperature(272.15)
-           .translation('gregtech.fluid.liquid_generic')
+           .translation('gregtech.fluid.liquid_generic'))
        .gem()
        .components(material('carbon') * 2)
        .build()
}
println("Init of GREGTECH Completed")
logslmao commented 3 weeks ago

Now, it works, but i get a new error, being

groovy.lang.MissingMethodException: No signature of method: preInit.gregtech.addElement() is applicable for argument types: (Integer, Integer, Integer, null, String, String, Boolean) values: [289, 193, -1, null, Draconium, DRc, false]

I swear i added it correctly, but addElement doesnt work for me at all, regardless of what i add to the parameters

IntegerLimit commented 2 weeks ago

Try

addElement((long) 289, (long) 193, (long) -1, null, Draconium, DRc, false)
logslmao commented 2 weeks ago

There's no error, but there isn't an element marker, i used .element and it didn't do anything, using .component makes the item no longer existent EDIT: .element also breaks the items

logslmao commented 2 weeks ago

Oh and, i keep getting a NEW error, where this happens with literally every machine type image

logslmao commented 2 weeks ago

i ended up just using the mods from CEu dev's modpack and it worked. Still dont know how to make a multiblock tho sadly...