Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Running doorSoft 1.0")
- redstone.setOutput("back", true)
- redstone.setOutput("bottom", true)
- local runif = 1
- local modem = peripheral.wrap("front")
- modem.open(1)
- while runif == 1 do
- local event, modemSide, senderChannel, replayChannel, message, senderDistance = os.pullEvent("modem_message")
- if message == "1 on" then
- redstone.setOutput("back", true)
- redstone.setOutput("bottom", true)
- end
- if message == "1 off" then
- redstone.setOutput("back", false)
- redstone.setOutput("bottom", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement