#Deceased craft

18 messages · Page 1 of 1 (latest)

zealous beacon
#

I was trying to make crafts for bullets but nothing works. I put a .js file in the server_scripts file and even tried very simple crafts and none of them show up.

bronze anchorBOT
#

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

hidden heathBOT
#

🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.

zealous beacon
hidden heathBOT
#

Paste version of recipe.js from @zealous beacon

nocturne dagger
#

did you /reload or relog after saving the script?

zealous beacon
#

yeah i tried that it dosent work

nocturne dagger
#

thinking the kubejs log will be useful then

hidden heathBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.

zealous beacon
#

i see a "ServerEvents" is not defined

nocturne dagger
#

oh, right, that explains it

#

you're on 1.18, so that doesn't even exist

#

you want to use onEvent('recipes', event => { instead

zealous beacon
#

oh thank you

#

didnt know it changed

nocturne dagger
#

the event syntax changed in 1.19/kjs6

#

so 1.18 uses the "old" syntax

zealous beacon
#

it worked tysm