Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --if not fs.exists("/libs") then--{{{
- -- fs.makeDir("/libs")
- --end--}}}
- --
- --function update_lib(pastebin_id, dest_path)--{{{
- -- if fs.exists(dest_path) then
- -- fs.delete(dest_path)
- -- end
- -- shell.run("pastebin get " .. pastebin_id .. " " .. dest_path)
- -- os.loadAPI(dest_path)
- --end--}}}
- --
- --update_lib("n1S2GpfD", "libs/sorterAPI")
- --
- Item = {
- uuid = '',
- name = '',
- aspects = {},
- }
- Item_mt = {__index = Item}
- function Item:create()
- local new_item = {}
- setmetatable(new_item, Item_mt)
- return new_item
- end
- ItemDB = {
- itemsByName = {},
- itemsByUUID = {},
- }
- function ItemDB:addNewItem(name, id, meta, aspects)
- local item = Item:create()
- item.name = name
- item.uuid = sorterAPI.getUUID(id, meta)
- item.aspects = aspects
- self:addItem(item)
- end
- function ItemDB:addItem(item)
- self.itemsByUUID[item.uuid] = item
- self.itemsByName[item.name] = item
- end
- db = ItemDB
- db:addNewItem('Charcoal', 263, 1, {['ignis'] = 2, ['lignum'] = 1, ['potentia'] = 2})
- db:addNewItem('Torch', 50, 0, {['lux'] = 1})
- db:addNewItem('Copper Nuggets', 21261, 243, {['metallum'] = 1})
- db:addNewItem('Chiseled Sandstone', 24, 1, {['praecantatio'] = 1, ['saxum'] = 2, ['solum'] = 3})
- db:addNewItem('Smooth Sandstone', 24, 2, {['carus'] = 1, ['saxum'] = 2, ['solum'] = 3})
- db:addNewItem('Bone Meal', 351, 15, {['mortuus'] = 1})
- db:addNewItem('Wheat', 296, 0, {['messis'] = 2, ['victus'] = 2})
- db:addNewItem('Music Disc - Stal', 2263, 0, {['carus'] = 4, ['malum'] = 4, ['sonus'] = 12})
- db:addNewItem('Soul Sand', 88, 0, {['animus'] = 1, ['solum'] = 1, ['vinculum'] = 1})
- db:addNewItem('Oak Wood', 17, 0, {['lignum'] = 4})
- db:addNewItem('Seeds', 295, 0, {['herba'] = 1, ['permutatio'] = 1})
- db:addNewItem('Bowl', 281, 0, {['vacuos'] = 1})
- db:addNewItem('Dirt', 3, 0, {['solum'] = 3})
- db:addNewItem('Trapdoor', 96, 0, {['motus'] = 1, ['lignum'] = 1})
- db:addNewItem('Feather', 288, 0, {['volito'] = 2, ['aura'] = 2})
- db:addNewItem('Cobblestone', 4, 0, {['saxum'] = 1, ['fractus'] = 1})
- db:addNewItem('Flint', 318, 0, {['instrumentum'] = 1, ['saxum'] = 1})
- db:addNewItem('Arrow', 262, 0, {['telum'] = 1, ['aura'] = 1, ['volito'] = 1})
- db:addNewItem('Carrot', 391, 0, {['visum'] = 2, ['messis'] = 2})
- db:addNewItem('Nether Wart', 372, 0, {['ignis'] = 1, ['mutatio'] = 1, ['fungus'] = 1})
- db:addNewItem('Wool', 35, 0, {['pannus'] = 4})
- db:addNewItem('Refined Iron', 30249, 0, {['metallum'] = 8})
- db:addNewItem('Nether Quartz', 406, 0, {['purus'] = 1, ['saxum'] = 1, ['visum'] = 1, ['vitreus'] = 1})
- db:addNewItem('Diamond', 264, 0, {['carus'] = 4, ['purus'] = 4, ['vitreus'] = 12})
- db:addNewItem('Glass', 20, 0, {['vitreus'] = 2})
- db:addNewItem('Paper', 339, 0, {['aqua'] = 2, ['cognito'] = 2, ['messis'] = 2})
- db:addNewItem('Button', 77, 0, {['machina'] = 1, ['saxum'] = 2})
- db:addNewItem('Lever', 69, 0, {['imperito'] = 1, ['saxum'] = 1, ['herba'] = 1, ['fractus'] = 1, ['victus'] = 1})
- db:addNewItem('String', 287, 0, {['vinculum'] = 1, ['pannus'] = 1, ['bestiola'] = 1})
- db:addNewItem('Golden Apple', 322, 0, {['messis'] = 2, ['metallum'] = 6, ['sano'] = 4, ['praecantatio'] = 2, ['victus'] = 2})
- db:addNewItem('Ender Pearl', 368, 0, {['alienis'] = 4, ['praecantatio'] = 4, ['vitreus'] = 4})
- db:addNewItem('Redstone Repeater', 356, 0, {['tempus'] = 1, ['saxum'] = 5, ['potentia'] = 2, ['machina'] = 2})
- db:addNewItem('Obsidian', 49, 0, {['tenebris'] = 1, ['ignis'] = 2, ['saxum'] = 5})
- db:addNewItem('Crafting Table', 58, 0, {['fabrico'] = 4, ['lignum'] = 3})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement