Advertisement
ROBOTS

Adv. Pneumatic Cooldown

Mar 3rd, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. -- PROVIDES FAILSAFE AND COOLDOWN TIME FOR PNEUMATICCRAFT ADVANCED LIQUID COMPRESSOR --
  2.  
  3. m = peripheral.wrap("bottom")
  4.  
  5. -- EXECUTION
  6.  
  7. while true do
  8.     sleep(0)
  9.     if m.getPressure() >= 19 then
  10.         rs.setOutput("left", false)
  11.     end
  12.     if m.getPressure() <= 10 then
  13.         rs.setOutput("left", true)
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement