initial commit
This commit is contained in:
44
.vscode/settings.json
vendored
Normal file
44
.vscode/settings.json
vendored
Normal 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
5
inventory_list.lua
Normal 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
|
||||||
Reference in New Issue
Block a user