Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadSlot(s)
- print('Loading slot ' .. s )
- turtle.select(s)
- if not turtle.suck() then
- abort()
- end
- end
- function abort()
- for i = 2, 16 do
- turtle.select(i)
- turtle.drop()
- end
- os.sleep(5)
- os.reboot()
- end
- function makeItems()
- turtle.select(16)
- while turtle.craft() do
- turtle.dropUp()
- if turtle.getItemCount(2) < 1 then
- abort()
- end
- if turtle.getItemCount(5) < 1 then
- abort()
- end
- end
- end
- loadSlot(2)
- loadSlot(5)
- makeItems()
- abort()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement