SHOW:
|
|
- or go back to the newest paste.
1 | #aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | |
2 | #aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | |
3 | ||
4 | options: | |
5 | logo : &b[氷鬼] | |
6 | command /oc [<text>]: | |
7 | permission: skript.admin | |
8 | trigger: | |
9 | if arg-1 is set: | |
10 | send "&6[OP] &a%player% : %arg-1%" to ops | |
11 | else: | |
12 | send "&cメッセージを入力してください" | |
13 | on chat: | |
14 | cancel event | |
15 | - | if {oni::*} contains player: |
15 | + | if {Mute.%player%} is true: |
16 | - | broadcast "&c[鬼] %player% &7: &f%message%" |
16 | + | send "&cあなたはミュートされています!!" |
17 | - | else if {nige::*} contains player: |
17 | + | stop |
18 | - | broadcast "&a[逃げ] %player% &7: &f%message%" |
18 | + | else: |
19 | - | else if {koori::*} contains player: |
19 | + | if {oni::*} contains player: |
20 | - | broadcast "&b[氷] %player% &7: &f%message%" |
20 | + | broadcast "&c[鬼] %player% &7: &f%message%" |
21 | - | else if player is op: |
21 | + | else if {nige::*} contains player: |
22 | - | broadcast "&6[Admin] &d%player% &7: &f%message%" |
22 | + | broadcast "&a[逃げ] %player% &7: &f%message%" |
23 | - | else if player's gamemode is spectator: |
23 | + | else if {koori::*} contains player: |
24 | - | broadcast "&7[観戦] %player% : &f%message%" |
24 | + | broadcast "&b[氷] %player% &7: &f%message%" |
25 | else if player is op: | |
26 | - | broadcast "&c%player% &7: &f%message%" |
26 | + | broadcast "&c[AllChat] &6[Admin] &d%player% &7: &f%message%" |
27 | - | |
27 | + | else if player's gamemode is spectator: |
28 | broadcast "&c[AllChat] &7[観戦] %player% : &f%message%" | |
29 | else: | |
30 | broadcast "&c[AllChat] %player% &7: &f%message%" | |
31 | ||
32 | on join: | |
33 | command "/effect %player% clear" | |
34 | if {game} is set: | |
35 | if {oni::*} contains player: | |
36 | teleport player to {spawn.nige::%{map}%} | |
37 | else if {nige::*} contains player: | |
38 | teleport player to {spawn.nige::%{map}%} | |
39 | effect(player) | |
40 | else if {koori::*} contains player: | |
41 | teleport player to {spawn.nige::%{map}%} | |
42 | effect(player) | |
43 | else: | |
44 | send "{@logo} &a試合が終わるまで観戦です" | |
45 | set player's tab list name to "&7[観戦]%player%" | |
46 | teleport player to location {spawn.nige::%{map}%} | |
47 | set player's gamemode to spectator | |
48 | else: | |
49 | remove player from {koori::*} | |
50 | command "/scoreboard teams join nametag %player%" | |
51 | ||
52 | on quit: | |
53 | if {nige::*} contains player: | |
54 | remove player from {nige::*} | |
55 | ||
56 | command /spawnmap [<number>] [<text>] [<text>]: | |
57 | permission: skript.admib | |
58 | trigger: | |
59 | if arg-1 is set: | |
60 | if arg-2 is "add": | |
61 | if arg-3 is "oni": | |
62 | send "{@logo} &aマップ%arg-1%の鬼のスポーンを%location of player%に設定しました" | |
63 | set {spawn.oni::%arg-1%} to location of player | |
64 | else if arg-3 is "nige": | |
65 | send "{@logo} &eマップ%arg-1%の逃げのスポーンを%location of player%に設定しました" | |
66 | set {spawn.nige::%arg-1%} to location of player | |
67 | else if arg-2 is "remove": | |
68 | if arg-3 is "oni": | |
69 | send "{@logo} &aマップ%arg-1%の鬼のスポーンを削除しました" | |
70 | delete {spawn.oni::%arg-1%} | |
71 | if arg-3 is "nige": | |
72 | send "{@logo} &aマップ%arg-1%の逃げのスポーンを削除しました" | |
73 | delete {spawn.nige::%arg-1%} | |
74 | ||
75 | command /kaisi: | |
76 | permission: skript.admin | |
77 | trigger: | |
78 | set all player's flight mode to false | |
79 | {game} is not set | |
80 | set {game} to true | |
81 | set {map} to random integer between 1 and 3 | |
82 | broadcast "{@logo} &a鬼を決めます…" | |
83 | wait 1 seconds | |
84 | loop all players: | |
85 | {j.%loop-player%} is not set | |
86 | add loop-player to {_player::*} | |
87 | if number of {_player::*} is between 1 and 5: | |
88 | set {_n} to random player of {_player::*} | |
89 | command "/oni add %{_n}%" | |
90 | broadcast "{@logo} &a今回の鬼は&b%{_n}%&aさんです" | |
91 | else if number of {_player::*} is between 6 and 14: | |
92 | loop 2 times: | |
93 | set {_n} to random player of {_player::*} | |
94 | remove {_n} from {_player::*} | |
95 | command "/oni add %{_n}%" | |
96 | broadcast "{@logo} &a今回の鬼は&b%{_n}%&aさんです" | |
97 | else if number of {_player::*} is between 14 and 30: | |
98 | loop 3 times: | |
99 | set {_n} to random player of {_player::*} | |
100 | remove {_n} from {_player::*} | |
101 | command "/oni add %{_n}%" | |
102 | broadcast "{@logo} &a今回の鬼は&b%{_n}%&aさんです" | |
103 | wait 2 seconds | |
104 | set {game} to true | |
105 | loop all players: | |
106 | if {oni::*} contains loop-player: | |
107 | set loop-player's helmet to glowing ice named "&c【鬼装備】" | |
108 | set loop-player's chestplate to glowing leather chestplate named "&c【鬼装備】" | |
109 | set loop-player's leggings to glowing leather leggings named "&c【鬼装備】" | |
110 | set loop-player's boots to glowing leather boots named "&c【鬼装備】" | |
111 | dye loop-player's helmet light blue | |
112 | dye loop-player's chestplate light blue | |
113 | dye loop-player's leggings light blue | |
114 | dye loop-player's boots light blue | |
115 | teleport loop-player to {spawn.oni::%{map}%} | |
116 | set loop-player's tab list name to "&c[鬼]%loop-player%" | |
117 | else: | |
118 | {j.%loop-player%} is not set | |
119 | teleport loop-player to {spawn.nige::%{map}%} | |
120 | set loop-player's tab list name to "&a[逃げ]%loop-player%" | |
121 | command "/effect %loop-player% 1 10 2 true" | |
122 | give loop-player feather named "&bBooster" | |
123 | add loop-player to {nige::*} | |
124 | command "/setblock 560 4 200 redstone_block" | |
125 | command "/fill 584 12 194 584 5 182 ice" | |
126 | broadcast "{@logo} &c10&a秒後に鬼が動き始めます…" | |
127 | command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a" | |
128 | wait 5 seconds | |
129 | loop 5 times: | |
130 | broadcast "{@logo} &c%6-loop-number%&a秒後に鬼が動き始めます…" | |
131 | command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a" | |
132 | wait 1 seconds | |
133 | command "/fill 584 12 194 584 5 182 air" #map1 | |
134 | command "/fill 587 10 113 599 4 113 air" #map2 | |
135 | command "/fill 895 8 18 895 5 31 air" #map3-1 | |
136 | command "/fill 898 8 38 908 5 38 air" #nao3-2 | |
137 | command "/execute @a ~ ~ ~ /playsound minecraft:entity.wither.spawn master @a ~ ~ ~ 1 2" | |
138 | broadcast "{@logo} &b&l鬼が動き始めました!" | |
139 | set {time} to 300 | |
140 | set {time.color} to "&a" | |
141 | while {game} is set: | |
142 | wait 1 seconds | |
143 | remove 1 from {time} | |
144 | send action bar "&c&l【&e残り時間&8:%{time.color}%%{time}%&c&l &b%number of {nige::*}%人が生存中&c&l】" to all players | |
145 | if {time} is 150: | |
146 | set {time.color} to "&e" | |
147 | if {time} is 60: | |
148 | set {time.color} to "&c" | |
149 | if {time} is 30: | |
150 | broadcast "{@logo} &6残り30秒を切ったため逃走者にに発行、鬼にスピードがつきます" | |
151 | loop {nige::*}: | |
152 | command "/effect %loop-value% glowing 10000 255 true" | |
153 | loop {koori::*}: | |
154 | command "/effect %loop-value% glowing 10000 255 true" | |
155 | loop {oni::*}: | |
156 | command "/effect %loop-value% speed 100000 1 true" | |
157 | if number of {nige::*} is 0: | |
158 | execute console command "/owari" | |
159 | loop all players: | |
160 | teleport loop-player to location (532, 6, 284) | |
161 | broadcast "{@logo} &a全員が捕まったため、&c&l鬼側&aの&e勝利&aです!" | |
162 | else if {time} is 0: | |
163 | loop all players: | |
164 | teleport loop-player to location (532, 6, 284) | |
165 | broadcast "{@logo} &a生存者が逃げ切ったため、&b&l逃げ側&aの&e勝利&aです!" | |
166 | command "/owari" | |
167 | command /owari: | |
168 | permission: skript.admin | |
169 | trigger: | |
170 | set all player's flight mode to true | |
171 | delete {game} | |
172 | broadcast "{@logo} &aゲーム終了!" | |
173 | delete {nige::*} | |
174 | delete {tatti::*} | |
175 | loop {oni::*}: | |
176 | clear loop-value's inventory | |
177 | command "/oni allremove" | |
178 | loop {koori::*}: | |
179 | command "/kill @e[type=falling_block,name=%loop-value%]" | |
180 | delete {koori::*} | |
181 | loop all players: | |
182 | teleport loop-player to location (532, 6, 284) | |
183 | set loop-player's tab list name to "&f%loop-player%" | |
184 | set loop-player's gamemode to survival | |
185 | command "/effect %loop-player% clear" | |
186 | command "/clear %loop-player%" | |
187 | command "/fill 584 12 194 584 5 182 ice" #map1 | |
188 | command "/fill 587 10 113 599 4 113 ice" #map2 | |
189 | command "/fill 895 8 18 895 5 31 ice" #map3-1 | |
190 | command "/fill 898 8 38 908 5 38 ice" #nao3-2 | |
191 | ||
192 | command /nojoin: | |
193 | trigger: | |
194 | if {j.%player%} is not set: | |
195 | send "{@logo} &c不参加にしました" | |
196 | set {j.%player%} to "set" | |
197 | else: | |
198 | send "{@logo} &a自動参加になりました" | |
199 | delete {j.%player%} | |
200 | ||
201 | command /oni <text> [<player>]: | |
202 | permission: skript.admin | |
203 | trigger: | |
204 | if arg-1 is "add": | |
205 | if arg-2 is set: | |
206 | if {oni::*} do not contain arg-2: | |
207 | send "{@logo} &a鬼を%arg-2%にしました" | |
208 | add arg-2 to {oni::*} | |
209 | else: | |
210 | send "{@logo} &c%arg-2%は既に鬼に含まれています" | |
211 | else: | |
212 | send "&cプレイヤーを書いてください" | |
213 | else if arg-1 is "remove": | |
214 | if arg-2 is set: | |
215 | if {oni::*} contains arg-2: | |
216 | send "{@logo} &a%arg-2%を鬼から削除しました" | |
217 | remove arg-2 from {oni::*} | |
218 | else: | |
219 | send "{@logo} &c%arg-2%は鬼ではありません" | |
220 | else: | |
221 | send "&cプレイヤーを書いてください" | |
222 | else if arg-1 is "allremove": | |
223 | delete {oni::*} | |
224 | send "{@logo} &aすべてのプレイヤーを鬼から削除しました" | |
225 | else: | |
226 | send "{@logo} &c使用法 : ""/oni [add/remove] <player>" | |
227 | send "{@logo} &c例 : ""/oni add %player%"" であなたを鬼にします" | |
228 | send "{@logo} &c例 : ""/oni remove %player%"" であなたを鬼から消します" | |
229 | send "{@logo} &c例 : ""/oni allremove"" ですべてのプレイヤーを鬼から削除します" | |
230 | on damage of player: | |
231 | cancel event | |
232 | if attacker is player: | |
233 | {game} is set | |
234 | if {oni::*} contains attacker: | |
235 | if {oni::*} do not contain victim: | |
236 | {tatti::%victim%} is not set | |
237 | set {tatti::%victim%} to true | |
238 | broadcast "{@logo} &c%victim%が%attacker%によって捕まった!" | |
239 | set victim's tab list name to "&b[氷]%victim%" | |
240 | set victim's hunger to 0 | |
241 | command "/execute %victim% ~ ~ ~ /summon falling_block ~ ~ ~ {CustomName:""%victim%"",CustomNameVisible:1,NoGravity:1b,Block:""minecraft:ice"",Data:0,Time:1b,DropItem:0}" | |
242 | set victim's helmet to ice named "&b氷" | |
243 | set victim's chestplate to ice named "&b氷" | |
244 | set victim's leggings to ice named "&b氷" | |
245 | set victim's boots to ice named "&b氷" | |
246 | add victim to {koori::*} | |
247 | remove victim from {nige::*} | |
248 | effect(victim) | |
249 | else: | |
250 | if {oni::*} do not contain victim: | |
251 | {tatti::%attacker%} is not set | |
252 | {tatti::%victim%} is set | |
253 | broadcast "{@logo} &e%victim%が%attacker%によって救出されました!" | |
254 | set victim's tab list name to "&a[逃げ]%victim%" | |
255 | add victim to {nige::*} | |
256 | remove victim from {koori::*} | |
257 | command "/kill @e[type=falling_block,name=%victim%]" | |
258 | delete {tatti::%victim%} | |
259 | effect(victim) | |
260 | set victim's helmet to air | |
261 | set victim's chestplate to air | |
262 | set victim's leggings to air | |
263 | set victim's boots to air | |
264 | on inventory click: | |
265 | if clicked item's name is "&c【鬼装備】" or "&b氷": | |
266 | cancel event | |
267 | on drop: | |
268 | if event-item's name is "&c【鬼装備】" or "&b氷": | |
269 | cancel event | |
270 | function effect(p: player): | |
271 | if {koori::*} contains {_p}: | |
272 | command "effect %{_p}% slowness 10000 255 true" | |
273 | command "effect %{_p}% minecraft:jump_boost 10000 188 true" | |
274 | set {_p}'s hunger to 0 | |
275 | else: | |
276 | command "/effect %{_p}% clear" | |
277 | set {_p}'s hunger to 20 | |
278 | on any move: | |
279 | if {koori::*} contains player: | |
280 | set player's hunger to 0 | |
281 | else: | |
282 | set player's hunger to 20 | |
283 | execute console command "/tp @e[type=falling_block,name=%player%] %player%" | |
284 | on click with feather: | |
285 | if {nige::*} contains player: | |
286 | if event-item's name is "&bBooster": | |
287 | if {ct.%player%} is not set: | |
288 | set {ct.%player%} to true | |
289 | - | cancel event |
289 | + | |
290 | send "{@logo} &bBooster &aを使用した!" | |
291 | command "execute %player% ~ ~ ~ /playsound minecraft:entity.player.burp master %player% ~ ~ ~ 2" | |
292 | delete {ct.%player%} | |
293 | else: | |
294 | send "{@logo} &cクールダウン中です" | |
295 | on drop: | |
296 | event-item's name is "&bBooster" | |
297 | cancel event | |
298 | ||
299 | command /mute [<player>]: | |
300 | permission: skript.admin | |
301 | trigger: | |
302 | if arg 1 is not set: | |
303 | send "&cMuteしたいプレイヤーを選択して下さい!" | |
304 | else: | |
305 | set {Mute.%arg 1%} to true | |
306 | ||
307 | command /unmute [<player>]: | |
308 | permission: skript.admin | |
309 | trigger: | |
310 | if arg 1 is not set: | |
311 | send "&cUnMuteしたいプレイヤーを選択して下さい!" | |
312 | else: | |
313 | set {Mute.%arg 1%} to false | |
314 | ||
315 | command /fly: | |
316 | permission: skript.admin | |
317 | trigger: | |
318 | set player's flight mode to true | |
319 | ||
320 | command /unfly: | |
321 | permission: skript.admin | |
322 | trigger: | |
323 | set player's flight mode to false |