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.place()
- turtle.down()
- end
- function stripMine(x)
- counter = 0
- repeat
- mine(3)
- turtle.turnRight()
- mine(5)
- placeTorch()
- turnAround()
- moveForward(5)
- mine(5)
- placeTorch()
- turnAround()
- moveForward(5)
- turtle.turnLeft()
- counter = counter + 1
- until counter == x
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement