Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function stripMine()
- turtle.refuel()
- for i = 0, 10,1 do
- threeTimesThree()
- if turtle.getFuelLevel() == 0 then
- return
- end
- end
- -- Return
- turtle.turnRight()
- turtle.turnRight()
- for i = 0, 10,1 do
- fwd()
- end
- end
- function threeTimesThree()
- --0 1 2
- --3 4 5
- --6 7 8
- --Start 4
- digFwd()
- -- 3
- turtle.turnLeft()
- digFwd()
- -- 0
- digUp()
- turtle.turnRight()
- turtle.turnRight()
- -- 1
- digFwd()
- -- 2
- digFwd()
- -- 5
- digDown()
- -- 8
- digDown()
- turtle.turnLeft()
- turtle.turnLeft()
- -- 7
- digFwd()
- -- 6
- digFwd()
- turtle.turnRight()
- turtle.up()
- turtle.turnRight()
- fwd()
- turtle.turnLeft()
- end
- function fwd()
- if turtle.detect() then
- return
- else
- turtle.forward()
- end
- end
- function digFwd()
- if turtle.detect() then
- turtle.dig()
- end
- turtle.forward()
- end
- function digUp()
- if turtle.detectUp() then
- turtle.digUp()
- end
- turtle.up()
- end
- function digDown()
- if turtle.detectDown() then
- turtle.digDown()
- end
- turtle.down()
- end
- stripMine()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement