Turtle Teleport - theoriginalbit/MoarPeripherals GitHub Wiki

Turtle Teleport
Type: turtle_teleport
Name: MoarPeripherals:blockTurtleTeleport

The Turtle Teleport is a peripheral block that offers functions capable of warping a turtle around the world. The turtle must be placed directly above the teleporter, and the cost of the movement will be subtracted from the turtle's own fuel reserves. The amount used is equal to the length of the vector between the two points multiplied by the value in Moarperipherals.cfg (which defaults to 1.5).

This MoarPeripherals version of the teleporter is similar to that seen in the MiscPeripherals mod (which is only compatible with older builds of ComputerCraft).

##Functions

Name Returns Description
getTurtleLocation() boolean turtlePresent, table location / string errorMessage The numerically-indexed table returned contains the turtle's world co-ordinates. A string providing an error is returned instead if no turtle is above the teleporter.
requiredFuel(number x, number y, number z) number fuelAmount Returns the amount of fuel required to teleport the turtle to the specified world co-ordinates. Returns 0 if no turtle is present above the teleporter.
teleportTo(number x, number y, number z) boolean success [, string error] Teleports the turtle. On failure, a string providing details is included with the output.

##Recipe

Recipe

##Version History

Build Date Details
v1.5.0 15 December 2014 Initial release.