Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inv=peripheral.wrap("top")
- for i=1,16 do
- turtle.select(i)
- turtle.dropDown()
- end
- while true do
- for i=1,inv.size() do
- slotmeta=inv.getItemMeta(i)
- if slotmeta~=nil and (slotmeta.name=="tcomplement:storage" or slotmeta.name=="minecraft:coal_block") then
- inv.pushItems("down",i,1,1)
- break
- end
- end
- turtle.select(1)
- if turtle.getItemCount(1)>0 then
- turtle.craft()
- sleep(0.5)
- while turtle.getItemCount(1)>0 do
- if redstone.getInput("bottom")==false then
- turtle.dropDown(1)
- sleep(0.5)
- else
- sleep(1)
- end
- end
- else
- sleep(5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement