View difference between Paste ID: ZZhkm1D4 and BP0NzUkn
SHOW: | | - or go back to the newest paste.
1
local function skyblock1()
2
3
local m = peripheral.wrap("right")
4
m.setBackgroundColor(colors.gray)
5
m.clear()
6
m.setCursorPos(1, 1)
7
m.setTextColor(colors.orange)
8
m.write("/is ")
9
m.setTextColor(colors.black)
10
m.write("- nowa wyspa/TP do wyspy")
11
m.setCursorPos(1,2)
12
m.setTextColor(colors.orange)
13
m.write("/is invite nick ")
14
m.setTextColor(colors.black)
15-
m.setCursorPos(12,5)
15+
m.setCursorPos(5,3)
16
m.write("- zapros gracza do wyspy")
17-
m.setCursorPos(22,5)
17+
m.setCursorPos(1,4)
18
m.setTextColor(colors.orange)
19
m.write("/is accept ")
20
m.setCursorPos(5,5)
21
m.setTextColor(colors.black)
22
m.write("- akceptuj zaproszenie")
23
m.setCursorPos(1,6)
24
m.setTextColor(colors.orange)
25-
        shell.run("commands")
25+
m.write("/is leave ")
26
m.setCursorPos(5,7)
27
m.setTextColor(colors.black)
28
m.write("- porzucasz wyspe")
29
 
30
m.setCursorPos(1,8)
31
m.setTextColor(colors.orange)
32
m.write("/is kick nick ")
33
m.setCursorPos(5,9)
34
m.setTextColor(colors.black)
35
m.write("- Kick gracza z wyspy")
36
 
37
m.setCursorPos(1,10)
38
m.setTextColor(colors.orange)
39
m.write("/is restart ")
40
m.setCursorPos(5,11)
41
m.setTextColor(colors.black)
42
m.write("- restart wyspy")
43
 
44
 
45
m.setCursorPos(10,12)
46
m.setBackgroundColor(colors.black)
47
m.setTextColor(colors.white)
48
m.write("Strona 1/2")
49
 
50
m.setCursorPos(22,12)
51
m.write(">>")
52
 
53
m.setBackgroundColor(colors.red)
54
m.setTextColor(colors.orange)
55
m.setCursorPos(26,12)
56
m.write("MENU")
57
 
58
while true do
59
  local event, side, x, y = os.pullEvent("monitor_touch")
60
 
61
  if x >= 26 and x <= 30 and y == 12 then
62
        shell.run("a")
63
  elseif x >= 22 and x <= 24 and y == 12 then
64
        --shell.run("skyblock2")
65
        skyblock2()
66
  end
67
end
68
69
end
70
71
local function skyblock2()
72
73
local m = peripheral.wrap("right")
74
m.setBackgroundColor(colors.gray)
75
m.clear()
76
m.setCursorPos(1, 1)
77
m.setTextColor(colors.orange)
78
m.write("/c ")
79
m.setCursorPos(3,2)
80
m.setTextColor(colors.black)
81
m.write("- osiagniecia na wyspie")
82
m.setCursorPos(1,3)
83
m.setTextColor(colors.orange)
84
m.write("/c nazwa ")
85
m.setTextColor(colors.black)
86
m.setCursorPos(3,4)
87
m.write("- wiecej info o osiagnieciu")
88
m.setCursorPos(1,5)
89
m.setTextColor(colors.orange)
90
m.write("/c c nazwa ")
91
m.setCursorPos(3,6)
92
m.setTextColor(colors.black)
93
m.write("- ukonczenie osiagniecia")
94
m.setCursorPos(1,7)
95
m.setTextColor(colors.orange)
96
m.write("/is help ")
97
m.setCursorPos(3,8)
98
m.setTextColor(colors.black)
99
m.write("- Wiecej Komend o wyspach")
100
 
101
 
102
m.setCursorPos(10,12)
103
m.setBackgroundColor(colors.black)
104
m.setTextColor(colors.white)
105
m.write("Strona 2/2")
106
 
107
m.setCursorPos(6,12)
108
m.write("<<")
109
 
110
m.setBackgroundColor(colors.red)
111
m.setTextColor(colors.orange)
112
m.setCursorPos(26,12)
113
m.write("MENU")
114
 
115
while true do
116
  local event, side, x, y = os.pullEvent("monitor_touch")
117
 
118
  if x >= 26 and x <= 30 and y == 12 then
119
        shell.run("a")
120
  elseif x >= 6 and x <= 8 and y == 12 then
121
        --shell.run("skyblock1")
122
        skyblock2()
123
  end
124
end
125
126
end
127
128
129
local m = peripheral.wrap("right")
130
m.setBackgroundColor(colors.brown)
131
m.clear()
132
m.setCursorPos(6, 1)
133
m.setTextColor(colors.black)
134
m.write("Aby wybrac kategorie")
135
m.setCursorPos(6,2)
136
m.write("uzyj PPM na przycisk")
137
138
139
m.setBackgroundColor(colors.red)
140
m.setTextColor(colors.orange)
141
m.setCursorPos(3,5)
142
m.write("[SKYBLOCK]")
143
m.setCursorPos(18,5)
144
m.write("[SPAWN]")
145
m.setCursorPos(3,7)
146
m.write("[FRANEQ]")
147
m.setCursorPos(18,7)
148
m.write("[FRANEQ]")
149
m.setCursorPos(3,9)
150
m.write("[FRANEQ]")
151
m.setCursorPos(18,9)
152
m.write("[FRANEQ]")
153
154
m.setCursorPos(20,20)
155
m.setBackgroundColor(colors.brown)
156
m.setTextColor(colors.cyan)
157
m.write("by se7en")
158
while true do
159
  local event, side, x, y = os.pullEvent("monitor_touch")
160
161
  if x >= 1 and x <= 10 and y == 1 then
162
        --shell.run("commands")
163
        skyblock1()
164
  elseif x >= 13 and x <= 20 and y == 1 then
165
        shell.run("rules")
166
  end
167
end