Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --route les minerais d'une quarry vers fours, crusher et stockage
- routed=0
- notCrushable= {["thaumcraft:ore_cinnabar"]=true}--list des minerais non crushables
- p = peripheral.wrap("bottom")
- while true do
- for k=1,p.size(),1 do
- item = p.getItemMeta(k)
- c1,c2=term.getCursorPos()
- term.setCursorPos(1,1)
- print(routed.." items routeds.")
- term.setCursorPos(c1,c2)
- if(item) then
- routed=routed+1
- if(notCrushable[item.name] == true) then
- p.pushItems("south",k)
- print("routing "..item.displayName.." to furnace")
- elseif(string.find(item.displayName," ore")) then
- p.pushItems("north",k)
- print("routing "..item.displayName.." to crusher")
- else
- p.pushItems("east",k)
- print("routing "..item.displayName.." to chests")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement