-
Notifications
You must be signed in to change notification settings - Fork 12
CarriageController
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.
Carriage Drives are used to move carriages. They only interface with carriages that are directly adjacent. Only one carriage can be connected to a drive at a time (barring closed faces).
Right-clicking a drive with a screwdriver toggles the drive between normal and continuous mode - in normal mode, a redstone signal must be turned off and on again before the carriage will move again, whereas in continuous mode the carriage will move indefinitely given a constant signal.
Faces of a carriage drive can be toggled between open and closed by sneak-right-clicking them with a wrench. Carriages next to a drive's closed faces are never moved, and are not considered adjacent.
If a drive was placed by a player and then moved without the area unloading or moving, the player remains associated with the carriage. Should a problem occur and motion abort, a message explaining the problem will be sent to that player.
Hardcore mode increases the cost of carriage drives by making them require redstone flux to move. The exact parameters may be adjusted in configuration.