#What am i doing wrong with this recipe

26 messages · Page 1 of 1 (latest)

wary nebula
#

Just trying to output more than one item -_-

    event.custom({
    type: 'mekanism:enriching',
    input: { ingredient: Item.of('mysticalagriculture:prosperity_ore')},
    output: { Count:8, Item.of('mysticalagriculture:prosperity_shard')
})

Tried a few different things on the wiki but nothing.

molten stirrupBOT
#

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

elfin vapor
#

maybe the output's an array?

does the enriching recipe allow >1 outputs?

#

oh wait

#

sorry

#

use a small C maybe?
so count: 8

wary nebula
#

Will try

#

Nope

#

Am i using incorrect formatting?

elfin vapor
#

not sure

#

look at existing mek recipes?

wary nebula
#

Tried this

#

event.custom({"type":"mekanism:enriching","input":{"ingredient":{"item":"mysticalagriculture:inferium_ore"}},"output":{"count":8,"item":"mysticalagriculture:inferium_essence"})

#

using the mekanism method

atomic patio
#

ithink

#

try .tojson

wary nebula
#

server log gave me this[KubeJS Server/]: ! event.custom({"type":"mekanism:enriching","input":{"ingredient":{"item":"mysticalagriculture:inferium_ore"}},"output":{"count":8,"item":"mysticalagriculture:inferium_essence"}):7: Error loading KubeJS script: server_scripts:CustomR.js': missing } after property list (server_scripts:CustomR.js#7)

#

also still not sure how to use .tojson

#

im just copying from whats around

silver coral
#
event.custom({
  type: 'mekanism:enriching',
  input: Item.of('mysticalagriculture:prosperity_ore').toJson(),
  output: Item.of('8x mysticalagriculture:prosperity_shard').toJson()
})
#

or just use the addon for KJS, which i think is updated to 1.19

wary nebula
#

Omg i figured it out and youve posted a solution xD

#

Thank you very much either way!

#

It was missing a } to close off the event fml

azure wingBOT
#

If you're working with KubeJS scripts, configuration files, or similar things, we generally recommend using an actual IDE rather than just Notepad and its various siblings. In a lot of cases, it can help you with finding errors in your code faster and also gives you neat features like syntax highlighting, automatic formatting, et cetera! We recommend Visual Studio Code, since it's lightweight(-ish) and works very well with JavaScript files out-of-the-box.

wary nebula
#

Funny you should say that, i already have that installed but never thought of using it because im clearly dumb.