Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local sleepTime = 0.05
- while true do
- if turtle.getItemCount(16) < 1 then
- for i = 0, 8, 4 do
- for j = 1, 3 do
- if turtle.getItemCount(i+j) < 1 then
- turtle.select(i+j)
- while not turtle.suckUp(1) do
- os.sleep(2)
- end
- end
- end
- end
- turtle.select(16)
- turtle.craft(1)
- end
- if rs.getAnalogInput('bottom') == 0 then
- turtle.drop(1)
- end
- os.sleep(sleepTime)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement