Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- turtle.select(1)
- sleep()
- if turtle.getItemCount() <1 then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.suck()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- if turtle.detect() == false then
- turtle.place()
- end
- if turtle.inspect() == false then
- turtle.dig()
- turtle.forward()
- end
- turtle.select(2)
- while turtle.compareUp() == true do
- turtle.digUp()
- turtle.up()
- end
- if turtle.compareUp() ~= true then
- while turtle.detectDown() ~= true do
- turtle.down()
- end
- if turtle.detectDown() == true then
- turtle.back()
- turtle.turnLeft()
- end
- for i = 2, 16 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.turnRight()
- turtle.select(1)
- end
- end
- shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement