Posted 25 July 2013 - 02:03 PM
I made a program where you put wheat a chest at the top then it autocrafts as much as it can into bread
then puts it into a chest at the bottom
here is the pastebin:http://pastebin.com/X3bDvFXA
If you don't wanna use pastebin here is the code:
Ps: Thanks ZudoHackz for teaching me how to use spoilers ;)/>
then puts it into a chest at the bottom
here is the pastebin:http://pastebin.com/X3bDvFXA
If you don't wanna use pastebin here is the code:
Spoiler
function sort(slot)
turtle.select(slot)
turtle.suckUp()
current = turtle.getItemCount(slot)
aim = eachSlot + 2
while current >= aim do
turtle.dropUp(1)
current = turtle.getItemCount(slot)
end
end
turtle.select(1)
if turtle.suckUp() == false then
sleep(10)
end
allWheat = turtle.getItemCount(1)
unEachSlot = allWheat / 3
eachSlot = math.floor(unEachSlot)
print(eachSlot)
turtle.dropUp()
sort(5)
sort(6)
sort(7)
turtle.select(1)
turtle.craft(eachSlot)
turtle.dropDown()
Ps: Thanks ZudoHackz for teaching me how to use spoilers ;)/>