Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- function chop()
- while turtle.compare(15) do
- turtle.dig()
- turtle.digUp()
- turtle.up()
- end
- end
- function down()
- while not turtle.detect(not turtle.detectDown()) do
- turtle.down()
- end
- end
- function drop()
- for i=1, 4 do
- turtle.select(i)
- turtle.drop()
- end
- end
- function replant()
- if turtle.detect(turtle.compare(16)) then
- turtle.up()
- else
- if not turtle.detect(turtle.detectDown()) then
- turtle.select(16)
- turtle.suckDown()
- turtle.drop(turtle.getItemCount(16) -2)
- turtle.place()
- replant()
- end
- end
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement