Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = turtle
- -- up = tin
- -- down = copper
- -- now recipe for 4 tin and 5 copper
- function slotC(i)
- if t.getItemCount(i) < 1 then
- t.select(i)
- t.suckUp()
- else
- sleep(0.5)
- end
- end
- function slotT(i)
- if t.getItemCount(i) < 1 then
- t.select(i)
- t.suckDown()
- else
- sleep(0.5)
- end
- end
- function slotD(i)
- if t.getItemCount(i) < 1 then
- t.select(i)
- t.craft()
- t.drop()
- else
- sleep(0.5)
- end
- end
- function craft() -- recipe
- slotT(1)
- slotC(2)
- slotT(3)
- slotC(5)
- slotT(6)
- slotC(7)
- slotT(9)
- slotC(10)
- slotT(11)
- slotD(4)
- end
- while true do
- craft()
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement