Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. redstone.setOutput("bottom", false)
  2. while true do
  3. for j=1,2 do
  4. if j == 1 then
  5. input = "left"
  6. output = "top"
  7. dis = "back"
  8. elseif j == 2 then
  9. input = "right"
  10. output = "back"
  11. dis = "top"
  12. end
  13. redstone.setBundledOutput(dis, 0)
  14. for i=0,15 do
  15. print(i)
  16. x = math.pow(2,i)
  17.  
  18. if redstone.testBundledInput(input, x) == true then
  19. redstone.setOutput("bottom", false)
  20. sleep(1)
  21. redstone.setBundledOutput(output, x)
  22. sleep(1)
  23. redstone.setOutput("bottom", true)
  24.  
  25. repeat
  26. sleep(5)
  27. until (redstone.testBundledInput(input, x) == false)
  28. end
  29. end
  30. end
  31. redstone.setOutput("bottom", false)
  32. sleep(30)
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement