Hello, I've search everywhere on the internet and I don't found how can i get the location of a specific world.
(if I don't find a solution with armor stand, I would try when a player join the world to generate my schematic)
My code:
And I don't have any error in the server's console.
Thanks for you helping.
UPDATE:
It's doesn't work because the chunk have to be loaded.. Now I search how I can do to pre-loaded chunk.
(if I don't find a solution with armor stand, I would try when a player join the world to generate my schematic)
My code:
code_language.skript:
#creating world
#teleport entity to my spawn in world "world"
spawn armor stand at {spawnloc}
#keep armor stand into a variable
set {_a} to last spawned entity
#this is a test to check if tp is working and it's working
#loop all players:
# teleport loop-player to spawn of "%{_id}%"
#teleport the armor stand to spawn location of the world (using Skellett)
teleport {_a} to spawn of "%{_world}%"
#define the world's spawn
set {%{_id}%::spawnlocation} to {_a}'s location
broadcast "%{%{_id}%::spawnlocation}%"
#now i paste my schematic at last spawned entity (armor stand)
sharpsk fawe paste schematic "spawn" at {%{_id}%::spawnlocation}
#now I kill the armor stand
kill {_a}
And I don't have any error in the server's console.
Thanks for you helping.
UPDATE:
It's doesn't work because the chunk have to be loaded.. Now I search how I can do to pre-loaded chunk.
Last edited: