From 67f8dc36d73038700a6271431e872fba192a947d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sun, 2 Feb 2014 15:23:56 -0800 Subject: [PATCH] Updated Component RedstoneInMotion (markdown) --- Component-RedstoneInMotion.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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)