Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = peripheral.wrap("right")
- m.setBackgroundColor(colors.brown)
- m.clear()
- m.setCursorPos(6, 1)
- m.setTextColor(colors.black)
- m.write("Aby wybrac kategorie")
- m.setCursorPos(6,2)
- m.write("uzyj PPM na przycisk")
- m.setBackgroundColor(colors.red)
- m.setTextColor(colors.orange)
- m.setCursorPos(3,5)
- m.write("[SKYBLOCK]")
- m.setCursorPos(12,5)
- m.write("[SPAWN]")
- m.setCursorPos(22,5)
- m.write("[FRANEQ]")
- while true do
- local event, side, x, y = os.pullEvent("monitor_touch")
- if x >= 1 and x <= 10 and y == 1 then
- shell.run("commands")
- elseif x >= 13 and x <= 20 and y == 1 then
- shell.run("rules")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment