'execute' command does not work with 'spawnpoint', 'setworldspawn', or 'spreadplayers'
In a single player world, try commands like
- /execute @p ~ ~ ~ spawnpoint
or
- /execute @p ~ ~ ~ setworldspawn
or these two
- summon Pig ~ ~ ~ {CustomName:Piggy}
- /execute @p ~ ~ ~ spreadplayers ~ ~ 0 1 false @e[name=Piggy]
Expected: the various execute commands succeed, and set the player's spawn point, or set the world spawn, or spread the pig, relative to the player.
Actual: command fails with an error message.
Linked Issues
Created Issue:
'execute' command does not work with 'spawnpoint', 'setworldspawn', or 'spreadplayers'
In a single player world, try commands like
/execute @p ~ ~ ~ spawnpoint
or
/execute @p ~ ~ ~ setworldspawn
or these two
summon Pig ~ ~ ~
{CustomName:Piggy}/execute @p ~ ~ ~ spreadplayers ~ ~ 0 1 false @e[name=Piggy]
Expected: the various execute commands succeed, and set the player's spawn point, or set the world spawn, or spread the pig, relative to the player.
Actual: command fails with an error message.
In a single player world, try commands like
/execute @p ~ ~ ~ spawnpoint
or
/execute @p ~ ~ ~ setworldspawn
or these two
summon Pig ~ ~ ~
{CustomName:Piggy}/execute @p ~ ~ ~ spreadplayers ~ ~ 0 1 false @e[name=Piggy]
Expected: the various execute commands succeed, and set the player's spawn point, or set the world spawn, or spread the pig, relative to the player.
Actual: command fails with an error message.
In a single player world, try commands like
- /execute @p ~ ~ ~ spawnpoint
or
- /execute @p ~ ~ ~ setworldspawn
or these two
- summon Pig ~ ~ ~ {CustomName:Piggy}
- /execute @p ~ ~ ~ spreadplayers ~ ~ 0 1 false @e[name=Piggy]
Expected: the various execute commands succeed, and set the player's spawn point, or set the world spawn, or spread the pig, relative to the player.
Actual: command fails with an error message.
is duplicated by
Dupe of MC-51613
Use
/execute @p ~ ~ ~ spawnpoint @p or /execute @p ~ ~ ~ spawnpoint @p ~ ~ ~
/execute @p ~ ~ ~ setworldspawn ~ ~ ~
spreadplayers cannot take relative coordinates, must use absolute values.
Thanks for the quick response. I feel silly for screwing up the syntax.