initial commit

This commit is contained in:
sky
2024-06-12 03:13:12 +00:00
commit c8e5526839
2 changed files with 49 additions and 0 deletions

44
.vscode/settings.json vendored Normal file
View File

@@ -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"
]
}

5
inventory_list.lua Normal file
View File

@@ -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