summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--movewalt.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/movewalt.lua b/movewalt.lua
index 800f575..0aff3ae 100644
--- a/movewalt.lua
+++ b/movewalt.lua
@@ -1,4 +1,12 @@
+while true do
for i=1,6 do turtle.select(i) turtle.dig() turtle.up() end
turtle.select(7) turtle.dig() turtle.select(1) turtle.place()
for i=1,6 do turtle.up() turtle.select(i) turtle.dig() turtle.select(i+1) turtle.place() end
for i=1,5 do turtle.up() turtle.select(i) turtle.place() end
+
+while not turtle.detectDown() do turtle.down() end
+turtle.turnRight() turtle.forward() turtle.turnLeft()
+if not turtle.detect() then error"the" end
+
+end
+