Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("top")
- --local internal = peripheral.wrap("right")
- modem.open(9898)
- while true do
- sleep(0)
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- if message == "toggle" then
- print("toggling door")
- if redstone.getInput("left") == false then
- redstone.setOutput("left", true)
- elseif redstone.getInput("left") == true then
- redstone.setOutput("left", false)
- end
- elseif message == "status" then
- print("fetching redstone state")
- elseif message == "lockdown" then
- print("placeholder activated")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement