Advertisement
virtualdxs

Redstone In Motion Hidden Door Control

Jul 13th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. --Redstone In Motion Hidden Door Control Program by VirtualDXS
  2. a = peripheral.wrap("JAKJ_RIM_CarriageController_0")
  3. b = peripheral.wrap("JAKJ_RIM_CarriageController_1")
  4. c = peripheral.wrap("JAKJ_RIM_CarriageController_2")
  5. d = peripheral.wrap("JAKJ_RIM_CarriageController_3")
  6. e = peripheral.wrap("JAKJ_RIM_CarriageController_4")
  7.  
  8.  
  9. --0:Down
  10. --1:Up
  11. --2:North
  12. --3:South
  13. --4:West
  14. --5:East
  15.  
  16. a.move(3,false,true)
  17. sleep(1)
  18. b.move(3,false,true)
  19. sleep(1)
  20. c.move(4,false,true)
  21. sleep(1)
  22. d.move(4,false,true)
  23. sleep(10)
  24. e.move(5,false,true)
  25. sleep(1)
  26. d.move(5,false,true)
  27. sleep(1)
  28. c.move(2,false,true)
  29. sleep(1)
  30. b.move(2,false,true)
  31. os.shutdown()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement