Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local items = {}
- local sTime
- function konstructor()
- print("Delay in Tickts:")
- sTime = read()
- items[1] = 6
- items[2] = 10
- items[3] = 3
- items[4] = 4
- items[5] = 3
- items[6] = 6
- items[7] = 12
- items[8] = 8
- main()
- end
- function main()
- local muti = 10
- while true do
- for i=0,7 do
- if not turtle.suck() then
- break
- end
- end
- for i=1,8 do
- local tmp = Math.floor(turtle.getItemCount(i)/items[1])
- multi = Math.min(tmp,multi)
- end
- if multi >0 then
- craft(multi)
- end
- os.queueEvent("randomEvent")
- os.pullEvent()
- os.sleep(sTime)
- end
- end
- function craft(pMultiplicator)
- end
- konstructor()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement