Advertisement
MuChT007

Gestion Geothermal

Nov 27th, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. -- Deux MFSU de chaque coté du computer avec chaque MFSU relier a plusieurs Geothermal  --
  2. -- Le front du computer relier a deux splitter en amont de chaque MFSU --
  3.  
  4. while true do
  5.     event = os.pullEvent("redstone")
  6.  
  7. if redstone.getInput("right") or redstone.getInput("left") then
  8.     redstone.setOutput("front",false)
  9.     term.clear()
  10.     term.setCursorPos(1,1)
  11.     term.write("Entre 50% et 100% disponible")
  12.     term.write("Geothermal en attente")
  13.     end
  14.  
  15. if redstone.getInput("left") and  redstone.getInput("right") then
  16.     redstone.setOutput("front",true)
  17.     term.clear()
  18.     term.setCursorPos(1,1)
  19.     term.write("Moins de 50% disponible")
  20.     term.write("Geothermal actif")
  21.     end
  22.  
  23. if redstone.getInput("right") == false and redstone.getInput("left") == false then
  24.  
  25.     redstone.setOutput("front",false)
  26.     term.clear()
  27.     term.setCursorPos(1,1)
  28.     term.write("100% disponible")
  29.     term.write("Geothermal en attente")
  30.     end
  31.  
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement