Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("bottom")
- rednet.open("top")
- function stock()
- if rs.getInput("front") == false then
- rednet.send(14, "on")
- m.setBackgroundColor(colors.red)
- m.clear()
- else
- m.setBackgroundColor(colors.green)
- rednet.send(14, "off")
- m.clear()
- end
- end
- while true do
- stock()
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement