Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dig()
- for i = 1,60 do
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- end
- end
- print("Digging you a quarry!")
- write("Which way should I turn? ")
- direction = read()
- if direction == "right" then
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- for k = 1,4 do
- dig()
- turtle.turnRight()
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- end
- end
- if direction == "left" then
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- for k = 1,4 do
- dig()
- turtle.turnLeft()
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement