Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redstone.setOutput("bottom", false)
- while true do
- for j=1,2 do
- if j == 1 then
- input = "left"
- output = "top"
- dis = "back"
- elseif j == 2 then
- input = "right"
- output = "back"
- dis = "top"
- end
- redstone.setBundledOutput(dis, 0)
- for i=0,15 do
- print(i)
- x = math.pow(2,i)
- if redstone.testBundledInput(input, x) == true then
- redstone.setOutput("bottom", false)
- sleep(1)
- redstone.setBundledOutput(output, x)
- sleep(1)
- redstone.setOutput("bottom", true)
- repeat
- sleep(5)
- until (redstone.testBundledInput(input, x) == false)
- end
- end
- end
- redstone.setOutput("bottom", false)
- sleep(30)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement