Skip to content

Instantly share code, notes, and snippets.

local myid = os.computerID()
local doorList = { 11,13 }
local passwordForDoor = { "notch","minecraft" }
mon=peripheral.wrap("top")
print("Access Terminal")
os.loadAPI("json")
os.loadAPI("peripherals")
print(peripherals.getDeviceSide("modem"))
rednet.open("top")
os.pullEvent = os.pullEventRaw
os.loadAPI("json")
local serverID = 1087
function playerDetected(player)
term.clear()
term.setCursorPos(1,1)
print("Player Detected: "..player)
end
rednet.open("top")
os.pullEvent = os.pullEventRaw
os.loadAPI("json")
local serverID = 1087
function playerDetected(player)
term.clear()
term.setCursorPos(1,1)
print("Player Detected: "..player)
end
local myid = os.computerID()
local doorList = { 11,13 }
local passwordForDoor = { "notch","minecraft" }
mon=peripheral.wrap("top")
print("Access Terminal")
os.loadAPI("json")
os.loadAPI("peripherals")
print(peripherals.getDeviceSide("modem"))
local myid = os.computerID()
local doorList = { 11,13 }
local passwordForDoor = { "notch","minecraft" }
mon=peripheral.wrap("top")
print("Access Terminal")
os.loadAPI("json")
os.loadAPI("peripherals")
print(peripheral.getType("top"))
local myid = os.computerID()
local doorList = { 11,13 }
local passwordForDoor = { "notch","minecraft" }
mon=peripheral.wrap("top")
print("Access Terminal")
os.loadAPI("json")
os.loadAPI("peripherals")
print(peripheral.getType("top"))
local myid = os.computerID()
local doorList = { 11,13 }
local passwordForDoor = { "notch","minecraft" }
mon=peripheral.wrap("top")
print("Access Terminal")
os.loadAPI("json")
os.loadAPI("peripherals")
-- List of all sides
local lstSides = {"left","right","up","down","front","back"};
local myid = os.computerID()
local doorList = { 11,13 }
local passwordForDoor = { "notch","minecraft" }
mon=peripheral.wrap("top")
print("Access Terminal")
os.loadAPI("json")
os.loadAPI("peripherals")
-- List of all sides
local lstSides = {"left","right","up","down","front","back"};
local myid = os.computerID()
local doorList = { 11,13 }
local passwordForDoor = { "notch","minecraft" }
mon=peripheral.wrap("top")
print("Access Terminal")
os.loadAPI("json")
os.loadAPI("peripherals")
-- List of all sides
local lstSides = {"left","right","up","down","front","back"};
local myid = os.computerID()
local doorList = { 11,13 }
local passwordForDoor = { "notch","minecraft" }
mon=peripheral.wrap("top")
print("Access Terminal")
os.loadAPI("json")
os.loadAPI("peripherals")
local deviceSide = peripherals.getDeviceSide("modem")
rednet.open(string.lower(deviceSide))