Advertisement
Guest User

startup

a guest
Oct 31st, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. t = peripheral.wrap("back")
  2. while true do
  3.  sleep(15)
  4.  rpm = t.getRotorSpeed()
  5.  flow = t.getFluidFlowRate()
  6.  if rpm < 1700 then
  7.   flow = flow + 5
  8.   t.setFluidFlowRateMax(flow)
  9.   print(flow)
  10.   print(rpm)
  11.  end
  12.  if rpm > 1750 then
  13.   flow = flow - 5
  14.   t.setFluidFlowRateMax(flow)
  15.   print(flow)
  16.   print(rpm)
  17.  end
  18.  
  19.  
  20.  
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement