Advertisement
MigasRocha

Elevador Floor Screen

Jan 8th, 2024
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. while true do
  2.  
  3. rednet.open("bottom")
  4.  
  5. mon = peripheral.wrap("front")
  6.  
  7. term.redirect(mon)
  8.  
  9. function elevatormatrix()
  10.  
  11. mon.setBackgroundColor(colors.black)
  12.  
  13. mon.clear()
  14.  
  15. matrixfloor = paintutils.loadImage("imagem")
  16.  
  17. paintutils.drawImage(matrixfloor, -2, 1)
  18.  
  19. end
  20.  
  21. function elevatorinscribers()
  22.  
  23. mon.setBackgroundColor(colors.black)
  24.  
  25. mon.clear()
  26.  
  27. inscriber = paintutils.loadImage("floor")
  28.  
  29. paintutils.drawImage(inscriber, -3, 1)
  30.  
  31. end
  32.  
  33. id, message = rednet.receive()
  34.  
  35. if id == 26 then
  36.     elevatormatrix()
  37. elseif
  38.     id == 24 then
  39.     elevatorinscribers()
  40. else
  41.     sleep(1)
  42. end
  43.  
  44.  end
  45.  
  46.  
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement