Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.wrap("bottom")
- term.clear()
- term.setCursorPos(1,1)
- slot = {2,4,10,12,14,17,19,21,23,28,30,32,37,39,41,47,49}
- function tablelength(T)
- local count = 0
- for _ in pairs(T) do count = count + 1 end
- return count
- end
- function isSetted(slotnum)
- local tableInfo = p.getStackInSlot(slotnum)
- if tableInfo == nil then
- return false
- else
- return true
- end
- end
- function make(slotnum)
- if isSetted(slotnum) == false then
- turtle.select(1)
- turtle.dropDown()
- p.pullIntoSlot("down",1,1,slotnum)
- end
- sleep(1)
- end
- while true do
- for i = 1,tablelength(slot) do
- make(slot[i])
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment