Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("which recipe? (1=2x2, 2=3x3")
- whichRecipe=read()
- t.place("up","custom_chest")
- t.place("front","custom_chest")
- print("place items to be crafted in the chest above me")
- read()
- chestAbove=peripheral.wrap("top")
- continueCrafting=true
- if whichRecipe=="1" then
- while continueCrafting do
- t.suck("up",64,1)
- t.suck("up",64,2)
- t.suck("up",64,5)
- t.suck("up",64,6)
- if turtle.getItemCount(1)>0 and turtle.getItemCount(2)>0 and turtle.getItemCount(5)>0 and turtle.getItemCount(6)>0 then continueCrafting=true else continueCrafting=false end
- if continueCrafting==true then
- turtle.craft(64)
- for j=1,16 do
- if turtle.getItemCount(j)>0 then
- t.select(j)
- turtle.drop()
- end
- end
- end
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Crafting Complete")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement