Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- print("overflow protection")
- rednet.open("left")
- local storage = peripheral.wrap("bottom")
- local protocol = "_overflow"
- while true do
- if (#storage.list() / storage.size()) > 0.90 then
- rednet.broadcast("block", protocol)
- shell.run("clear")
- print("blocking...")
- else
- rednet.broadcast("allow", protocol)
- shell.run("clear")
- print("allowing...")
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement