Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --si redstone alors message probleme
- side = "right" --configure side
- --initi monitor
- monitor = peripheral.find("monitor")
- monitor.setTextScale(0.5)
- monitor.setBackgroundColor(colors.black)
- while true do
- check = (redstone.getAnalogInput(side)>0)
- --check true si la redstone est alummee
- if check then
- monitor.setBackgroundColor(colors.red)
- monitor.clear()
- monitor.setCursorPos(1,3)
- monitor.write("Probleme reacteur")
- monitor.setCursorPos(1,4)
- monitor.write("Aller voir salle controle")
- monitor.setCursorPos(1,5)
- monitor.write("Probable manque Hohlraum")
- while check do
- os.sleep(1)
- check = (redstone.getAnalogInput(side)>0)
- end
- if redstone.getAnalogInput(side)==0 then
- monitor.setBackgroundColor(colors.black)
- monitor.clear()
- monitor.setCursorPos(1,3)
- monitor.write("Reacteur en fonctionnement")
- end
- end
- os.sleep(1)
- end
Add Comment
Please, Sign In to add comment