#Immersive Engineering squeezer/fermenter

10 messages · Page 1 of 1 (latest)

neat river
#

ServerEvents.recipes(event => { event.remove({ type: 'immersiveengineering:fermenter', input:{item: 'minecraft:melon_slice'}}) event.remove({ type: 'immersiveengineering:squeezer', input:{item: 'minecraft:melon_seeds'}}) event.custom({ type: 'immersiveengineering:fermenter', input: { item: 'minecraft:melon_slice' }, fluid: { fluid: 'immersiveengineering:ethanol', amount: 250 }, energy: 6400 }) event.custom({ type: 'immersiveengineering:squeezer', input: { item: 'minecraft:melon_seeds' }, fluid: { fluid: 'immersiveengineering:plantoil', amount: 250 }, energy: 6400 }) })

This always just throws a error parsing recipe, always. I've also tried the sintaxis on the website (event.recipes.immersiveengineering.fermenter(input, fluid, output, energy)) but nothing still.

stark skyBOT
#

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

rough quarry
#

custom recipes that error will not be found by KubeJS, but the errors, and why they couldn't be parsed, can be found in the logs

neat river
#

this is what i've found in the logs:

[20:01:40] [WARN] Error parsing recipe kubejs:squeezer/melon_seeds: {"type":"immersiveengineering:squeezer","input":{"item":"minecraft:melon_seeds"},"fluid":{"fluid":"immersiveengineering:plantoil","amount":250},"energy":6400}: com.google.gson.JsonParseException: No key id in MapLike[{"fluid":"immersiveengineering:plantoil","amount":250}]
[20:01:43] [WARN] Error parsing recipe kubejs:fermenter/melon_slice: {"type":"immersiveengineering:fermenter","input":{"item":"minecraft:melon_slice"},"fluid":{"fluid":"immersiveengineering:ethanol","amount":250},"energy":6400}: com.google.gson.JsonParseException: No key id in MapLike[{"fluid":"immersiveengineering:ethanol","amount":250}]

I just followed a youtube tutorial on immersive engineering recipes, I understand like the basics only, been trying to make it work for like an hour

rough quarry
#

JsonParseException: No key id in MapLike[{"fluid":"immersiveengineering:ethanol","amount":250}]
You have fluid:{ fluid:'id', amount:# }
That inner fluid is the issue. It needs to be changed to id
example

fluid: {
    id: "immersiveengineering:plantoil"
    amount: 250
}
#

KubeJS's custom recipes have to have the exact same structure as [mod] because a custom recipe is pretty much just a "totally legit json recipe" sneakily sent to [mod] to parse like any other json recipe
KubeJS doesn't verify if the recipes is correct, because that'd require explicit knowledge of how every single mod recipe works and what they all expect

neat river
#

So I just copy the exact same structure that the mod has and that should work right? Going to give it a try, thanks a looot

rough quarry
#

just make sure that the element keys (stuff like the fluid:, type: and input: etc) are not surrounded by quotes
So same structure as the regular recipes found in the jsons, but quotes should only be used for values that are strings, like id: "immersiveengineering:plantoil"

neat river
#

yup, that worked perfectly
thanks again