mojira.dev
MC-76932

setworldspawn in Command Block bug

When you put the command "/setworldspawn" into a command block,
it shows "[*::*] You must specify which player you wish to perform this action on." instead of setting the world spawn.
When you perform this command as a player, it works.
Also putting "/setworldspawn ~ ~ ~" into a command block works.

Attachments

Comments 12

What role plays the Comparator ?

I don't really understand, what you mean, I attached some screenshots of it.
They show the situation before and after activating.

I just want to mention, that I am German.

As well I want to add, that the compass points onto the right block.

Edit: Oh, I saw, what you mean, I was about to write "command block" instead of "comparator", sorry.

Why "Awaiting response"?
The syntax for setworldspawn is "/setworldspawn [x] [y] [z]".
The bug is probably that you can use "/setworldspawn" to set the world spawn to your current position. But apparently when you perform this command in a command block, it thinks it needs a player instead of using its own coordinates

It's awaiting response because the original summary was

setworldspawn in comparator bug

and my question

What role plays the Comparator ?

was unanswered.

Anyway, this is no bug. See http://minecraft-de.gamepedia.com/Befehl/setworldspawn

... Im Befehlsblock müssen die Koordinaten immer angegeben werden. ...

2 more comments

I don't see why this is invalid. There is no reason for the command to not work in command blocks.

setworldspawn without parameters set the worldspawn to the position of the current player.
A command block is no player.

If no coordinates are specified, it defaults to the coordinates of the object executing the command. It works perfectly well with setblock and summon, why not setworldspawn?

I'm not convinced that this is intended. It seems inconsistent with the behavior of other commands.

ZuzuTyp

(Unassigned)

Unconfirmed

Minecraft 1.8.2-pre4

Retrieved