Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function toTop()
- if rs.testBundledInput("back", colors.black) == true then
- print("Already on top floor, sending back down")
- for i = 1,16 do
- rs.setBundledOutput("back", colors.white)
- end
- else
- for i = 1,16 do
- rs.setBundledOutput("back", colors.orange)
- end
- end
- end
- function toBottom()
- if not rs.testBundledInput("back", colors.black) then
- print("Already on bottom floor, sending back up")
- for i = 1,16 do
- rs.setBundledOutput("back", colors.orange)
- end
- else
- for i = 1,16 do
- rs.setBundledOutput("back", colors.white)
- end
- end
- end
- while true do
- if rs.testBundledInput("back", colors.lime) then
- toBottom()
- end
- if rs.testBundledInput("back", colors.grey) then
- toTop()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement