Posted 13 April 2014 - 02:25 AM
Hi! Im trying to make program for craft turtle but today is first time im actually trying to make my own program.
So here is the problem, i got this piece of code:
Currently im making compressed cobblestone with turtles with chest on top with cobblestones and chest below turtle to put compressed cobble in. But the problem is that sometimes chest goes empty and some inventory slots are left empty on turtle and it makes stuff like slabs, walls or whatever.
So id like to know how to make it like that it checks that all those 9 slots have anything in them before it continues to turtle.craft()
I have read tutorials and tried to google it but cant find help for this :(/>
Thanks and sorry for possible typos :D/>
So here is the problem, i got this piece of code:
while true do
turtle.select(11)
turtle.suckUp()
turtle.select(10)
turtle.suckUp()
turtle.select(9)
turtle.suckUp()
turtle.select(7)
turtle.suckUp()
turtle.select(6)
turtle.suckUp()
turtle.select(5)
turtle.suckUp()
turtle.select(3)
turtle.suckUp()
turtle.select(2)
turtle.suckUp()
turtle.select(1)
turtle.suckUp()
turtle.craft()
turtle.dropDown()
sleep(0.1)
end
Currently im making compressed cobblestone with turtles with chest on top with cobblestones and chest below turtle to put compressed cobble in. But the problem is that sometimes chest goes empty and some inventory slots are left empty on turtle and it makes stuff like slabs, walls or whatever.
So id like to know how to make it like that it checks that all those 9 slots have anything in them before it continues to turtle.craft()
I have read tutorials and tried to google it but cant find help for this :(/>
Thanks and sorry for possible typos :D/>