Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local redrouters = {"redrouter_4", "redrouter_3", "redrouter_2", "redrouter_5"," ","redrouter_1","redrouter_6","redrouter_7","redrouter_0"}
- modem = peripheral.wrap("back")
- monitor = peripheral.wrap("right")
- x, y = monitor.getSize()
- term.redirect(monitor)
- while true do
- for index, router in pairs(redrouters) do
- input = modem.callRemote(router, "getInput", "front")
- paintutils.drawFilledBox((x/3)*(index%3),(y/3)*(index/3), (x/3)*(index%3) + (x/3), (y/3)*(index/3) + (x/3), colors.white)
- end
- os.sleep(1)
- monitor.clear()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement