"Set and get spawn of provided player" Procedure Block

Published by Goldorion on
Status
Fixed
Issue description

Hi,

In procedure blocks, we can set the global spawn, so the spawn to every players, but I would like have  a set spawn to provided player. Currently, we have to use the procedure block "Execute command", but when player doesn't have permission to execute command, it doesn't work. We can also use Set global spawn, but it set the spawn for everyone.

So, can you add this block in the future update please ?

 

Goldorion

 

P-S : I'd found an other way, but for someone who doesn't know as well MCreator, and/or he's not good, it can be hard. My way for the moment, it when player right click on my block, the game will get the coordinates of player, and put it in 3 variables. Then, I create a procedure with when player respawns, and if "Spawn Y ≠ 0" I move him to the coordiantes of the 3 variable. For me, it's easy, but for someone else my way can be very hard.

Issue comments

Am I wrong or was there something similar to this in MCreator before procedures were added?

Raol, we can get the world spawn, but we can’t get the spawn of the player, and for the set spawn, we don’t have a procedure block, but we have a technic (read the description of the issue.).

I will add set spawn point procedure, but for getting spawn point of the player outside the player class, I have found no good method of doing this.

Doesn't the player have NBT tags that store their spawn coordinates? I tried to get those using the Get Data Tag blocks but it just... didn't work.