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/pwd/conf.json
Normal file
7
computers/commands/pwd/conf.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "pwd",
|
||||
"license": "MIT",
|
||||
"version": 0.1,
|
||||
"engine": 0.4,
|
||||
"help": "list the current path"
|
||||
}
|
7
computers/commands/pwd/init.lua
Normal file
7
computers/commands/pwd/init.lua
Normal file
@ -0,0 +1,7 @@
|
||||
function pwd(pos, input, data)
|
||||
local output = data.element.pwd
|
||||
if output == "" then output = "/" end
|
||||
return output
|
||||
end
|
||||
|
||||
return pwd
|
Reference in New Issue
Block a user