Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local green=false
- local white=false
- local yellow=false
- local blue=false
- while true do
- if rs.testBundledInput("right",colors.green) then
- if not green then
- mon = peripheral.wrap("top")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("Top Floor")
- redstone.setBundledOutput("left", colors.green)
- green=true
- end
- else
- green=false
- end
- if rs.testBundledInput("right",colors.white) then
- if not white then
- mon = peripheral.wrap("top")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("Bottom Floor")
- redstone.setBundledOutput("left", colors.white)
- white=true
- end
- else
- white=false
- end
- if rs.testBundledInput("right",colors.blue) then
- if not blue then
- mon = peripheral.wrap("top")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("3rd Floor")
- redstone.setBundledOutput("left", colors.blue)
- blue=true
- end
- else
- blue=false
- end
- if rs.testBundledInput("right",colors.yellow) then
- if not yellow then
- mon = peripheral.wrap("top")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("2nd Floor")
- redstone.setBundledOutput("left", colors.yellow)
- yellow=true
- end
- else
- yellow=false
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment