#Issues with 1.19.2 immersive engineering crushing

20 messages · Page 1 of 1 (latest)

gloomy tangle
#

I've been trying to migrate a 1.18.2 script to 1.19.2, and it includes this code:

event.recipes.immersiveengineeringCrusher(Item.of("kubejs:clay_dust").withChance(0.8), "kubejs:dry_dirt")

Issue is I've been having this weird warning that's not making the recipe function:
[15:32:40] [WARN] Error parsing recipe immersiveengineering:kjs_1z1m0e0cgl9lzahtn3gqqoxnv[immersiveengineering:crusher]: {"type":"immersiveengineering:crusher","result":{"item":"kubejs:clay_dust","count":1,"chance":0.8},"input":{"item":"kubejs:dry_dirt"},"energy":6000}: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonArray.size()" because "array" is null.
This is also happening on other crushing recipes.

waxen lodgeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

bronze meadow
#

I seem to remember someone else having a similar issue recently

#

Still unresolved

gloomy tangle
#

yikes

wicked portalBOT
#

Choose one of the addons below:

gloomy tangle
#

hm there's no ie selection?

bronze meadow
#

Its because its not on 1.20

gloomy tangle
#

right

#

@polar latch did you find a solution btw

#

since you had a similar issue

polar latch
#

I didn't

#

server log says the secondary output is 0 of minecraft:air so there's something wrong with the syntax on the wiki

#

but I haven't found one that works

#

Actually I got a different error than you

gloomy tangle
#

yeah I noticed

gloomy tangle
#

right, I found a way

#

I just used a custom event

#

format's like this:

event.custom({"type":"immersiveengineering:crusher",
    "energy":1600,
    "input": {
        "item": "kubejs:dry_dirt"
    },
    "result": {
        "count": 1,
        "item": "kubejs:clay_dust"
    },
    "secondaries": [{
        "chance":0.2,
        "output": {
            "item": "kubejs:clay_dust"
        }
    }]
})