Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- Created by IntelliJ IDEA.
- -- User: jonas
- -- Date: 24.03.2019
- -- Time: 16:53
- -- To change this template use File | Settings | File Templates.
- --
- function harvest()
- turtle.dig()
- turtle.forward()
- local x=0
- while turtle.compare() do
- turtle.digUp()
- turtle.up()
- x = x +1
- end
- for i=0, x, 1 do
- turtle.down()
- end
- turtle.back()
- return
- end
- while true do
- if turtle.detect() then
- if turtle.compare() then
- harvest()
- end
- else
- turtle.select(2)
- turtle.place()
- turtle.select(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement