diff options
author | ubq323 <ubq323@ubq323.website> | 2023-01-01 17:53:56 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2023-01-01 17:53:56 +0000 |
commit | 9da76f0a54f195e55062fde9859fdef7cac98cba (patch) | |
tree | f3b579710297a3542c816a83e56df9bf26d8cdc5 | |
parent | fde3b81320a4d8a5f395029163be8363c01369ab (diff) |
movewalt
-rw-r--r-- | movewalt.lua | 8 |
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 + |