#What am i doing wrong with this recipe
26 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
maybe the output's an array?
does the enriching recipe allow >1 outputs?
oh wait
sorry
use a small C maybe?
so count: 8
Tried this
event.custom({"type":"mekanism:enriching","input":{"ingredient":{"item":"mysticalagriculture:inferium_ore"}},"output":{"count":8,"item":"mysticalagriculture:inferium_essence"})
using the mekanism method
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
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
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
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.
Funny you should say that, i already have that installed but never thought of using it because im clearly dumb.