Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- max=17
- min=1
- OG1=17
- EG1=11
- KG1=7
- KG2=1
- cur=17
- redstone.setBundledOutput('back', 1)
- os.sleep(4.25)
- redstone.setBundledOutput('back', 0)
- cur=0
- print('LIFT.READY')
- while true do
- print('LIFT.CHK')
- if rs.testBundledInput('left', colours.lightBlue) then
- print('LIFT.Blue')
- if cur==OG1 then
- redstone.setBundledOutput('back', colours.orange)
- os.sleep(4.25)
- redstone.setBundledOutput('back', 0)
- end
- if cur==EG1 then
- redstone.setBundledOutput('back', colours.orange)
- os.sleep(2.75)
- redstone.setBundledOutput('back', 0)
- end
- if cur==KG1 then
- redstone.setBundledOutput('back', colours.orange)
- os.sleep(1.75)
- redstone.setBundledOutput('back', 0)
- end
- cur=KG2
- end
- if rs.testBundledInput('left', colours.yellow) then
- print('LIFT.YELLOW')
- if cur==OG1 then
- redstone.setBundledOutput('back', colours.orange)
- os.sleep(2.5)
- redstone.setBundledOutput('back', 0)
- end
- if cur==EG1 then
- redstone.setBundledOutput('back', colours.orange)
- os.sleep(1)
- redstone.setBundledOutput('back', 0)
- end
- if cur==KG2 then
- redstone.setBundledOutput('back', colours.white)
- os.sleep(1.75)
- redstone.setBundledOutput('back', 0)
- end
- cur=KG1
- end
- if rs.testBundledInput('left', colours.lime) then
- print('LIFT.LIME')
- if cur==OG1 then
- redstone.setBundledOutput('back', colours.white)
- os.sleep(1.5)
- redstone.setBundledOutput('back', 0)
- end
- if cur==KG1 then
- redstone.setBundledOutput('back', colours.white)
- os.sleep(1)
- redstone.setBundledOutput('back', 0)
- end
- if cur==KG2 then
- redstone.setBundledOutput('back', colours.white)
- os.sleep(2.5)
- redstone.setBundledOutput('back', 0)
- end
- cur=EG1
- end
- if rs.testBundledInput('left', colours.pink) then
- print('LIFT.PINK')
- if cur==EG1 then
- redstone.setBundledOutput('back', colours.white)
- os.sleep(1.75)
- redstone.setBundledOutput('back', 0)
- end
- if cur==KG1 then
- redstone.setBundledOutput('back', colours.white)
- os.sleep(2.75)
- redstone.setBundledOutput('back', 0)
- end
- if cur==KG2 then
- redstone.setBundledOutput('back', colours.white)
- os.sleep(4.25)
- redstone.setBundledOutput('back', 0)
- end
- cur=QG1
- end
- os.sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment