mirror of
https://github.com/mt-mods/home_workshop_modpack.git
synced 2025-07-01 16:00:41 +02:00
add filesystem
This commit is contained in:
7
computers/commands/help/conf.json
Normal file
7
computers/commands/help/conf.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "help",
|
||||
"license": "MIT",
|
||||
"version": 0.1,
|
||||
"engine": 0.4,
|
||||
"help": "prints out help"
|
||||
}
|
9
computers/commands/help/init.lua
Normal file
9
computers/commands/help/init.lua
Normal file
@ -0,0 +1,9 @@
|
||||
function help(pos, input, data)
|
||||
local output = ""
|
||||
for command, def in pairs(computers.registered_confs) do
|
||||
output = output .. "\n" .. command .. ": " .. def.help
|
||||
end
|
||||
return output
|
||||
end
|
||||
|
||||
return help
|
Reference in New Issue
Block a user