Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function skyblock1()
- local m = peripheral.wrap("right")
- m.setBackgroundColor(colors.gray)
- m.clear()
- m.setCursorPos(1, 1)
- m.setTextColor(colors.orange)
- m.write("/is ")
- m.setTextColor(colors.black)
- m.write("- nowa wyspa/TP do wyspy")
- m.setCursorPos(1,2)
- m.setTextColor(colors.orange)
- m.write("/is invite nick ")
- m.setTextColor(colors.black)
- m.setCursorPos(5,3)
- m.write("- zapros gracza do wyspy")
- m.setCursorPos(1,4)
- m.setTextColor(colors.orange)
- m.write("/is accept ")
- m.setCursorPos(5,5)
- m.setTextColor(colors.black)
- m.write("- akceptuj zaproszenie")
- m.setCursorPos(1,6)
- m.setTextColor(colors.orange)
- m.write("/is leave ")
- m.setCursorPos(5,7)
- m.setTextColor(colors.black)
- m.write("- porzucasz wyspe")
- m.setCursorPos(1,8)
- m.setTextColor(colors.orange)
- m.write("/is kick nick ")
- m.setCursorPos(5,9)
- m.setTextColor(colors.black)
- m.write("- Kick gracza z wyspy")
- m.setCursorPos(1,10)
- m.setTextColor(colors.orange)
- m.write("/is restart ")
- m.setCursorPos(5,11)
- m.setTextColor(colors.black)
- m.write("- restart wyspy")
- m.setCursorPos(10,12)
- m.setBackgroundColor(colors.black)
- m.setTextColor(colors.white)
- m.write("Strona 1/2")
- m.setCursorPos(22,12)
- m.write(">>")
- m.setBackgroundColor(colors.red)
- m.setTextColor(colors.orange)
- m.setCursorPos(26,12)
- m.write("MENU")
- while true do
- local event, side, x, y = os.pullEvent("monitor_touch")
- if x >= 26 and x <= 30 and y == 12 then
- shell.run("a")
- elseif x >= 22 and x <= 24 and y == 12 then
- --shell.run("skyblock2")
- skyblock2()
- end
- end
- end
- local function skyblock2()
- local m = peripheral.wrap("right")
- m.setBackgroundColor(colors.gray)
- m.clear()
- m.setCursorPos(1, 1)
- m.setTextColor(colors.orange)
- m.write("/c ")
- m.setCursorPos(3,2)
- m.setTextColor(colors.black)
- m.write("- osiagniecia na wyspie")
- m.setCursorPos(1,3)
- m.setTextColor(colors.orange)
- m.write("/c nazwa ")
- m.setTextColor(colors.black)
- m.setCursorPos(3,4)
- m.write("- wiecej info o osiagnieciu")
- m.setCursorPos(1,5)
- m.setTextColor(colors.orange)
- m.write("/c c nazwa ")
- m.setCursorPos(3,6)
- m.setTextColor(colors.black)
- m.write("- ukonczenie osiagniecia")
- m.setCursorPos(1,7)
- m.setTextColor(colors.orange)
- m.write("/is help ")
- m.setCursorPos(3,8)
- m.setTextColor(colors.black)
- m.write("- Wiecej Komend o wyspach")
- m.setCursorPos(10,12)
- m.setBackgroundColor(colors.black)
- m.setTextColor(colors.white)
- m.write("Strona 2/2")
- m.setCursorPos(6,12)
- m.write("<<")
- m.setBackgroundColor(colors.red)
- m.setTextColor(colors.orange)
- m.setCursorPos(26,12)
- m.write("MENU")
- while true do
- local event, side, x, y = os.pullEvent("monitor_touch")
- if x >= 26 and x <= 30 and y == 12 then
- shell.run("a")
- elseif x >= 6 and x <= 8 and y == 12 then
- --shell.run("skyblock1")
- skyblock2()
- end
- end
- end
- 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(18,5)
- m.write("[SPAWN]")
- m.setCursorPos(3,7)
- m.write("[FRANEQ]")
- m.setCursorPos(18,7)
- m.write("[FRANEQ]")
- m.setCursorPos(3,9)
- m.write("[FRANEQ]")
- m.setCursorPos(18,9)
- m.write("[FRANEQ]")
- m.setCursorPos(20,20)
- m.setBackgroundColor(colors.brown)
- m.setTextColor(colors.cyan)
- m.write("by se7en")
- 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")
- skyblock1()
- elseif x >= 13 and x <= 20 and y == 1 then
- shell.run("rules")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment