Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Pour voir le setup : http://image.noelshack.com/fichiers/2016/20/1463694134-2016-05-19-23-38-30.png//
- local t = turtle
- local i = 1
- local todrop = 1
- local c = 0
- while true do
- t.turnLeft()
- for i = 1, 5 do
- t.select(i)
- t.suck()
- if t.getItemCount(i) == 0 then
- break
- end
- todrop = i
- end
- t.turnRight()
- for i = 1, todrop do
- t.select(i)
- t.dropUp()
- end
- t.turnRight()
- for i = 1, 5 do
- t.select(i)
- c = t.getItemCount() + c
- end
- if c == 0 then
- for i = 1, 16 do
- t.select(i)
- t.suckDown()
- t.drop()
- end
- else
- for i = 6, 16 do
- t.select(i)
- t.suckDown()
- t.drop()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement