scarpet icon indicating copy to clipboard operation
scarpet copied to clipboard

Spawn command

Open eXqusic opened this issue 3 years ago • 7 comments

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)

eXqusic avatar Apr 22 '21 06:04 eXqusic

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]');

altrisi avatar Apr 22 '21 07:04 altrisi

One sec, with /home did you mean the /spawn I just posted or a home/sethome per player app (I understood the second one)?

altrisi avatar Apr 22 '21 07:04 altrisi

Sorry, by home I meant it as the same command as spawn. Thanks though :)

eXqusic avatar Apr 22 '21 08:04 eXqusic

Do the ones above work?

(I'll anyway make a home app at so e point just for the sake of it)

altrisi avatar Apr 22 '21 08:04 altrisi

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?

22

eXqusic avatar Apr 22 '21 08:04 eXqusic

Nevermind, I got it to run without OP. But not sure if I can hide the text it shows in chat?

eXqusic avatar Apr 22 '21 08:04 eXqusic

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).

altrisi avatar Apr 22 '21 11:04 altrisi