Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- print("overflow protection")
- rednet.open("left")
- while true do
- _, msg, _ = rednet.receive("_overflow")
- mArg = {}
- for w in msg:gmatch("%S+") do
- table.insert(mArg, w)
- end
- if mArg[1] == "block" then
- redstone.setOutput("front", true)
- shell.run("clear")
- print("blocking...")
- elseif mArg[1] == "allow" then
- redstone.setOutput("front", false)
- shell.run("clear")
- print("allowing...")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement