Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- path = {1,1,2,1,1,2,1,0,1,0,1,2,1,1,2,1,1,2,1,1,1,1,0,4}
- current = 0
- if turtle.inspect() == true then
- botania()
- else
- break
- end
- function botania()
- turtle.suckDown(16)
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- current = 1
- for i = 0, #path do
- move()
- end
- end
- function move()
- if path[current] == 0 then
- turtle.turnLeft()
- elseif path[current] == 0 then
- turtle.dig()
- turtle.forward()
- elseif path[current] == 0 then
- turtle.turnRight()
- elseif path[current] == 4 then
- turtle.forward()
- for i = 1, 15 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- else
- print("not pathed")
- end
- current = current + 1
- end
- function dig()
- turtle.select(1)
- turtle.digDown()
- turtle.placeDown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement