Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check()
- if turtle.getItemCount(1) < 1 then
- turtle.select(1)
- turtle.turnLeft()
- turtle.suck()
- turtle.turnRight()
- end
- end
- function plant()
- --vvvvvvvvvvvturtle.dig()
- turtle.select(1)
- turtle.place()
- end
- function bonemeal()
- turtle.select(16)
- turtle.place()
- turtle.select(1)
- end
- function drop()
- for i = 2,15 do
- if turtle.getItemCount(i) > 0 then
- turtle.select(i)
- turtle.dropDown()
- end
- end
- end
- -- Main --
- while true do
- turtle.select(16)
- turtle.suckUp()
- check()
- for i = 1,63 do
- check()
- turtle.dig()
- plant()
- bonemeal()
- turtle.suck()
- turtle.suck()
- end
- drop()
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment