Guest User

b

a guest
Jul 4th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. local m = peripheral.wrap("right")
  2. m.setBackgroundColor(colors.brown)
  3. m.clear()
  4. m.setCursorPos(6, 1)
  5. m.setTextColor(colors.black)
  6. m.write("Aby wybrac kategorie")
  7. m.setCursorPos(6,2)
  8. m.write("uzyj PPM na przycisk")
  9.  
  10.  
  11. m.setBackgroundColor(colors.red)
  12. m.setTextColor(colors.orange)
  13. m.setCursorPos(3,5)
  14. m.write("[SKYBLOCK]")
  15. m.setCursorPos(12,5)
  16. m.write("[SPAWN]")
  17. m.setCursorPos(22,5)
  18. m.write("[FRANEQ]")
  19.  
  20.  
  21. while true do
  22.   local event, side, x, y = os.pullEvent("monitor_touch")
  23.  
  24.   if x >= 1 and x <= 10 and y == 1 then
  25.         shell.run("commands")
  26.   elseif x >= 13 and x <= 20 and y == 1 then
  27.         shell.run("rules")
  28.   end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment