Updated Component RedstoneInMotion (markdown)

Florian Nücke 2014-02-02 15:23:56 -08:00
parent a95affb85d
commit 67f8dc36d7

@ -18,9 +18,14 @@ Example use:
```lua
local cc = component.carriage -- get primary carriage controller
cc.move("up")
local result, reason = event.pull("carriage_moved")
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)