Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- simple farmer by niseg
- print("put seeds in slot 1 and bone meal in slot 2")
- turtle.select(1)
- if turtle.detect() then turtle.dig() end
- while(turtle.getItemCount(2)>1) do
- turtle.place()
- sleep(0.5)
- turtle.select(2)
- turtle.place(2)
- sleep(0.5)
- turtle.select(1)
- turtle.dig()
- if(turtle.getItemCount(2)==1) then
- for i=3,16 do
- turtle.select(i)
- if turtle.compareTo(2) then
- local cnt=turtle.getItemCount(i)
- if cnt==64 then
- turtle.transferTo(2,63)
- else
- turtle.transferTo(2,cnt)
- end
- end
- end
- turtle.select(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment