Advertisement
TangentDelta

Redstone Sequencer 1

Dec 26th, 2011
3,209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. --Title: Redstone Control
  2. --Version: 1
  3. --Last Revised: N/A
  4. --Last Revised By: N/A
  5. --Author: TangentDelta (alias Hydrogen)
  6. --Platform: ComputerCraft LUA Virtual Machine
  7. --Notes: Best to be used along side redpower!
  8.  
  9. d = "bottom"
  10. f = "front"
  11. u = "top"
  12. b = "back"
  13. r = "right"
  14. on = true
  15. off = false
  16. step = 1
  17.  
  18. local function wire(direction,state)
  19.  redstone.setOutput(direction,state)
  20.  sleep(step)
  21. end
  22.  
  23. -- format to use: wire(DIRECTION,STATE)
  24. --direction is configurable up at the top in the configuration header
  25. --state is also configurable, in the configuration header
  26. --I've also provided a way to control the speed, controlled by "step"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement