Teleporter (IndustrialCraft 2)
- This page is about the IndustrialCraft 2 Teleport. For other uses, see .
The Teleporter is a machine in IndustrialCraft 2 that is used to instantly transport players, animals, and mobs over a distance to another Teleporter. The EU cost of the teleportation depends on the distance covered, and the weight of what is being teleported.
Powering the Teleporter
Due to the large amount of EU used to teleport, it is not sufficient to connect a Teleporter to the EU network with Cables; not enough EU could be provided quickly enough. Instead, the Teleporter must be placed directly touching an EU storage unit: BatBoxes, MFE's, MFSU's, LESU's, IESU's, and AESU's all work. The EU cost of teleporting will be shared equally between any EU storage units that are adjacent to the Teleporter.
Calculating the EU Cost
The Teleporter uses a somewhat complicated formula for determining how many EU's are needed to perform one teleportation: This formula has two key variables- weight, and distance.
The weight of an animal is always 500, and the weight of a mob is always 100. The weight of a player can be determined with the following formula: The pieces variable refers to the number of armor pieces that the player is wearing. The inv variable is determined by the formula, , for each stack of items in the player's inventory.
Example Calculation for Weight
The calculation for distance is as follows: where x, y, and z are the respective end coordinate subtracted by the starting coordinate.
Example Calculation for Distance
If the first Teleporter is placed at (25, 60, -40), and the second Teleporter is placed at (40, 35, -30), the total distance is:
Example Finished Calculation
Assuming the figures in the examples above, the total EU cost for one teleportation is:
Linking the Teleporter
Two Teleporters must be linked with a Frequency Transmitter before they can be used. To establish the teleportation link between them, they must both be right-clicked with the same Frequency Transmitter. A single Frequency Transmitter will always be linked to the Teleporter it is first right-clicked on. For instance, given Teleporters A, B, and C, if the Transmitter is right clicked on A, and then B, Teleporter A will link to B. If the same Transmitter is right clicked on C, Teleporter A will then link to C, instead.
Activating the Teleporter
When a linked and powered Teleporter receives a Redstone signal, it activates its teleportation field. Any player, mob, or animal that comes within one Block of the field is teleported and the EU cost is deducted from the power source. Care must be taken to avoid what is known as a Loop Bug, where two linked Teleporters are both powered and activated by Redstone at the same time. If this occurs, teleported entities will be continuously rapidly transferred between the two until one of the Teleporters runs out of power. To avoid this, a Redstone RS latch (to ensure only one of the Teleporters is activated at a time) or pulse limiter (to ensure that the Redstone pulse ends before the other Teleporter's can begin) should be used. RedPower 2 offers both an RS Latch circuit and a Pulse Former circuit that can easily accomplish these tasks.