Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fell()
- while(turtle.forward()==false) do
- turtle.dig()
- end
- while(turtle.detectUp()) do
- turtle.digUp()
- turtle.up()
- end
- while(turtle.down()) do end
- while(turtle.back()==false) do end
- end
- function place()
- turtle.select(2)
- turtle.place()
- turtle.select(1)
- end
- function collect()
- turtle.suck()
- while(turtle.down()==false) do end
- turtle.suckDown()
- while(turtle.up()==false) do end
- end
- while(true) do
- if(turtle.compare()) then
- fell()
- place()
- sleep(5)
- collect()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement