Tawok

userShow

May 6th, 2022 (edited)
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --si redstone alors message probleme
  2. side = "right"  --configure side
  3.  
  4. --initi monitor
  5. monitor = peripheral.find("monitor")
  6. monitor.setTextScale(0.5)
  7. monitor.setBackgroundColor(colors.black)
  8.  
  9. while true do
  10.     check = (redstone.getAnalogInput(side)>0)
  11.     --check true si la redstone est alummee
  12.     if check then
  13.         monitor.setBackgroundColor(colors.red)
  14.         monitor.clear()
  15.         monitor.setCursorPos(1,3)
  16.         monitor.write("Probleme reacteur")
  17.         monitor.setCursorPos(1,4)
  18.         monitor.write("Aller voir salle controle")
  19.         monitor.setCursorPos(1,5)
  20.         monitor.write("Probable manque Hohlraum")
  21.         while check do
  22.             os.sleep(1)
  23.             check = (redstone.getAnalogInput(side)>0)
  24.         end
  25.         if redstone.getAnalogInput(side)==0 then
  26.             monitor.setBackgroundColor(colors.black)
  27.             monitor.clear()
  28.             monitor.setCursorPos(1,3)
  29.             monitor.write("Reacteur en fonctionnement")
  30.         end
  31.     end
  32.     os.sleep(1)
  33. end
Add Comment
Please, Sign In to add comment