Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("left")
- while true do
- modem.open(7)
- local event, modemSide, senderChannel, replyChannel, mfsu, senderDistance = os.pullEvent("modem_message")
- local total = mfsu / 10000000 * 100
- if total > 95 then
- rs.setOutput("right",false)
- else
- rs.setOutput("right",true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement