Component: Redstone in Motion

This component represents a Carriage Controller block from the Redstone in Motion mod.

Important: this component is only available if OpenComponents is also installed!
Contents of OpenComponents have already been added into OpenComputers.

Component name: carriage.

Callbacks:

Example use:

snippet.lua
local component = require("component")
local event = require("event")
local sides = require("sides")
 
local cc = component.carriage -- get primary carriage controller
cc.move("up")
local _, _, result, reason, x, y, z = event.pull("carriage_moved")
if not result then
  if x then
    print(reason)
    print("Block location: " .. x .. ", " .. y .. ", " .. z)
  else
    print(reason)
  end
end
-- using the sides table:
cc.simulate(sides.west)

Contents