Advertisement
Slayster

Tekkit Harvester Timer

Jun 18th, 2013
131
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- ======================================
  2. -- Moon Oxygen - Harvester Timer
  3. -- brendan@slayweb.com 2013-06-03
  4. -- ======================================
  5.  
  6. -- Powers each harvester every alternate 30 minutes for 20 seconds in order to generate a new tree.
  7. -- One harvester/ connected to left side and one connected to right side.
  8.  
  9. -- default both sides to on
  10. rs.setOutput("left",true);
  11. rs.setOutput("right",true);
  12.  
  13. -- repeat forever, best running as a "startup" script
  14. while true do
  15.    sleep(1780)
  16.    rs.setOutput("left",false)
  17.    sleep(20)
  18.    rs.setOutput("left",true)
  19.    sleep(1780)
  20.    rs.setOutput("right",false)
  21.    sleep(20)
  22.    rs.setOutput("right",true)
  23. end
Advertisement
RAW Paste Data Copied
Advertisement