#Where is wrong in this recipes?
34 messages · Page 1 of 1 (latest)
Paste version of test.js from @old flint
the function is calling itself nvm
also send your server logs
(logs/kubejs/server.txt)
i don't show any
Paste version of server.txt from @old flint
is that the whole script? like there is nothing before or after it?
yes that is all bug
but now it's don't bug any more
IDK why 🤷
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'})
}
Paste version of recipes.js from @old flint
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?
Paste version of test.js from @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
more shot
Paste version of test.js from @old flint
