Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- _____
- -- | ___| _ _ __ ___
- -- | |_ | | | | '_ \ / __|
- -- | _|| |_| | | | | (__
- -- |_| \__,_|_| |_|\___|
- --
- select = function(id)
- return turtle.select(id)
- end
- count = function(id)
- return turtle.getItemCount(id)
- end
- move = function(id, nb)
- return turtle.transferTo(id, nb)
- end
- function stuff()
- turtle.craft()
- turtle.drop()
- i = i+1
- print('Et de '..i..' !')
- end
- -- __ __ _ ____
- -- | \/ | __ _(_)_ __ / /\ \
- -- | |\/| |/ _` | | '_ \| | | |
- -- | | | | (_| | | | | | | | |
- -- |_| |_|\__,_|_|_| |_| | | |
- -- \_\/_/
- stop=false
- i = 0
- select(1)
- while(stop==false)do
- if(count(1)>0)then
- if(count(2)>0)then
- stuff()
- else
- if(turtle.suckDown()==true)then
- stuff()
- end
- end
- else
- if(turtle.suckDown()==true)then
- if(turtle.suckDown()==true)then
- stuff()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement