This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
box = peripheral.wrap("chatBox_4") | |
-- box is the connected Chat Box | |
local open = rs.getInput("left") -- boolean, if the door is open | |
local wall = rs.getInput("right") -- boolean, if the wall is builded | |
while true do | |
-- with param1, you can check if the message is anything you like. | |
-- with param2, you can check if the player's name is your name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This method exists to connect a peripheral easier | |
function wrapPs(peripheralName) | |
periTab={} | |
sideTab={} | |
if peripheralName==nil then | |
print("Error") | |
end | |
local peripherals = peripheral.getNames() | |
local i2 = 1 | |
for i =1, #peripherals do |