Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 3h, 22l, 12w
- -- for each layer (3)
- -- for each column (12)
- -- mine out each row (22)
- function fwd()
- if turtle.detect() then
- turtle.dig()
- end
- turtle.forward()
- end
- function left()
- turtle.turnLeft()
- end
- function right()
- turtle.turnRight()
- end
- -- Main Program
- left()
- for k=1, 3 do
- for l=1, 11 do
- for c=1, 11 do
- fwd()
- end
- right()
- fwd()
- right()
- for c=1, 11 do
- fwd()
- end
- left()
- fwd()
- left()
- end
- right()
- for i=1, 21 do
- fwd()
- end
- right()
- end
Advertisement
Add Comment
Please, Sign In to add comment