Advertisement
djPtica

BR Turbine

Dec 17th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. p = peripheral.wrap("top")
  2.  
  3. while true do
  4.  if p.getActive() then
  5.   if p.getRotorSpeed() < 1800 then
  6.    p.setInductorEngaged(false)
  7.   else
  8.    p.setInductorEngaged(true)
  9.   end
  10.  end
  11.  sleep(2)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement