Niseg

test for turret setup

May 14th, 2013
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. redstone.setOutput("top",true);
  2. redstone.setOutput("front",true);
  3. while true do
  4. --os.pullEvent("redstone")
  5. if redstone.getInput("right") then
  6.   redstone.setOutput("top",false);
  7.   sleep(0.2)
  8.   redstone.setOutput("front",false);
  9.   sleep(0.2)
  10.   redstone.setOutput("back",true);
  11.   sleep(0.2)
  12.   redstone.setOutput("left",true);
  13. else
  14.   redstone.setOutput("left",false);
  15.   sleep(0.2)
  16.   redstone.setOutput("back",false);  
  17.   sleep(0.2)
  18.   redstone.setOutput("front",true);
  19.   sleep(0.2)
  20.   redstone.setOutput("top",true);
  21. end
  22. sleep(1)
  23. end
  24. print("how did I get here")
Advertisement
Add Comment
Please, Sign In to add comment