Advertisement
Guest User

start

a guest
Mar 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. t = peripheral.wrap("right")
  2. t.clear()
  3.  
  4.  
  5.  
  6. local warning = 10000000
  7.  
  8. while true do --Always loop
  9.  
  10.   sleep(1)
  11.   builder = peripheral.call("dimension_builder_0", "getDimensionPower")
  12.  
  13.   t.setTextScale(1)
  14.  
  15.   t.setBackgroundColor(colors.lime)
  16.   t.setCursorPos(23,1)
  17.   t.write(string.rep(" ",6))
  18.  
  19.   t.setCursorPos(23,1)
  20.   t.setTextColor(colors.white)
  21.  
  22.   t.write("Status")
  23.   t.setCursorPos(23,3)
  24.   t.write("Status")
  25.   t.setCursorPos(23,5)
  26.   t.write("Status")
  27.  
  28.   t.setTextColor(colors.green)
  29.   t.setBackgroundColor(colors.black)
  30.   t.setCursorPos(1,1)
  31.   t.write("CertusQuartzDimension")
  32.  
  33.   t.setCursorPos(1,3)
  34.   t.write("ChargedCertusQuartz")
  35.  
  36.   t.setCursorPos(1,5)
  37.   t.write("EmeraldBlockDimension")
  38.  
  39.   event,side,x,y = os.pullEvent()
  40.     if event=="monitor_touch" then
  41.       if x > 21 and x < 29 and y == 1 then
  42.         t.clear()
  43.         os.loadAPI("test")
  44.         break
  45.       end
  46.     end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement