diff --git a/Component-RedstoneInMotion.md b/Component-RedstoneInMotion.md index a02d2ef..22879f2 100644 --- a/Component-RedstoneInMotion.md +++ b/Component-RedstoneInMotion.md @@ -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 - print(reason) + if x then + print(reason) + print("Block location: " .. x .. ", " .. y .. ", " .. z) + else + print(reason) + end end -- using the sides table: cc.simulate(sides.west)