Advertisement
MPrinz2003

Untitled

Aug 26th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. mon = peripheral.wrap ( "Front")
  2. mon.clear ()
  3. mon.setTextScale (1.5)
  4.  
  5. mon.setCursorPos (2,1)
  6. mon.write ( "Enderman")
  7. mon.setCursorPos (2,3)
  8. mon.write ( "Flamme")
  9. mon.setCursorPos (2,5)
  10. mon.write ( "Androit")
  11. mon.setCursorPos (2,7)
  12. mon.write ( "skelet")
  13.  
  14. mon.setCursorPos (20,2)
  15. mon.write ( "Spawner =")
  16. mon.setCursorPos (20,4)
  17. mon.write ( "Grinder =")
  18.  
  19.  
  20. während wahr do
  21. Ereignis, Seite, x, y = os.pullEvent ( "monitor_touch")
  22.  
  23. wenn x> 1 und x <11 und y == 1 dann
  24. rs.setOutput ( "links", true)
  25. mon.setCursorPos (2,1)
  26. mon.clearLine ()
  27. mon.blit ( "Enderman", "00000000", "dddddddd")
  28. schlafen (2)
  29. rs.setOutput ( "links", false)
  30. mon.setCursorPos (2,1)
  31. mon.clearLine ()
  32. mon.blit ( "Enderman", "00000000", "eeeeeeee")
  33.  
  34. wenn x> 1 und x <11 und y == 1 dann
  35. rs.setOutput ( "dottom", true)
  36. mon.setCursorPos (2,7)
  37. mon.clearLine ()
  38. mon.blit ( "skelet", "000000", "dddddd")
  39. schlafen (2)
  40. rs.setOutput ( "bottom", false)
  41. mon.setCursorPos (2,7)
  42. mon.clearLine ()
  43. mon.blit ( "skelet", "000000", "eeeeee")
  44.  
  45. elseif x> 1 und x <7 und y == 3 dann
  46. rs.setOutput ( "rechts", true)
  47. mon.setCursorPos (2,3)
  48. mon.clearLine ()
  49. mon.blit ( "Blaze", "00000", "ddddd")
  50. schlafen (2)
  51. rs.setOutput ( "rechts", false)
  52. mon.setCursorPos (2,3)
  53. mon.clearLine ()
  54. mon.blit ( "Blaze", "00000", "eeeee")
  55.  
  56. elseif x> 1 und x <11 und y == 5 dann
  57. rs.setOutput ( "back", true)
  58. mon.setCursorPos (2,5)
  59. mon.clearLine ()
  60. mon.blit ( "Androit", "0000000", "ddddddd")
  61. schlafen (2)
  62. rs.setOutput ( "zurück", false)
  63. mon.setCursorPos (2,5)
  64. mon.clearLine ()
  65. mon.blit ( "Androit", "0000000", "eeeeeee")
  66.  
  67. elseif x> 19 und x <33 und y == 2 und rs.getOutput ( "top") == false dann
  68. rs.setOutput ( "top", true)
  69. mon.setCursorPos (20,2)
  70. mon.clearLine ()
  71. mon.blit ( "Spawner = ON", "0000000000000", "ddddddddddddd")
  72.  
  73. elseif x> 19 und x <33 und y == 2 und rs.getOutput ( "top") == true dann
  74. rs.setOutput ( "top", false)
  75. mon.setCursorPos (20,2)
  76. mon.clearLine ()
  77. mon.blit ( "Spawner = OFF", "000000000000", "eeeeeeeeeeee")
  78.  
  79. elseif x> 19 und x <33 und y == 4 und rs.getOutput ( "bottom") == false dann
  80. rs.setOutput ( "bottom", true)
  81. mon.setCursorPos (20,4)
  82. mon.clearLine ()
  83. mon.blit ( "Grinder = ON", "0000000000000", "ddddddddddddd")
  84.  
  85. elseif x> 19 und x <33 und y == 4 und rs.getOutput ( "bottom") == true dann
  86. rs.setOutput ( "bottom", false)
  87. mon.setCursorPos (20,4)
  88. mon.clearLine ()
  89. mon.blit ( "Grinder = OFF", "000000000000", "eeeeeeeeeeee")
  90. Ende
  91. Ende
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement