From d7c7ff6f0f47b1dc7ddd789bbfc500568e8b9579 Mon Sep 17 00:00:00 2001 From: zstrike Date: Mon, 8 Dec 2025 10:45:03 -0500 Subject: [PATCH] Initial commit --- .vscode/settings.json | 45 ++++++++++++++++++++++++++++++++++++++++++ Lighting/processor.lua | 6 ++++++ 2 files changed, 51 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 Lighting/processor.lua diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..12c81cc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,45 @@ +{ + "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/Lighting/processor.lua b/Lighting/processor.lua new file mode 100644 index 0000000..50c6e56 --- /dev/null +++ b/Lighting/processor.lua @@ -0,0 +1,6 @@ +os.setComputerLabel("BWPX-"+string.format("%04d", os.getComputerID())) + +print(peripheral.getNames()) +rednet.open("back") +-- prints +rednet.host("BWNP",os.getComputerLabel())