#Error when trying to add custom recipes for a mod

24 messages · Page 1 of 1 (latest)

swift stream
#

So I wanted to add some recipes for a resource chickens mod and I took the java script for it from stoneblock 3 modpack and it gives me this error. Can I please get some help ?

proud daggerBOT
#

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

swift stream
frigid valeBOT
#

Paste version of server.txt from @swift stream

swift stream
#

I do not know how to code in javascript

#

what I don't understand is what is meant by single json object argument

kindred meadow
#

it pretty much says the error

#

can you share your script

frigid valeBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js
onEvent('recipes', e => {
e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
```

As an example, :arrow_up: will look like this:

onEvent('recipes', e => {
  e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
#

KubeJS Create is an addon that will allow you to use KJS scripts with Create more easily.

kindred meadow
#

and i suggest using this instead of using customs

swift stream
frigid valeBOT
#

Paste version of chickens.js from @swift stream

swift stream
#

alright ima try to use the kubejs create addon

cloud pivot
kindred meadow
#

ye i saw that xd

#

and i suggest using maps instead of objects

#

S is wrong

#

should be S: "minecraft:egg"

swift stream
#

ok ill try in a minute

#

yes seems like the issue was that I didn't have the addon

#

tysm for the help