Advertisement
Guest User

startup

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