Transporter (legacy) - LemADEC/WarpDrive GitHub Wiki
Warning: this page applies to the legacy Transporter system, up to version 1.3.36.
Introduction
Instead of doing spacewalks or getting your ship very close to the ground/a space body, you can teleport there!
Note: If relative coordinates enabled in config, enter relative coordinates.
What you'll need
- Transporter
- ComputerCraft Computer
- Coordinates of source location
- Coordinates of target location
- Reliable power source
Basic Setup
Place the transporter, and place the power source and the computer next to it. On the computer make this program:
transporter = peripheral.wrap("side")
transporter.source(x,y,z)
transporter.dest(x,y,z)
transporter.lock()
transporter.energize()
--replace side with side and x,y,z with coordinates
Functions
Function | Return | Description |
---|---|---|
source(int x, int y, int z) | int x, int y, int z | sets the coordinates to teleport from |
dest(int x, int y, int z) | int x, int y, int z | sets the coordinates to teleport to |
lock() | float strength | locks the source and dest coordinates in |
release() | null | releases the current lock |
lockstrength() | float strength | returns the current lock strength |
energize() | int entities_transported | attempts to teleport all entities at source to dest |
powerboost(int amount) | int power | sets the level of power to use (1 being default) |
getEnergyRequired() | int energy | returns energy required to teleport single entity with settings |