Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- m = peripheral.wrap("top")
- m.clear()
- m.setCursorPos(1,1)
- m.write("-----Welcome to the station-----")
- m.setCursorPos(1,3)
- m.write("Blue Line: ")
- m.setCursorPos(1,4)
- m.write("Yellow Line: ")
- m.setCursorPos(1,5)
- m.write("Red Line: ")
- m.setCursorPos(15,3)
- if colors.test (redstone.getBundledInput("back"), colors.blue) then
- m.write("Arrived")
- else
- m.write("Away")
- end
- m.setCursorPos(15,4)
- if colors.test (redstone.getBundledInput("back"), colors.yellow) then
- m.write("Arrived")
- else
- m.write("Away")
- end
- m.setCursorPos(15,5)
- if colors.test (redstone.getBundledInput("back"), colors.red) then
- m.write("Arrived")
- else
- m.write("Away")
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment