Advertisement
Craft4Cube

Untitled

Jul 3rd, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. local monitor = peripheral.wrap( "left" )
  2. local modem = peripheral.wrap("bottom")
  3.  
  4. modem.open(9999)
  5. monitor.clear()
  6. monitor.setTextScale(2)
  7. monitor.setBackgroundColor(colors.orange)
  8. monitor.setCursorPos(2,2)
  9. monitor.write(" Nether ")
  10. monitor.setBackgroundColor(colors.yellow)
  11. monitor.setCursorPos(2,4)
  12. monitor.write(" The End ")
  13. monitor.setBackgroundColor(colors.green)
  14. monitor.setCursorPos(2,6)
  15. monitor.write(" Twilight Forest ")
  16. monitor.setBackgroundColor(colors.lightBlue)
  17. monitor.setCursorPos(2,8)
  18. monitor.write(" Promised Land ")
  19. monitor.setBackgroundColor(colors.lightGray)
  20. monitor.setCursorPos(23,2)
  21. monitor.write(" The Deep Dark ")
  22. monitor.setBackgroundColor(colors.brown)
  23. monitor.setCursorPos(23,4)
  24. monitor.write(" MooMoo Dimension ")
  25. monitor.setBackgroundColor(colors.purple)
  26. monitor.setCursorPos(23,6)
  27. monitor.write(" Spirit Realm ")
  28. monitor.setBackgroundColor(colors.gray)
  29. monitor.setCursorPos(23,8)
  30. monitor.write(" WORK IN PROGRESS ")
  31. while true do
  32. event, side, xPos, yPos = os.pullEvent("monitor_touch")
  33. if xPos >= 2 and xPos <= 20 and yPos == 2 then
  34. modem.transmit(9999,0,1)
  35. end
  36. if xPos >= 2 and xPos <= 20 and yPos == 4 then
  37. modem.transmit(9999,0,2)
  38. end
  39. if xPos >= 2 and xPos <= 20 and yPos == 6 then
  40. modem.transmit(9999,0,3)
  41. end
  42. if xPos >= 2 and xPos <= 20 and yPos == 8 then
  43. modem.transmit(9999,0,4)
  44. end
  45.  
  46. if xPos >= 23 and xPos <= 41 and yPos == 2 then
  47. modem.transmit(9999,0,5)
  48. end
  49.  
  50. if xPos >= 23 and xPos <= 41 and yPos == 4 then
  51. modem.transmit(9999,0,6)
  52. end
  53.  
  54. if xPos >= 23 and xPos <= 41 and yPos == 6 then
  55. modem.transmit(9999,0,7)
  56. end
  57.  
  58. if xPos >= 23 and xPos <= 41 and yPos == 8 then
  59. modem.transmit(9999,0,0)
  60. end
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement