Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 20140827 first draft, untested
- wid=13
- flip=0
- slot=1
- block=1
- exit=0
- for x=1, wid do
- for y=1, wid do
- for z=1, wid do
- turtle.select(slot)
- if not turtle.forward() then
- turtle.dig()
- turtle.forward()
- end
- turtle.digDown()
- turtle.placeDown()
- block=block+1
- if block==65 then
- block=1
- slot=slot+1
- if slot=17 then
- exit=1
- z=wid
- y=wid
- x=wid
- end
- end
- end
- if flip==0 then
- flip=1
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- elseif flip==1 then
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- turtle.up()
- turtle.turnRight()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement