#Where is wrong in this recipes?

34 messages · Page 1 of 1 (latest)

old flint
green tapirBOT
#

Paste version of test.js from @old flint

tardy shale
#

the function is calling itself nvm

#

also send your server logs

#

(logs/kubejs/server.txt)

old flint
green tapirBOT
#

Paste version of server.txt from @old flint

dense crag
#

that script make me feel funny

old flint
#

i do like that 2 more like that, it's work at all

#

u want to see?

noble yew
#

is that the whole script? like there is nothing before or after it?

old flint
#

yes that is all bug
but now it's don't bug any more
IDK why 🤷

noble yew
#

you need to have an event

#

right now the js script parser (the program that reads your code and turns it into stuff that happens) sees the { and think, 'ok this is gonna be an object'. But then it gets to the code and gets all confused and does not work.

#

recipes need to look like

onEvent('recipes', event => {
event.shapeless('9x bread','3x hay_bale')
event.remove({input:'diamond'})
})
#

not

{
event.shapeless('9x bread','3x hay_bale')
event.remove({input:'diamond'})
}
old flint
#

umm
i give u all i done

green tapirBOT
#

Paste version of recipes.js from @old flint

old flint
#

@noble yew

#

look what i done with this script

#

and that why i put it in like that

noble yew
#

ok

#

that what I needed

#

next time send the whole file plus what line you think the problem is on

#

it might seem unrelated, but does the recipe for kubejs:pipe_mod_tier_2 work?

old flint
green tapirBOT
#

Paste version of test.js from @old flint

old flint
#

@noble yew

#

if yes
{} i never use for make ez to looking and it's can use for cut let out whole script
let i never use for make whole recipes shot and safe less time to make other script

#

if it's not both of this u can question me

old flint
green tapirBOT
#

Paste version of test.js from @old flint