CarriageController - planetguy32/RemainInMotion GitHub Wiki
Carriage controllers move carriages under ComputerCraft (or OpenComputers, if CC is installed and an adaptor is used) control. They expose the following methods:
- move, which takes three arguments: the first is the direction to move (0 to 5, in order down, up, north, south, west, east); the second, whether to simulate motion or to actually move the carriage; the third, whether to leave the carriage controller in place. Calling this method causes the carriage to move (or check if it can move) one block in the specified direction.
- status, which takes no arguments. It returns the following arguments:
- The energy stored
- Whether the last move command succeeded
- If the last move failed, a human-readable error message
- If the last move failed due to obstruction, the X, Y and Z coordinates of the obstruction (as 4th, 5th and 6th elements).
They are crafted by surrounding a carriage motor with 8 redstone repeaters.