Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local SLOT_COUNT = 16
- function getItemIndex(itemName)
- for slot = 1, SLOT_COUNT, 1 do
- local item = turtle.getItemDetail(slot)
- if(item ~= nil) then
- if(item["name"] == itemName) then
- return slot
- end
- end
- end
- return 17
- end
- while true do
- turtle.select(1)
- turtle.suck()
- if (turtle.getItemCount() > 8) then
- for slot = 1, SLOT_COUNT, 1 do
- if (slot < 12 and not (slot == 4 or slot == 8)) then
- --print("Transfering 1 item to slot: " .. slot)
- turtle.transferTo(slot, 1)
- end
- end
- turtle.craft(1)
- turtle.select(getItemIndex("industrialforegoing:dryrubber"))
- turtle.dropUp()
- end
- end
Add Comment
Please, Sign In to add comment