Advertisement
shadowkat1010

Boiler control

Aug 11th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. local boiler = "hobbyist's_steam_engine_0" --Change this to whatever you need for the boiler/engine (this assumes that you have it connected via peripheral cable)
  2. local pumpSide = "left" --This is the side for redstone to turn on the RS engine
  3. local minTemp = 110 --This is when you want more fuel to be added.
  4.  
  5. while true do
  6.  if boiler.getTemperature() < minTemp then
  7.   rs.setOutput(pumpSide,true)
  8.   sleep(1.5)
  9.   rs.setOutput(pumpSide,false)
  10.  end
  11.  sleep(2)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement