#Struggling to make a script work.

8 messages · Page 1 of 1 (latest)

merry frigateBOT
#

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

tulip thicketBOT
#

Paste version of first_spawn_tp.js from @tacit bolt

#

Paste version of mclo.gs/iQmxuVM from @tacit bolt

tulip thicketBOT
#

Please send your KubeJS server log. It can be found at /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send the file directly, without links or snippets.

inland elm
#

Also

tulip thicketBOT
#

NEVER use any AI to generate KubeJS code. They currently know very little about it, and what they do know is often outdated or false. You can instead look at the KubeJS wiki or ask for help in #1047320998199955458.

tulip thicketBOT
#

Paste version of server.log from @tacit bolt

inland elm
#

So everything up to, including, rtp seems to work . After that the Problem is that schedule only exists for Server:

event.server.scheduleInTicks(40, () => {
  //Other Code here
})

The Location Code after that seems completely incorrect, though I have no Idea on how to get the actual structure Location. The code for teleportation and respawn setting seems to be somewhat correct, allthough I'm Not Sure If setRespawnPoint exists. This needs to be tested and If it doesn't Work the command should probably work