Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = turtle
- print("Remeber to put torches in slot 1")
- write("How far shall I go master? ")
- dis = tonumber(read())
- currDist = 0
- for i=1, dis do
- t.dig()
- t.forward()
- t.digUp()
- for i=1, 10 do
- if t.detectUp()==true then
- turtle.digUp()
- end
- end
- if i % 7 == 0 then
- t.select(1)
- t.turnLeft()
- t.turnLeft()
- t.place()
- t.turnRight()
- t.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement