Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1.  
  2. mon = peripheral.wrap("right")
  3.  
  4.  
  5. 2. mon.clear()
  6.  
  7.  
  8. 3. mon.setTextScale(1.5)
  9.  
  10.  
  11. 4. mon.setCursorPos(2,1)
  12.  
  13.  
  14. 5. mon.write("Spawner =")
  15.  
  16.  
  17. 6. mon.setCursorPos(2,3)
  18.  
  19.  
  20. 7. mon.write("Grinder =")
  21.  
  22.  
  23. 8. mon.setCursorPos(2,5)
  24.  
  25.  
  26. 9. mon.write("Drawbridges")
  27.  
  28.  
  29. 10.
  30.  
  31.  
  32. 11. while true do
  33.  
  34.  
  35. 12. event,side,x,y = os.pullEvent("monitor_touch")
  36.  
  37.  
  38. 13.
  39.  
  40.  
  41. 14. elseif x > 1 and x < 11 and y == 1 and rs.getOutput("top") == false then
  42.  
  43.  
  44. 15. rs.setOutput("top",true)
  45.  
  46.  
  47. 16. mon.setCursorPos(2,1)
  48.  
  49.  
  50. 17. mon.clearLine()
  51.  
  52.  
  53. 18. mon.blit("Spawner = OFF","0000000000000","ddddddddddddd")
  54.  
  55.  
  56. 19.
  57.  
  58.  
  59. 20. elseif x > 1 and x < 11 and y == 1 and rs.getOutput("top") == true then
  60.  
  61.  
  62. 21. rs.setOutput("top",false)
  63.  
  64.  
  65. 22. mon.setCursorPos(2,1)
  66.  
  67.  
  68. 23. mon.clearLine()
  69.  
  70.  
  71. 24. mon.blit("Spawner = ON","000000000000","eeeeeeeeeeee")
  72.  
  73.  
  74. 25.
  75.  
  76.  
  77. 26. elseif x > 1 and x < 7 and y == 3 and rs.getOutput("bottom") == false then
  78.  
  79.  
  80. 27. rs.setOutput("bottom",true)
  81.  
  82.  
  83. 28. mon.setCursorPos(2,3)
  84.  
  85.  
  86. 29. mon.clearLine()
  87.  
  88.  
  89. 30. mon.blit("Grinder = OFF","0000000000000","ddddddddddddd")
  90.  
  91.  
  92. 31.
  93.  
  94.  
  95. 32. elseif x > 1 and x < 7 and y == 3 and rs.getOutput("bottom") == true then
  96.  
  97.  
  98. 33. rs.setOutput("bottom",false)
  99.  
  100.  
  101. 34. mon.setCursorPos(2,3)
  102.  
  103.  
  104. 35. mon.clearLine()
  105.  
  106.  
  107. 36. mon.blit("Grinder = ON","000000000000","eeeeeeeeeeee")
  108.  
  109.  
  110. 37. elseif x > 1 and x < 15 and y == 5 and rs.getOutput("left") == false then
  111.  
  112.  
  113. 38. rs.setOutput("left",true)
  114.  
  115.  
  116. 39. mon.setCursorPos(2,3)
  117.  
  118.  
  119. 40. mon.clearLine()
  120.  
  121.  
  122. 41. mon.blit("Drawbridges = OFF","0000000000000","ddddddddddddd")
  123.  
  124.  
  125. 42.
  126.  
  127.  
  128. 43. elseif x > 1 and x < 7 and y == 3 and rs.getOutput("left") == true then
  129.  
  130.  
  131. 44. rs.setOutput("left",false)
  132.  
  133.  
  134. 45. mon.setCursorPos(2,3)
  135.  
  136.  
  137. 46. mon.clearLine()
  138.  
  139.  
  140. 47. mon.blit("Drawbridges = ON","000000000000","eeeeeeeeeeee")
  141.  
  142.  
  143. 48. end
  144.  
  145.  
  146. 49.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement