SHARE
TWEET

Untitled

Joris64 Sep 19th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mon = peripheral.wrap("front")
  2. mon.clear()
  3. mon.setTextScale(1.5)
  4.  
  5. mon.setCursorPos(2,2)
  6. mon.write("Witherskelet = OFF")
  7. mon.setCursorPos(2,4)
  8. mon.write("Enderman = OFF")
  9. mon.setCursorPos(2,6)
  10. mon.write("Blaze = OFF")
  11.  
  12.  
  13. while true do
  14.     event,side,x,y = os.pullEvent("monitor_touch")
  15.    
  16.     if x > 1 and x < 19 and y == 2 then
  17.             rs.setOutput("top",true)
  18.             mon.setCursorPos(2,2)
  19.             mon.clearLine()
  20.             mon.blit("Witherskelet = OFF","000000000000000000","eeeeeeeeeeeeeeeeee")
  21.        
  22.         elseif x > 1 and x < 18 and y == 2 and rs.getOutput("top") == true then  
  23.             rs.setOutput("top",false)
  24.             mon.setCursorPos(2,2)
  25.             mon.clearLine()
  26.             mon.blit("Witherskelet = ON","00000000000000000","ddddddddddddddddd")
  27.            
  28.             elseif x > 4 and x < 15 and y == 4 and rs.getOutput("right") == false then  
  29.                 rs.setOutput("bottom",true)
  30.                 mon.setCursorPos(2,4)
  31.                 mon.clearLine()
  32.                 mon.blit("Enderman = OFF","00000000000000","eeeeeeeeeeeeee")
  33.        
  34.             elseif x > 4 and x < 14 and y == 4 and rs.getOutput("right") == true then
  35.                 rs.setOutput("bottom",false)
  36.                 mon.setCursorPos(2,4)
  37.                 mon.clearLine()
  38.                 mon.blit("Enderman = ON","0000000000000","ddddddddddddd")
  39.  
  40.             elseif x > 6 and x < 12 and y == 6 and rs.getOutput("left") == false then  
  41.                 rs.setOutput("bottom",true)
  42.                 mon.setCursorPos(2,6)
  43.                 mon.clearLine()
  44.                 mon.blit("Blaze = OFF","00000000000","eeeeeeeeeee")
  45.        
  46.             elseif x > 6 and x < 11 and y == 6 and rs.getOutput("left") == true then
  47.                 rs.setOutput("bottom",false)
  48.                 mon.setCursorPos(2,6)
  49.                 mon.clearLine()
  50.                 mon.blit("Blaze = ON","0000000000","dddddddddd")
  51.     end
  52. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top