The bed spawn point gamerule would dictate whether interacting with a bed would set the spawnpoint. This allows players to sleep without setting their spawn. One reason this would be useful is for a playstyle where you set the spawn radius to be in the tens of thousands and disable bed spawning and enable reduced debug info.
To reset a spawn point to a specific set of coordinates for a player, type the player name as well as the XYZ coordinates for the new spawn point. In this example, we will reset the spawn point for DigMinecraft to (50, 75, -100) with the following command:
This command allows you to easily set your spawn point and shows you the coordinates and location where you will spawn. To use the command, simply hit enter after typing it out. The “/spawnpoint” command can also be used to set the spawn location for other players. Once you execute the command, a notification will appear in the lower-left
In the world of Minecraft servers, a decent spawn point is vital for players looking to get started. Whether this is a resource-rich biome in vanilla or a hub for servers, the spawn is where the first impression is made. While the base game has commands relating to a spawn point, there are many options that are missing.
Type /gamerule spawnRadius value> (ensuring to keep the upper case letters) into the command line. This determines how far a player will be randomly spawned after entering the game or after dying from the world's spawn point. All players will always spawn in the same location if the spawn radius is set to one. Ten blocks are chosen as the
If you don’t specify a coordinate, the command will use your current position in the game. Examples Example in Java Edition (PC/Mac) To set the world spawn point to your current location in Minecraft Java Edition (PC/Mac): /setworldspawn. To set the world spawn point to an absolute position of (-113, 92, 211) as the (x, y, z) coordinate:
If the command blocks are running on a clock then there is not much to do other then remembering the coordinates of the command blocks and setblock air in that spot (or use mcedit). If the command blocks are not on a clock then use this command: /spawnpoint @p ~ 100 ~ It should set your spawnpoint at level 100 and therefor not outside the world
Or if you run it trough a command block, you will get the block's position. So, to explicitly answer your question, is to create a function with both commands: worldborder center ~ ~ setworldspawn ~ ~ ~. And run that function as the player using execute, like this: execute at run function .
SQH2n.