#Some commands not working

2 messages · Page 1 of 1 (latest)

winter ice
#

I am trying to use this

e.server.runCommandSilent(`execute as ${e.entity.username} run tp @s ${skySpawnX} 65 ${skySpawnY}`)
e.server.runCommandSilent(`setblock ${skySpawnX} 64 ${skySpawnY} grass_block`)
e.server.scheduleInTicks(5* 20, () =>  e.server.runCommandSilent(`execute in ${e.level.dimension} run place template sky_technology:starter_island ${skySpawnX-5} 62 ${skySpawnY-4}`))
e.server.scheduleInTicks(2* 20, () =>  e.server.runCommandSilent(`execute in ${e.level.dimension} run spawnpoint ${e.entity.username} ${skySpawnX} 65 ${skySpawnY}`))```


The first two commands work fine, but the structure doesn't get placed, and the spawnpoint isn't set. Uppon testing, the structure works fine when I use the command ithe chat, the spawnpoint also doesn't work. 
When I log the commands and put them into the chat it works fine too
If you have any idea why it doesn't work or how to do it with some other methode, please tell me
hard spireBOT
#

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