Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function default()
- m = peripheral.wrap("right")
- m.clear()
- m.setTextColor(colors.blue)
- m.setCursorPos(1,1)
- m.write("GalacticCraft")
- m.setCursorPos(1,2)
- m.write("Agency Floors:")
- m.setTextColor(colors.white)
- m.setCursorPos(1,4)
- m.write(" Space Station")
- m.setCursorPos(1,5)
- m.write(" -Block Lvl 1200")
- m.setCursorPos(1,7)
- m.write(" 3rd - Launch Pads")
- m.setCursorPos(1,9)
- m.write(" 2nd - Workshop")
- m.setCursorPos(1,11)
- m.write(" Lobby")
- end
- while true do
- default()
- event,side,x,y = os.pullEvent()
- if event == "monitor_touch" then
- if y == 4 then
- rednet.open("back")
- rednet.broadcast("SPACE")
- m.setTextColor(colors.red)
- m.setCursorPos(1,4)
- m.write(" Space Station")
- m.setCursorPos(1,5)
- m.write(" -Block Lvl 1200")
- m.write(" 3rd - Launch Pads ")
- sleep(2)
- else if y == 7 then
- rednet.open("back")
- rednet.broadcast("3g")
- m.setTextColor(colors.red)
- m.setCursorPos(1,7)
- m.write(" 3rd - Launch Pads")
- sleep(2)
- else if y == 9 then
- rednet.open("back")
- rednet.broadcast("2g")
- m.setTextColor(colors.red)
- m.setCursorPos(1,9)
- m.write(" 2nd - Workshop")
- sleep(2)
- else if y == 11 then
- rednet.open("back")
- rednet.broadcast("Lg")
- m.setTextColor(colors.red)
- m.setCursorPos(1,11)
- m.write(" Lobby")
- sleep(2)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement