RLPGhost

Controle Steam Pelette

Nov 25th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local SteamLine = peripheral.wrap("SteamLine_0")
  2.  
  3. redstone.setOutput("bottom", false )
  4.  
  5. while true do
  6.  
  7. VarSteam = SteamLine.getSteam()
  8.  
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. print("Vapeur: "..VarSteam.."mB")
  12.  
  13. if VarSteam < 100000 then
  14. redstone.setOutput("bottom",true)
  15. end
  16.  
  17. if VarSteam > 300000 then
  18. redstone.setOutput("bottom",false)
  19. end
  20.  
  21. sleep(2)
  22. end
Add Comment
Please, Sign In to add comment