Advertisement
AssortedBrunoz

Untitled

Sep 4th, 2024 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. local redrouters = {"redrouter_4", "redrouter_3", "redrouter_2", "redrouter_5"," ","redrouter_1","redrouter_6","redrouter_7","redrouter_0"}
  2.  
  3. modem = peripheral.wrap("back")
  4.  
  5. monitor = peripheral.wrap("right")
  6.  
  7. x, y = monitor.getSize()
  8.  
  9. term.redirect(monitor)
  10.  
  11. while true do
  12.     for index, router in pairs(redrouters) do
  13.        input = modem.callRemote(router, "getInput", "front")
  14.         paintutils.drawFilledBox((x/3)*(index%3),(y/3)*(index/3), (x/3)*(index%3) + (x/3), (y/3)*(index/3) + (x/3), colors.white)
  15.     end
  16.     os.sleep(1)
  17.     monitor.clear()
  18. end
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement