I am making a mini-game for my server and would like the lobby to be a skyisland over the void, my question is, Is there a way to tp a player back to the skyisland if they fall in the void? I have a vanilla server and don't want to use plugins or mods if possible.(maybe a command?)
-
if you need more information please don't hesitate to ask– cubelordsCommented Jan 21, 2016 at 16:28
-
have you tried making people not fall into the void but on pressureplates on top of command blocks, and then just tp them? How big is the area you are dealing with?– BRHSMCommented Jan 21, 2016 at 16:40
-
Is the skyisland/spawn at a specific coordinate?– SirBenetCommented Jan 21, 2016 at 17:09
-
its actually a large airship over the void which does not have flat edges where I can put command blocks– cubelordsCommented Jan 21, 2016 at 22:19
Add a comment
|
3 Answers
For a world-wide area, can use /execute
to change the coordinate origin to that of the player, and teleport them when they reach below y=0
(going downwards by 64 blocks):
/execute @a ~ ~ ~ /tp @a[c=1,y=-1,dy=-64] X Y Z
Or:
/execute @a ~ -1 ~ /tp @a[c=1,dy=-64] X Y Z
-
could you simplify this? as I asked this question because I have no idea where to start Commented Jan 21, 2016 at 22:21
-
-
2@cubelords Can you elaborate on "simplify"? It's a single command and can't be simplified further. Commented Jan 22, 2016 at 2:06
-
maybe explain how to do it more simply? what everything stands for? Commented Jan 23, 2016 at 20:26
-
like do I just type exactly what you said or should I write the coords or something in place of something? Commented Jan 23, 2016 at 20:28
/execute @a ~ -1 ~ /tp @a[c=1,dy=-64] X Y Z
@a
:
player
~ -1 ~
:
void coordinates
/tp @a[c=1,dy=-64]
:
teleports player
X Y Z
:
where to teleport player