Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mine(x)
- counter = 0
- repeat
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- counter = counter + 1
- until counter == x
- end
- function turnAround()
- turtle.turnRight()
- turtle.turnRight()
- end
- function moveForward(x)
- counter = 0
- repeat
- turtle.forward()
- counter = counter + 1
- until counter == x
- end
- function placeTorch()
- turtle.up()
- turtle.select(2)
- turtle.back()
- turtle.place()
- turtle.down()
- end
- function stripMine(x)
- for i = 0, x, +1
- do
- mine(3)
- turtle.turnRight()
- mine(5)
- placeTorch()
- turnAround()
- moveForward(4)
- mine(5)
- placeTorch()
- turnAround()
- moveForward(4)
- turtle.turnLeft()
- end
- end
- turtle.refuel()
- stripMine(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement