Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dig()
- while not turtle.forward() do
- turtle.dig()
- end
- turtle.forward()
- turtle.digUp()
- end
- local branches=0
- print("How many branches would you like?")
- branches=read()
- print("Now mining " ..branches.. " branches!")
- for i=1,branches do
- for i=1,3 do
- dig()
- end
- turtle.turnRight()
- for i=1,8 do
- dig()
- end
- turtle.turnRight()
- turtle.turnRight()
- for i=1,8 do
- turtle.forward()
- end
- for i=1,8 do
- dig()
- end
- turtle.turnRight()
- turtle.turnRight()
- for i=1,8 do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- print("Done!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement