commit c8e552683917987f6332a312e250d8cee5bf3eb6 Author: sky Date: Wed Jun 12 03:13:12 2024 +0000 initial commit diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7974e12 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,44 @@ +{ "Lua.runtime.version": "Lua 5.2", + "Lua.diagnostics.globals": [ + "bit", + "colors", + "colours", + "commands", + "disk", + "fs", + "gps", + "help", + "http", + "keys", + "multishell", + "paintutils", + "parallel", + "peripheral", + "pocket", + "rednet", + "redstone", + "rs", + "settings", + "shell", + "term", + "textutils", + "turtle", + "vector", + "window", + "_CC_DEFAULT_SETTINGS", + "_HOST", + "printError", + "write", + "read", + "sleep" + ], + "Lua.runtime.builtin": { + "bit32": "enable", + "bit": "disable", + "utf8": "enable" + }, + "Lua.diagnostics.disable": [ + "undefined-field", + "deprecated" + ] +} \ No newline at end of file diff --git a/inventory_list.lua b/inventory_list.lua new file mode 100644 index 0000000..87e5bb4 --- /dev/null +++ b/inventory_list.lua @@ -0,0 +1,5 @@ +local inventories = table.pack(peripheral.find('inventories')) +local items = {} +for i,v in ipairs(inventories) do + table.insert(items, v.list()) +end \ No newline at end of file