My main goal is in the ftb quest, to add a quest that is fulfilled when I kill a zombie with a book. Chat gpt advised me to do it via KubeJs, so he generated a code that I put in the server_scripts folder, but when I enter the world it says Line 1:onEvent() is no longer supported when gpt modifies the code so Refference error: server is not defined. I've been doing this for a long time and I don't know what to do next.
Does anyone know where the root of the problem is?
#error in code
2 messages · Page 1 of 1 (latest)