#Proplems with adding recipes Mekanism: More Machine

27 messages · Page 1 of 1 (latest)

mint flame
#

Hello everyone,

I have been playing around with KubeJS for the first time since i want to help in a modpack that is interesting me.
I followed the Guide frome the mekmm Github for the KubeJS integration

        event.custom({
            "type": "mekmm:planting",
            "item_Input": {
                "count": 1,
                "item": 'pamhc2trees:apple_sapling'
            },
            "chemical_input": {
                "amount": 1,
                "chemical": 'mekmm:nutrient_solution'
            },
            "main_output": {
                "count": 5,
                "id": 'minecraft:oak_log'
            },
            "secondary_output": {
                "count": 2,
                "id": 'minecraft:apple'
            },
            "per_tick_usage":true
        })
    }
)```
This is the code for the recipe i want to add
I'm getting this error:
```[22:32:47] [WARN] Error parsing recipe mekmm:kjs/5ko18oge3fko5yt42axnminh7[mekmm:planting]: {"type":"mekmm:planting","item_Input":{"count":1,"item":"pamhc2trees:apple_sapling"},"chemical_input":{"amount":1,"chemical":"mekmm:nutrient_solution"},"main_output":{"count":5,"id":"minecraft:oak_log"},"secondary_output":{"count":2,"id":"minecraft:apple"},"per_tick_usage":true}: Missing itemInput, expected to find a JsonObject```

Maybe i'm doing something wrong or not seeing through correctly.
Thanks for your help in advance
polar cedarBOT
#

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

winter basin
#

that error suggests that the recipe structure youre doing is wrong

#

double check with the mekanism github page or the jar file on the same mc version

#

you probably want to switch item_Input to itemInput like the error says, but you might want to double check the rest, cuz they look very inconsistent

mint flame
winter basin
#

thats exactly why i said double check the whole thing

#

xD

mint flame
#

i made it work within the mod file makes things easyer :> thank you for the help !

winter basin
#

do what now-

mint flame
#

i mean if it works it works :x

winter basin
#

are you planning on playing alone and never update any mods?

mint flame
#

ah true :x

#

makes alot of sense

#

the same code i used within the mod works withing KubeJS

#

sooo

#

win i suppose xD

winter basin
stoic cradleBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should create a new post for unrelated issues.

mint flame
#

just one more question

#

and sorry first off i suck at coding xD thats why i went into medicine

#

can i put more then one recipe into a .js file

winter basin
#

yeah

mint flame
#

nice now i just need to know how xD

winter basin
#
ServerEvents.recipes(event => {
  event.custom(...)
  event.custom(...)
  event.custom(...)
  event.custom(...)
})
mint flame
#

you are a godsent thank you <3