Advertisement
Guest User

startup

a guest
Jun 2nd, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. OutputIN = "left"
  2. OutputOUT = "right"
  3. -- The Output Direction is where the redstone
  4. -- signal will be applied. Change the parameter
  5. -- instead of .....
  6. -- YOU MUST LEAVE THE "" OR THE PROGRAM WON'T WORK!
  7. -- Valid side are: front, back, top, bottom, left
  8. -- and right.
  9.  
  10. Frequency = 6
  11. -- The Frequency means how often (in seconds) the
  12. -- signal will be applied. Change the parameter
  13. -- instead of .....
  14.  
  15.  
  16. while true do
  17.   rs.setOutput(OutputIN, true)
  18.   sleep(0.5)
  19.   rs.setOutput(OutputIN, false)
  20.   sleep(Frequency)
  21.   rs.setOutput(OutputOUT, true)
  22.   sleep(0.5)
  23.   rs.setOutput(OutputOUT, false)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement