2

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?)

4
  • if you need more information please don't hesitate to ask
    – cubelords
    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?
    – BRHSM
    Jan 21, 2016 at 16:40
  • Is the skyisland/spawn at a specific coordinate?
    – SirBenet
    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
    – cubelords
    Jan 21, 2016 at 22:19

3 Answers 3

6

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
7
  • could you simplify this? as I asked this question because I have no idea where to start
    – cubelords
    Jan 21, 2016 at 22:21
  • I would make this a excepted answer if you did
    – cubelords
    Jan 21, 2016 at 23:00
  • 2
    @cubelords Can you elaborate on "simplify"? It's a single command and can't be simplified further.
    – Skylinerw
    Jan 22, 2016 at 2:06
  • maybe explain how to do it more simply? what everything stands for?
    – cubelords
    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?
    – cubelords
    Jan 23, 2016 at 20:28
1

/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

1

/execute at @a run tp @a[limit=1,y=-1,dy=-64] X Y Z for newer versions :]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .