Advertisement
Guest User

startup

a guest
Oct 20th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1.    
  2.  
  3.     while true do
  4.       local turbine = peripheral.wrap("big reactors-Turbine_1")
  5.       local low = 1800
  6.       local high = 1900
  7.      
  8.       if turbine.getRotorSpeed() <= low then
  9.         turbine.setActive(true)
  10.       end
  11.      
  12.       if turbine.getRotorSpeed() >= high then
  13.         turbine.setActive(false)
  14.       end
  15.      
  16.       sleep(5)
  17.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement