Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap( "left" )
- local modem = peripheral.wrap("bottom")
- modem.open(9999)
- monitor.clear()
- monitor.setTextScale(2)
- monitor.setBackgroundColor(colors.orange)
- monitor.setCursorPos(2,2)
- monitor.write(" Nether ")
- monitor.setBackgroundColor(colors.yellow)
- monitor.setCursorPos(2,4)
- monitor.write(" The End ")
- monitor.setBackgroundColor(colors.green)
- monitor.setCursorPos(2,6)
- monitor.write(" Twilight Forest ")
- monitor.setBackgroundColor(colors.lightBlue)
- monitor.setCursorPos(2,8)
- monitor.write(" Promised Land ")
- monitor.setBackgroundColor(colors.lightGray)
- monitor.setCursorPos(23,2)
- monitor.write(" The Deep Dark ")
- monitor.setBackgroundColor(colors.brown)
- monitor.setCursorPos(23,4)
- monitor.write(" MooMoo Dimension ")
- monitor.setBackgroundColor(colors.purple)
- monitor.setCursorPos(23,6)
- monitor.write(" Spirit Realm ")
- monitor.setBackgroundColor(colors.gray)
- monitor.setCursorPos(23,8)
- monitor.write(" WORK IN PROGRESS ")
- while true do
- event, side, xPos, yPos = os.pullEvent("monitor_touch")
- if xPos >= 2 and xPos <= 20 and yPos == 2 then
- modem.transmit(9999,0,1)
- end
- if xPos >= 2 and xPos <= 20 and yPos == 4 then
- modem.transmit(9999,0,2)
- end
- if xPos >= 2 and xPos <= 20 and yPos == 6 then
- modem.transmit(9999,0,3)
- end
- if xPos >= 2 and xPos <= 20 and yPos == 8 then
- modem.transmit(9999,0,4)
- end
- if xPos >= 23 and xPos <= 41 and yPos == 2 then
- modem.transmit(9999,0,5)
- end
- if xPos >= 23 and xPos <= 41 and yPos == 4 then
- modem.transmit(9999,0,6)
- end
- if xPos >= 23 and xPos <= 41 and yPos == 6 then
- modem.transmit(9999,0,7)
- end
- if xPos >= 23 and xPos <= 41 and yPos == 8 then
- modem.transmit(9999,0,0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement