scarpet
scarpet copied to clipboard
Spawn command
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like A simple command like /home or /spawn to take you to the world spawnpoint.
Describe alternatives you've considered Theres Bukkit plugins and seperate mods that can do it but they do not support 1.17 snapshots..
Additional context Doesnt need any bells and whistles, just a command that when run teleports you as a non OP player to the world spawn in the Overworld. ( Can be just coordinates that need to put in the script)
Wasn't there a /home somewhere?
Or was it tpa?
Anyway, should be simple, will try to do it this afternoon.
BTW spawn is just something like (written in mobile):
run('tp ' + player() + ' [position here]');
And optionally with an execute in dimension before if you want it in a specific dimension.
run('execute in minecraft:overworld run tp ' + player() + ' [position here]');
One sec, with /home did you mean the /spawn I just posted or a home/sethome per player app (I understood the second one)?
Sorry, by home I meant it as the same command as spawn. Thanks though :)
Do the ones above work?
(I'll anyway make a home app at so e point just for the sake of it)
How would I make it that the command will work even if they dont have OP? Is there a way to hide the text it displays in chat?
Nevermind, I got it to run without OP. But not sure if I can hide the text it shows in chat?
Oh, add:
print('Teleported to spawn);
To the next line.
If you want to format it or add colors, replace everything in the parenthesis with format([code] [message])
, see the docs for the available codes.
It should then disappear. If not, add null
to the next line, though I thought that was changed.
Just to be sure, you added it into a command type function block, right? (sorry for not being more specific, I'm not currently at home and I don't remember the new spec for sure).