Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- if #tArgs == 0 then
- print( "Usage: WRB <frequency>" )
- return
- end
- local input = shell.resolve( tArgs[1] )
- local lol = {"front","back","top","bottom","left","right"}
- for i = 1,6 do
- rednet.open(lol[i])
- end
- while true do
- event, p1 = os.pullEvent()
- if event == "redstone" then
- if rs.getInput("right") or rs.getInput("left") or rs.getInput("top") or rs.getInput("bottom") or rs.getInput("back") or rs.getInput("front") == true then
- rednet.broadcast("WirelessRS"..tostring(input))
- end
- if rs.getInput("front") ~= true then if rs.getInput("back") ~= true then if rs.getInput("right") ~= true then if rs.getInput("left") ~= true then if rs.getInput("top") ~= true then if rs.getInput("bottom") ~= true then
- rednet.broadcast("WirelessRS0")
- rednet.broadcast("WirelessRS"..input)
- end end end end end end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement