-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathuniversalfast.lua
More file actions
1 lines (1 loc) · 820 Bytes
/
universalfast.lua
File metadata and controls
1 lines (1 loc) · 820 Bytes
1
a,b=component,computer c=a.proxy(a.list("po")())local d,e,f,g,h,i,j,k,l,m,n,o,p=ipairs,assert,c.getAllStacks,c.getFluidInTank,c.transferItem for q=0,5 do p=c.getInventoryName(q)i=i or p=="gt.blockmachines"and#g(q)>0 and q j=j or(p=="tile.extrautils:chestFull"or p=="tile.etfuturum.barrel")and q k=k or p=="tile.appliedenergistics2.BlockDrive"and q l=l or not p and pcall(h,q,q,0,1,1)and q end e(j,"Error: No NC inventory found.")e(k,"Error: No drive found.")e(l,"Error: No interface found.")while""do m=f(j)if m[1]then while""do n=f(k)if n[1].storedItemTypes<1 and not(n[2]and((n[2].storedFluidTypes or 0)>0 or not n[2].storedFluidTypes and#n[2].tag>48)or i and(function()o=g(i)for r=1,#o do if o[r].amount>0 then return""end end end)())then for r in d(m)do repeat until 0<h(j,l,1,r,(r+l-1)%9+1)end break end end end end