Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.refuel()
- local spot = 1
- while true do
- while turtle.detectDown() == false and
- turtle.detect() == false do
- if turtle.getItemCount() == 0
- then spot = spot + 1
- turtle.select(spot)
- end
- turtle.placeDown()
- turtle.forward()
- end
- local wasdown = false
- if turtle.detectDown() then
- turtle.back()
- wasdown = true
- end
- turtle.turnLeft()
- if wasdown then turtle.forward()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement