Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package.preload["storage"]=(function(...)require("ulib")print("Storage Engine v1")local e={"create:zinc_nugget","createastral:copper_pickaxe","mcdw:sword_iron_sword_var","minecraft:arrow","minecraft:crossbow","minecraft:gold_nugget","minecraft:iron_nugget","minecraft:saddle","tconstruct:copper_nugget","techreborn:tin_nugget",}local e=0
- local n
- local r={}for e in(peripherals.find("inventory")).iterate()do
- r[e.name]=e
- if not n or e.size()>=n.size()then n=e end
- print("Found container \""..e.name.."\" of size",e.size())end
- print("Set interface container to \""..n.name.."\"")print("Startup complete")end)package.preload["ulib"]=(function(...)local e;if(tonumber((_VERSION or''):match('[%d.]*$'))or 0)<5.3 then local r,n=pcall(require,'compat53.module');if r then e=n end end;local r=e and e.ipairs or ipairs;peripherals={}Peripheral={}Inventory={}List={}function peripherals.find(e)local n={}for r,e in r({peripheral.find(e)})do
- e.name=peripheral.getName(e)n[r]=e
- end
- return n
- end
- function List.iterator(n)local e=0
- return function()e=e+1
- if e<=#n then return n[e]end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement