Advertisement
Guest User

startup

a guest
Aug 18th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.26 KB | None | 0 0
  1. mon = peripheral.wrap("right")
  2. mon.clear()
  3. mon.setTextScale(2)
  4.  
  5. mon.setCursorPos(2,8)
  6. mon.write("Enderman")
  7. mon.setCursorPos(2,10)
  8. mon.write("Blaze")
  9. mon.setCursorPos(2,12)
  10. mon.write("Skeleton")
  11. mon.setCursorPos(13,8)
  12. mon.write("Pigman")
  13. mon.setCursorPos(13,10)
  14. mon.write("Zombie")
  15. mon.setCursorPos(13,12)
  16. mon.write("Creeper")
  17.  
  18. mon.setCursorPos(7,2)
  19. mon.write("Spawner")
  20. mon.setCursorPos(7,4)
  21. mon.write("Killer Joe")
  22.  
  23.  
  24. while true do
  25.     event,side,x,y = os.pullEvent("monitor_touch")
  26.    
  27.     if x > 1 and x < 10 and y == 8 then
  28.         rs.setOutput("back",true)
  29.   mon.setTextScale(2)
  30.         mon.setCursorPos(2,8)
  31.         mon.clearLine()
  32.         mon.blit(" Enderman ","0000000000","dddddddddd")
  33.         sleep(2)
  34.         rs.setOutput("back",false)
  35.         mon.setCursorPos(2,8)
  36.         mon.clearLine()
  37.         mon.blit(" Enderman ","0000000000","eeeeeeeeee")
  38.    
  39.     elseif x > 1 and x < 7  and y == 3 then
  40.         rs.setOutput("right",true)
  41.         mon.setCursorPos(2,3)
  42.         mon.clearLine()
  43.         mon.blit("Blaze","0000000","ddddddd")
  44.         sleep(2)
  45.         rs.setOutput("right",false)
  46.         mon.setCursorPos(2,3)
  47.         mon.clearLine()
  48.         mon.blit("Blaze","0000000","eeeeeee")
  49.        
  50.     elseif x > 1 and x < 11 and y == 5 then
  51.         rs.setOutput("back",true)
  52.         mon.setCursorPos(2,5)
  53.         mon.clearLine()
  54.         mon.blit("Androit","0000000","ddddddd")
  55.         sleep(2)
  56.         rs.setOutput("back",false)
  57.         mon.setCursorPos(2,5)
  58.         mon.clearLine()
  59.         mon.blit("Androit","0000000","eeeeeee")
  60.        
  61.         elseif x > 19 and x < 33 and y == 2 and rs.getOutput("top") == false then  
  62.             rs.setOutput("top",true)
  63.             mon.setCursorPos(20,2)
  64.             mon.clearLine()
  65.             mon.blit("Spawner = OFF","0000000000000","ddddddddddddd")
  66.        
  67.         elseif x > 19 and x < 33 and y == 2 and rs.getOutput("top") == true then   
  68.             rs.setOutput("top",false)
  69.             mon.setCursorPos(20,2)
  70.             mon.clearLine()
  71.             mon.blit("Spawner = ON","000000000000","eeeeeeeeeeee")
  72.            
  73.             elseif x > 19 and x < 33 and y == 4 and rs.getOutput("bottom") == false then   
  74.                 rs.setOutput("bottom",true)
  75.                 mon.setCursorPos(20,4)
  76.                 mon.clearLine()
  77.                 mon.blit("Grinder = OFF","0000000000000","ddddddddddddd")
  78.        
  79.             elseif x > 19 and x < 33 and y == 4 and rs.getOutput("bottom") == true then
  80.                 rs.setOutput("bottom",false)
  81.                 mon.setCursorPos(20,4)
  82.                 mon.clearLine()
  83.                 mon.blit("Grinder = ON","000000000000","eeeeeeeeeeee")
  84.     end
  85. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement