Skip to content

Instantly share code, notes, and snippets.

View SirEndii's full-sized avatar
🔪
I may be slow to respond.

Srendi SirEndii

🔪
I may be slow to respond.
View GitHub Profile
@SirEndii
SirEndii / .lua
Last active July 29, 2022 10:32
Me Bridge example
-- 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
@SirEndii
SirEndii / .lua
Last active October 24, 2022 22:17
Chat Box Example
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