User blog:Babyrabbit1029/improved teleporter

improved teleporter
If you've done a lot with a world in the game, you probably find large distances between projects. The fastest mode of travel is teleporting with command blocks. However, a simple one-command-block teleport lacks the ambiance that Mojang has invested in Minecraft. The system needs a few special effects.

example
The following is my preference for an improved teleporter. In short, the button runs two "special effect" command blocks, and starts a series of ten repeaters, which gives a five second delay before running the "teleport" command block.

in detail
My setup was two 3x3 teleport pads, surrounded by double-height iron gates as fences to aid the transport of leashed mobs. You need the exact coordinates of both locations before starting. The circuit under the floor is as follows: A simple teleport may be all that's desired. I use the above because it places mutiple targets in approximately the same pattern as they were standing on the origin.
 * The effect block's code: (X, Y, and Z are the exact coordinates of the origin teleport pad's center.)
 * The playsound block's code: (X, Y, and Z are the exact coordinates of the origin teleport pad's center.)
 * Ten repeaters are placed in series and each set to max delay. This gives a five second delay, giving the effects time to run, and gives the player a chance to step off the pad before porting.
 * The teleport block's code: execute @e[x=X,y=Y,z=Z,r=3] ~ ~ ~ tp ~A ~B ~C (X, Y, and Z are the exact coordinates of the origin teleport pad's center.) (A, B, and C are the subtracted differences between the origin and destination coordinates, eg x1-x2=A y1-y2=B ...)