1
Group Teleporter... [Resolved]
Hey guys. Looking for a guide on how to make a random teleporter, which will teleport more than one player at a time. (Such as everyone standing on blocks around the button, or in a room.)
Anyone know of a tutorial for what I'm talking about here?
Anyone know of a tutorial for what I'm talking about here?
Create an account or sign in to comment.
6
1
Thanks for input guys. I ended up using both methods. The command block way took my players to a biome randomly. I also used spreadplayers and found this was much easier for sending a whole room of people together with the [r=X] argument.... though yes, it does send them to bizzare locations sometimes, but that's fine... can be quite fun.
1
Because that teleports players randomly, where every single block is possible. It looks like there are multiple rooms or locations instead. He/she wouldn't want players tped everywhere then. (Judging from his/her earlier post, with this as follow up)
1
why not use /spreadplayers ?
1
Use a command block for every location with
/tp @a[x=#,y=#,z=#,dx=#,dy=#,dz=#] # # #
If you don't know how to fill in the things between brackets, visit the wiki. You can find explanation on the commands page, they are called selector arguments.
Then place an armor stand on top called eg randomwarp. Make sure there is no space, you can use an anvil to rename.
Then attach a command block to the button or pressure plate with the command...
/execute @r[type=ArmorStand,name=randomwarp] ~ ~ ~ /setblock ~ ~ ~ redstone_block.
Remember to change the name if needed and make sure to change ArmorStand to armor_stand in the next update. (the ~ need to be entered as ~)
Now attach a repeater and another command block to every command block with a location, with the command /setblock # # # air
Here the coords should point at the block above the first command block.
RECAP:
A player stands on the pressure plate, a random armor stand places a block at his feet. This causes the player to to and the redstone block to become air. Ready to be activated next time.
/tp @a[x=#,y=#,z=#,dx=#,dy=#,dz=#] # # #
If you don't know how to fill in the things between brackets, visit the wiki. You can find explanation on the commands page, they are called selector arguments.
Then place an armor stand on top called eg randomwarp. Make sure there is no space, you can use an anvil to rename.
Then attach a command block to the button or pressure plate with the command...
/execute @r[type=ArmorStand,name=randomwarp] ~ ~ ~ /setblock ~ ~ ~ redstone_block.
Remember to change the name if needed and make sure to change ArmorStand to armor_stand in the next update. (the ~ need to be entered as ~)
Now attach a repeater and another command block to every command block with a location, with the command /setblock # # # air
Here the coords should point at the block above the first command block.
RECAP:
A player stands on the pressure plate, a random armor stand places a block at his feet. This causes the player to to and the redstone block to become air. Ready to be activated next time.
1
I know you can do /tp @p <x coordinate> <y coordinate> <z coordinate> which will teleport the nearest player to the coordinates of x y and z that you set. Instead of @p you can @r to target random player @a to target all players and @e to target all entities. Hope that helps.
1
Hmmm, I guess what I'm looking for then is a command that would teleport everyone within x coordinates to a random location.
Here... let me show you the machine I am trying to replicate:
vanilla.survival.pw - Check out their spawn.
Here... let me show you the machine I am trying to replicate:
vanilla.survival.pw - Check out their spawn.