· 8 years ago · May 19, 2018, 05:10 AM
1# Official CodeUHC plugin #
2# Please, dont leak or buy this skript #
3
4# Version: BETA 1.0 #
5
6
7# Practice CODE #
8
9# Configuration #
10#
11#Worlds#
12options:
13 lobbyworld: lobbyuhc # Put the name of your lobby
14options:
15 RedditMode: false
16 RedditKickTime: 30 seconds
17 RedditKickMsg: &cGracias por jugar!
18# Prefix Messages #
19options:
20 Prefix: &5&lWix&6&lUHC &b
21 timebomb: &4[&fTimeBomb&4] &f%victim%'s ha esplotado
22 KillCount: &eTu tienes &c%{kc.%player%}% &ekills
23 KillCountOthers: &e%arg-1%'s tiene &c%{kc.%arg-1%}% &ekills
24 health: &eTu tienes &c%health of player% &4â¤
25 healthothers: &e%arg-1%'s tiene &c%health of arg-1% &4â¤
26 KillTopPrefix: &6[Top 10 Kills]
27 KillTopPlayers: &a%loop-value% - &e%{kills::%loop-value%}%
28# Name Items #
29options:
30 GameSettings: &eEdicion del UHC
31 BackPack: &cmochila
32 HeadName: &fcabeza %victim%'s
33 Practice: &cPractica
34 TwitterAPI: &5Wix&6UHC
35 CurrentConfiguration: &eEn configuracion
36# Chat Prefix #
37 hostprefix: &4&lHOST &a%player%:&e&l %colored message%
38 chatformat: &a%player%:&7 %message%
39#Scoreboard - Lobby#
40options:
41 boardlobby: &5&lWix&6&lUHC &cBETA
42 lobbyline8: &1&1&m-------------------
43 lobbyline7: &1
44 lobbyline6: &bJugadores:&6 %number of all players%
45 lobbyline5: &bHosteador: &6%{host}%
46 lobbyline4: &bTipo: &6%{Teams.LimitTwo}%%{Teams.Limit}%
47 lobbyline3: &2
48 lobbyline2: &bNetwork: @WixnerES
49 lobbyline1: &2&1&m-------------------
50# Scoreboard - FFA #
51options:
52 board: &5&lWix&6&lUHC &cBETA
53 line11: &9&1&m-------------------
54 line10: &bTipo de juego:&6 %{Time6}%%{Time5}%:%{Time4}%%{Time3}%:%{Time2}%%{Time1}%
55 line9: &bTus kills: &6%{kc.%loop-player%}%
56 line8: &bRestantes:&6 %{uhc.left}%/%{playersjoineduhc}%
57 line7: &bEspectadores: &6%{uhc.spectators}%
58 line6: &bHosteador: &6%{host}%
59 line5: &bBorder:&6 %{border}%
60 line4: &bPVP en: &6%{pvp.status}%
61 line3: &1
62 line2: &bNetwork: @WixnerES
63 line1: &1&1&m-------------------
64# Scoreboard - Teams #
65options:
66 teamboard: &5&lWix&6&lUHC &cBETA
67 teamline12: &1&1&m-------------------
68 teamline11: &bTipo de juego:&6 %{Time6}%%{Time5}%:%{Time4}%%{Time3}%:%{Time2}%%{Time1}%
69 teamline10: &bYour Kills: &6%{kc.%loop-player%}%
70 teamline9: &bTeam Kills: &6%{teamkills::%loop-player%}%
71 teamline8: &bRemaining:&6 %{uhc.left}%/%{playersjoineduhc}%
72 teamline7: &bSpectators: &6%{uhc.spectators}%
73 teamline6: &bHost: &6%{host}%
74 teamline5: &bCurrent Border:&6 %{border}%
75 teamline4: &bPVP: &6%{pvp.status}%
76 teamline3: &a
77 teamline2: &bSkripter: @SoyCode_
78 teamline1: &2&1&m-------------------
79options:
80 #TwitterAPI
81 ConsumerKey: 8ANaiOUD8y06Pj7pLobq9wd97
82 ConsumerSecret: NrVouRtgbYlAKA32S6oxiIH1YaAEfSH8dZjDVbWCIx3Zl7hQUp
83 AccessToken: 9L6rvFdhVDcAOZNEbEiTGfxXLC1cuNK
84 SecretToken: jrrqQVcZrXRXvbeOg4R1qL72hzhsBoA46RZVXnCHxxlwW
85 #The Post UHC
86 ServerName: Wixner [ES]
87 Scenarios: Escenarios
88 Type: Tipo
89 Host: Hosteador
90 WL-OFF: WL OFF
91 ServerIP: UHC.Wixner.tk [1.7/1.8]
92 #PostWinner
93 PostWinner: ¡Felicidades a %arg-1% Por ganar este UHC!%nl%%nl%Total de Kills: %{kc.%arg-1%}%%nl%Total de Wins: %{wins.%arg-1%}%
94options:
95 Cooldown-TimeBomb: 30 #Seconds
96 Cooldown-NoCleanUp: 20 #Seconds
97 LuckyFlowers-Percentage: 25 #Percentage of drop items
98#
99# Config Death Messages #
100options:
101 deathfall: &e%player% &cha muerto grandemente
102 deathbyplayer: [%{kc.%victim%}%] &e%player% &cha muerte por &e%attacker% &6[%{kc.%attacker%}%]
103 deathbyzombie: &e%player% &cha sido burlado por un &ezombie
104 deathbycreeper: &e%player% &cha sido burlado por un &ecreeper
105 deathbyskeleton: &e%player% &cha sido burlado por un &eEsqueleto
106 deathbyspider: &e%player% &cha sido burlado por una &earaña
107 deathbyenderman: &e%player% &cha sido burlado por un &eenderman
108 deathbydrown: &e%player% &chas drowned
109 deathbylava: &e%player% &cha nadado en lava :V
110#
111# Others #
112options:
113 nocommand: &cEste comando no se puede usar!
114 bowhealth: &6%victim% &3tiene &6%health of victim% &4â¤
115 goldenhead: &6Manzanas de PRO
116 nostart: &cEste uhc no ha comenzado
117 VictoryMessage: &aFelicidades a %arg-1% Por ganar este uhc, gracias a %{host}% por hostearlo
118 borderprefix: &6[&3Border&6]
119 shrinkmessage: &cEL border se esta achicando &e%arg-1%x%arg-1%&c
120 borderalert: &cEl border se esta desbaneciendo &e%{shrink1}%x%{shrink1}% &cin &e%{meetup}% &cminutes
121 finalheal: &b&lAl final se pondra vida xD
122 pvpalert: &b&lEl PvP esta activado
123 motdserver: &b&lWixnerUHC &7&m------ &aHosteador: %{host}% IP: Play.Wixner.tk
124 # Start Message #
125 startmessage: &7&m----&eGood Luck&7&m----
126#
127# Rules #
128options:
129 Rule1: &cSpec-Help no esta permitido
130 Rule2: &cBorder-Traps no esta permitido!
131 Rule3: &cStripMining o otras cosas en y-32
132 Rule4: &chacks o mods ilegales es motivo de ban permanente!
133 Rule5: &cXray es ban!
134 Rule6: &cLa final es de %{finalheal}% minutes
135 Rule7: &cPvP es en %{finalheal}% minutes
136 Rule8: &cMeetup is in %{meetup}% minutes
137 Rule9: &cThe worldborder is %{border}%x%{border}%
138 Rule10: &cThanks to %{host}% &cfor host the UHC, and thanks to all players for play the UHC!
139 # Only in Teams
140 YouCanBackpack: &cPuedes usar tu mochila con /bp
141 # Only in FFA
142 TruceIsNotAllowed: &cTruce is not allowed!
143# World Border Options #
144options:
145 WorldBorderMessage: &cNo puedes salir del border
146 WorldBorderKnockback: 2.5
147
148
149command /uhc [<text>]:
150 permission: uhc.admin, uhc.*
151 trigger:
152 if arg-1 is not set:
153 send "&cUse /uhc start"
154 else if arg-1 is "start":
155 if {Teams.Management} is true:
156 teleport player to {spawnuhc}
157 set {playersjoineduhc} to number of all players
158 delete {ffa}
159 teleport all players to player
160 execute player command "/§setborder %{borderstart}% uhcworld"
161 broadcast "&b&lScatter starts in 13 seconds."
162 wait 10 seconds
163 broadcast "&b&lScatter starts in 3 seconds."
164 wait 3 seconds
165 execute player command "/$4uhcstart"
166 remove 10 from {borderstart}
167 execute player command "/sca uhcworld %{borderstart}% teams 50"
168 add 10 to {borderstart}
169 set {started} to true
170 execute player command "/resetkt"
171 set {uhc.left} to number of all players
172 execute player command "/§resetbp reset"
173 loop all players:
174 heal the loop-player
175 set food bar to 20
176 clear loop-player's inventory
177 apply slowness 50 to the loop-player for 120 seconds
178 apply resistance 50 to the loop-player for 120 seconds
179 apply blindness 50 to the loop-player for 120 seconds
180 set {build::%loop-player%} to true
181 set {ingame::%loop-player%} to true
182 set {teamkills::%loop-player%} to 0
183 delete {practice::*}
184 delete {staffmode::*}
185 delete {frozen::*}
186 delete {spect::*}
187 reveal loop-player to all players
188 set loop-player's flight mode to false
189 add 1 to {gamesplayed.%loop-player%}
190 delete {combatlog::*}
191 broadcast "{@Prefix} &aUHC Rules!"
192 wait 2 seconds
193 broadcast "{@Prefix} {@YouCanBackpack}"
194 wait 2 seconds
195 broadcast "{@Prefix} {@Rule1}"
196 wait 2 seconds
197 broadcast "{@Prefix} {@Rule2}"
198 wait 2 seconds
199 broadcast "{@Prefix} {@Rule3}"
200 wait 2 seconds
201 broadcast "{@Prefix} {@Rule4}"
202 wait 2 seconds
203 broadcast "{@Prefix} {@Rule5}"
204 wait 2 seconds
205 broadcast "{@Prefix} {@Rule6}"
206 wait 2 seconds
207 broadcast "{@Prefix} {@Rule7}"
208 wait 2 seconds
209 broadcast "{@Prefix} {@Rule8}"
210 wait 2 seconds
211 broadcast "&a{@Prefix} {@Rule9}"
212 wait 2 seconds
213 broadcast "&a{@Prefix} {@Rule10}"
214 execute player command "/§l"
215 if {Teams.Management} is not set:
216 teleport player to {spawnuhc}
217 set {playersjoineduhc} to number of all players
218 delete {ffa}
219 teleport all players to player
220 execute player command "/§setborder %{borderstart}% uhcworld"
221 broadcast "&b&lScatter starts in 13 seconds."
222 wait 10 seconds
223 broadcast "&b&lScatter starts in 3 seconds."
224 wait 3 seconds
225 execute player command "/$4uhcstart"
226 remove 10 from {borderstart}
227 execute player command "/sca uhcworld %{borderstart}% solo 50"
228 add 10 to {borderstart}
229 set {started} to true
230 execute player command "/resetkt"
231 set {uhc.left} to number of all players
232 execute player command "/§resetbp reset"
233 loop all players:
234 heal the loop-player
235 set food bar to 20
236 clear loop-player's inventory
237 apply slowness 50 to the loop-player for 120 seconds
238 apply resistance 50 to the loop-player for 120 seconds
239 apply blindness 50 to the loop-player for 120 seconds
240 set {build::%loop-player%} to true
241 set {ingame::%loop-player%} to true
242 delete {practice::*}
243 delete {staffmode::*}
244 delete {frozen::*}
245 delete {spect::*}
246 reveal loop-player to all players
247 set loop-player's flight mode to false
248 add 1 to {gamesplayed.%loop-player%}
249 delete {combatlog::*}
250 broadcast "{@Prefix} &aUHC Rules!"
251 wait 2 seconds
252 broadcast "{@Prefix} {@TruceIsNotAllowed}"
253 wait 2 seconds
254 broadcast "{@Prefix} {@Rule1}"
255 wait 2 seconds
256 broadcast "{@Prefix} {@Rule2}"
257 wait 2 seconds
258 broadcast "{@Prefix} {@Rule3}"
259 wait 2 seconds
260 broadcast "{@Prefix} {@Rule4}"
261 wait 2 seconds
262 broadcast "{@Prefix} {@Rule5}"
263 wait 2 seconds
264 broadcast "{@Prefix} {@Rule6}"
265 wait 2 seconds
266 broadcast "{@Prefix} {@Rule7}"
267 wait 2 seconds
268 broadcast "{@Prefix} {@Rule8}"
269 wait 2 seconds
270 broadcast "&a{@Prefix} {@Rule9}"
271 wait 2 seconds
272 broadcast "&a{@Prefix} {@Rule10}"
273on quit:
274 {started} is true
275 {ingame::%player%} is set
276 remove 1 from {uhc.left}
277
278on death of a player:
279 {started} is true
280 {ingame::%victim%} is set
281 remove 1 from {uhc.left}
282 add 1 to {uhc.spectators}
283 add 1 to {kc.%attacker%}
284 set {respawn::%victim%} to victim's location
285 make the victim execute command "/§saveinv"
286
287on join:
288 {started} is true
289 {ingame::%player%} is set
290 add 1 to {uhc.left}
291
292command /$4uhcstart:
293 permission: uhc.admin
294 trigger:
295 set {pvp.status} to "Disabled"
296 execute player command "/wl add all"
297 execute player command "/wl on"
298 wait 5 seconds
299 set {uhc.spectators} to 0
300 execute console command "/time set 1"
301 execute console command "/mvrule naturalRegeneration false uhcworld"
302 execute console command "/mvrule doDaylightCycle false uhcworld"
303 disable pvp in all worlds
304 wait 22 seconds
305 broadcast "{@startmessage}"
306 loop all players:
307 restore inventory of loop-player from {kit.uhc}
308 set loop-player's helmet to {helmet.uhc}
309 set loop-player's chestplate to {chestplate.uhc}
310 set loop-player's leggings to {leggings.uhc}
311 set loop-player's boots to {boots.uhc}
312 execute player command "/starttime"
313 remove slowness from all players
314 remove resistance from all players
315 remove blindness from all players
316 set {_healtime} to "%{finalheal}% minutes" parsed as timespan
317 wait {_healtime}
318 loop all players:
319 heal the loop-player
320 set food bar to 20
321 enable pvp in all worlds
322 broadcast "{@Prefix} {@finalheal}"
323 broadcast "{@Prefix} {@pvpalert}"
324 set {pvp.status} to "Enabled"
325 broadcast "{@borderprefix} {@borderalert}"
326 set {_removetime} to "%{finalheal}%" parsed as number
327 remove {_removetime} from {meetup}
328 set {_meetuptime2} to "%{meetup}% minutes" parsed as timespan
329 wait {_meetuptime2}
330 {deathmatch.already} is true
331 broadcast "&6Deathmatch is active, no more border shrinks."
332 execute console command "setborder %{shrink1}% uhcworld"
333 wait 5 minutes
334 execute console command "setborder %{shrink2}% uhcworld"
335 wait 12 seconds
336 broadcast "&C&lWARNING: &6The border is now %{shrink2}%x%{shrink2}% you can't mine, camping or other."
337 wait 228 seconds
338 execute console command "setborder %{shrink3}% uhcworld"
339 wait 12 seconds
340 broadcast "&c&lWARNING: &6The host will assign the fights, nobody will fight without being assigned or they could be sanctioned, from now on it is forbidden to clean or steal loot, mine or other. all this will be sanctioned."
341 wait 228 seconds
342 execute console command "setborder %{shrink4}% uhcworld"
343 wait 15 seconds
344 {deathmatch} is true
345 broadcast "&cThe deathmatch is in 5 minutes."
346 broadcast "&bDeathmatch in &65 minutes"
347 wait 1 minute
348 broadcast "&bDeathmatch in &64 minutes"
349 wait 1 minute
350 broadcast "&bDeathmatch in &63 minutes"
351 wait 1 minute
352 broadcast "&bDeathmatch in &62 minutes"
353 wait 1 minute
354 broadcast "&bDeathmatch in &61 minutes"
355 wait 1 minute
356 broadcast "&c&lDeathmatch is now."
357 execute console command "/§setborder 15 uhcworld"
358 broadcast "&bGood luck to all players."
359 set {deathmatch.already} to true
360
361on place:
362 {deathmatch.already} is true
363 wait 5 seconds
364 set event-block to air
365
366on command "/$4uhcstart":
367 {started} is true
368 cancel event
369 send "{@nocommand}"
370
371on command "/uhc":
372 {started} is true
373 cancel event
374 send "{@nocommand}"
375
376on death:
377 {started} is true
378 victim is player
379 wait 2 seconds
380 delete {whitelisted::%victim%}
381 add 1 to {kills.%attacker%}
382 add 1 to {deaths.%victim%}
383on join:
384 {started} is false
385 heal the player
386 set food bar to 20
387 clear player's inventory
388 teleport player to {spawnuhc}
389 set {kc.%player%} to 0
390 delete {host.%player%}
391 set {uhc.left} to number of all players
392 clear player's inventory
393 set {warns.%player%} to 0
394 teleport player to {spawnuhc}
395 set level of player to 0
396 reveal player to all players
397 execute console command "/unspec %player%"
398 {staffmode::%player%} is set
399 make player execute command "/staff"
400
401on rightclick on horse or donkey:
402 if {horseless} is true:
403 cancel event
404
405on join:
406 world is "{@lobbyworld}"
407 player has permission "uhc.admin"
408 wait 2 seconds
409 set slot 0 of player to a book named "{@GameSettings}"
410 set slot 1 of player to a nether star named "{@TwitterAPI}"
411
412on join:
413 world is "{@lobbyworld}"
414 wait 2 seconds
415 set slot 8 of player to a paper named "{@CurrentConfiguration}"
416 set slot 4 of player to a iron sword named "{@Practice}"
417
418
419on rightclick holding ender chest:
420 if name of player's tool is "{@BackPack}":
421 wait 3 ticks
422 make player execute command "/bp"
423
424on rightclick holding book:
425 if name of player's tool is "{@GameSettings}":
426 wait 3 ticks
427 make player execute command "/edit config"
428
429on rightclick holding iron sword:
430 if name of player's tool is "{@Practice}":
431 wait 3 ticks
432 make player execute command "/practice"
433
434on rightclick holding paper:
435 if name of player's tool is "{@CurrentConfiguration}":
436 wait 3 ticks
437 make player execute command "/config"
438
439on rightclick holding nether star:
440 if name of player's tool is "{@TwitterAPI}":
441 wait 3 ticks
442 make player execute command "/postuhc"
443
444on place ender chest:
445 cancel event
446
447on server list ping:
448 set motd to "{@motdserver}"
449
450On consume a golden apple:
451 if item is golden apple item named "{@goldenhead}":
452 {started} is true
453 {goldenhead} is true
454 remove regeneration from player
455 remove absorption from player
456 apply regeneration 2 to the player for 10 seconds
457 apply absorption 1 to the player for 120 seconds
458 add 1 to {heads.%player%}
459 stop
460 else:
461 {started} is true
462 remove regeneration from player
463 remove absorption from player
464 apply regeneration 2 to the player for 5 seconds
465 apply absorption 1 to the player for 120 seconds
466 add 1 to {gapples.%player%}
467 {absorptionless} is true
468 remove absorption from player
469 stop
470
471On consume a golden apple:
472 {absorptionless} is true
473 remove absorption from player
474
475variables:
476 {whitelist} = false
477 {wlbroadcast} = op
478 {deathwl} = off
479
480command /whitelist [<text>] [<text>]:
481 description: Whitelist command
482 usage: /whitelist
483 permission: uhc.admin
484 permission message: §4You don't have permission to use this command
485 aliases: /wl
486 executable by: players and console
487 trigger:
488 if arg 1 is "on":
489 if {whitelist} is false:
490 set {whitelist} to true
491 if {wlbroadcast} is "op":
492 loop all players:
493 loop-player is op
494 message "{@Prefix} Whitelist on" to loop-player
495 else if {wlbroadcast} is "all":
496 broadcast "{@Prefix} Whitelist on"
497 else:
498 message "{@Prefix} Whitelist on" to command sender
499 else:
500 message "{@Prefix} The whitelist is already on!" to command sender
501
502 else if arg 1 is "off":
503 if {whitelist} is true:
504 set {whitelist} to false
505 if {wlbroadcast} is "op":
506 loop all players:
507 loop-player is op
508 message "{@Prefix} Whitelist off" to loop-player
509 else if {wlbroadcast} is "all":
510 broadcast "{@Prefix} Whitelist off"
511 else:
512 message "{@Prefix} Whitelist off" to command sender
513 else:
514 message "{@Prefix} The whitelist is already off!" to command sender
515
516 else if arg 1 is "add":
517 if arg 2 is not set:
518 message "{@Prefix} Please set a player or all players to add to the whitelist" to command sender
519 else if arg 2 is "all":
520 loop all players:
521 set {whitelisted::%loop-player%} to true
522 if {wlbroadcast} is "op":
523 loop all players:
524 loop-player is op
525 message "{@Prefix}All whitelisted" to loop-player
526 else if {wlbroadcast} is "all":
527 broadcast "{@Prefix} All whitelisted"
528 else:
529 message "{@Prefix} All whitelisted" to command sender
530 else:
531 set {whitelisted::%arg 2%} to true
532 if {wlbroadcast} is "op":
533 loop all players:
534 loop-player is op
535 message "{@Prefix} %arg 2% added to whitelist" to loop-player
536 else if {wlbroadcast} is "all":
537 broadcast "{@Prefix} %arg 2% added to whitelist"
538 else:
539 message "{@Prefix} %arg 2% added to whitelist" to command sender
540
541 else if arg 1 is "remove":
542 if arg 2 is not set:
543 message "{@Prefix}Please set a player or all players to add to the whitelist" to command sender
544 else if arg 2 is "all":
545 clear {whitelisted::*}
546 if {wlbroadcast} is "op":
547 loop all players:
548 loop-player is op
549 message "{@Prefix} Whitelist emptied" to loop-player
550 else if {wlbroadcast} is "all":
551 broadcast "{@Prefix} Whitelist emptied"
552 else:
553 message "{@Prefix} Whitelist emptied" to command sender
554 else:
555 delete {whitelisted::%arg 2%}
556 if {wlbroadcast} is "op":
557 loop all players:
558 loop-player is op
559 message "{@Prefix} %arg 2% removed from whitelist" to loop-player
560 else if {wlbroadcast} is "all":
561 broadcast "{@Prefix} %arg 2% removed from whitelist"
562 else:
563 message "{@Prefix} %arg 2% removed from whitelist" to command sender
564
565 else if arg 1 is "list":
566 loop {whitelisted::*}:
567 add "%loop-index%" to {_Temp::*}
568 message "{@Prefix} Whitelisted players:" to command sender
569 message "%{_Temp::*}%" to command sender
570
571 else:
572 message "{@Prefix} List of available commands:" to command sender
573 message "/whitelist on &7- Turns the whitelist on" to command sender
574 message "/whitelist off &7- Turns the whitelist off" to command sender
575 message "/whitelist add <player/all> &7- Adds a player or everyone on the server to the whitelist" to command sender
576 message "/whitelist remove <player/all> &7- Removes a player from the whitelist or clears the whitelist" to command sender
577 message "/whitelist list &7- Lists everyone on the whitelist currently" to command sender
578 message "To access the default whitelist, do /bukkit:whitelist" to command sender
579on connect:
580 {whitelist} is true
581 {whitelisted::%player%} is not set
582 player does not have permission "uhc.admin" or "donator.whitelist"
583 kick the player due to "&7You can't join this server but%nl%%nl%&7the whitelist is &a&lON"
584
585on connect:
586 {loadingmap} is true
587 kick the player due to "{@Prefix} &eLoading map!"
588
589on command "/edit config":
590 player does not have permission "uhc.admin"
591 cancel event
592 send "&eOnly %{host}% &ecan do this!"
593
594on death:
595 victim is player
596 {deathwl} is "on"
597 delete {whitelisted::%victim%}
598
599command /game <text> <player>:
600 permission: donator.whitelist
601 trigger:
602 if arg-1 is "add":
603 if arg-2 is set:
604 execute console command "/wl add %arg-2%"
605 broadcast "{@Prefix} &e%arg-2% added to the whitelist by %player%"
606 set {game::%player%} to true
607on command "/game":
608 {game::%player%} is true
609 cancel event
610
611command /host <text> <player>:
612 permission: uhc.admin
613 trigger:
614 if arg 1 is "add":
615 delete {rank.%arg-2%}
616 set {host} to arg-2
617 broadcast "&a%arg-2% is the new host of UHC!"
618 execute console command "/op %arg-2%"
619 set {rank.%arg-2%} to "host"
620 if arg 1 is "remove" or "delete":
621 set {host} to "&c"
622 broadcast "&a%arg-2% no is the host of UHC!"
623 execute console command "/deop %arg-2%"
624 delete {rank.%arg-2%}
625 if arg 2 is not set:
626 send "&cUse /host add/remove <player>"
627
628command /practice [<text>]:
629 trigger:
630 if arg 1 is "on" or "enable":
631 player has permission "uhc.admin"
632 send "&aPractice has been &2ENABLED."
633 set {ffa} to true
634 if arg 1 is "off" or "disable":
635 player has permission "uhc.admin"
636 send "&aPractice has been &cDISABLED."
637 delete {ffa}
638 loop all players in "uhcpractice":
639 make loop-player execute command "/pleave"
640 if arg-1 is not set:
641 {ffa} is true
642 execute console command "/mv tp %player% uhcpractice"
643 clear player's inventory
644 heal the player
645 command "/stuff %player%"
646 heal the player
647 set player's gamemode to survival
648 set {practice::%player%} to true
649 delete {staffmode::%player%}
650 reveal player to all players
651
652
653command /build <text>:
654 permission: uhc.admin
655 trigger:
656 if arg 1 is "on":
657 set {build::%player%} to true
658 send "&eBuild &6» &aON"
659 if arg 1 is "off":
660 delete {build::%player%}
661 send "&eBuild &6» &cOFF"
662
663command /pleave:
664 aliases: /practiceleave
665 trigger:
666 if {practice::%player%} is true:
667 teleport player to {spawnuhc}
668 clear player's inventory
669 heal the player
670 delete {practice::%player%}
671 set slot 8 of player to a paper named "{@CurrentConfiguration}"
672 set slot 4 of player to a iron sword named "{@Practice}"
673 player has permission "uhc.admin"
674 set slot 0 of player to a book named "{@GameSettings}"
675 set slot 1 of player to a nether star named "{@TwitterAPI}"
676
677command /stuff <player>:
678 executable by: console
679 trigger:
680 clear arg-1's inventory
681 wait 3 ticks
682 equip arg-1 with a iron helmet of unbreaking 10 and protection 2 named "&eHelmet"
683 equip arg-1 with a diamond chestplate of unbreaking 10 and protection 2 named "&eChestplate"
684 equip arg-1 with a iron leggings of unbreaking 10 and protection 2 named "&eLeggings"
685 equip arg-1 with a diamond boots of unbreaking 10 and protection 2 named "&eBoots with the fur"
686 give arg-1 a diamond sword of unbreaking 10 and sharpness 2 named "&eSword"
687 give arg-1 1 fishing rod named "&eFishing Rod"
688 give arg-1 a bow of infinity 1 and unbreaking 5 and power 1 named "&eBow"
689 give arg-1 1 arrow named "&eArrow"
690 give arg-1 1 golden apple named "&bGolden Apple"
691 stop
692
693on death:
694 {ffa} is true
695 clear drops
696 clear dropped items
697 apply regeneration 10 to the attacker for 2 seconds
698 apply speed 3 to the attacker for 2 seconds
699on spawn:
700 {hs} is true
701 entity is a horse
702 cancel the event
703on death:
704 if {ffa} is true:
705 attacker is a player
706 victim is a player
707 send "{@Prefix}&eYou killed &a%victim%!" to the attacker
708 send "{@Prefix}&eYou were killed by: &c%attacker%&r!" to the victim
709 give attacker 1 golden apple named "&bGolden Apple"
710
711on death:
712 if {ffa} is true:
713 set the death message to ""
714
715on projectile hit:
716 wait 15 seconds
717 delete the arrow
718
719on respawn:
720 {ffa} is true
721 teleport player to {spawnuhc}
722 delete {practice::%player%}
723 wait 1.2 seconds
724 set slot 8 of player to a paper named "{@CurrentConfiguration}"
725 set slot 4 of player to a iron sword named "{@Practice}"
726 player has permission "uhc.admin"
727 set slot 0 of player to a book named "{@GameSettings}"
728 set slot 1 of player to a nether star named "{@TwitterAPI}"
729
730on command "/a":
731 {practice::%player%} is true
732 cancel event
733 send "&cError: Command blocked!"
734
735on command "/practice":
736 {practice::%player%} is true
737 cancel event
738 send "&cError: Command blocked!"
739
740on command "/kt":
741 {started} is false
742 cancel event
743 send "{@nostart}"
744
745on command "/kc":
746 {started} is false
747 cancel event
748 send "{@nostart}"
749
750on command "/h":
751 {started} is false
752 cancel event
753 send "{@nostart}"
754On death of a player:
755 if attacker is a player:
756
757 if {kills::%attacker%} is not set:
758 set {kills::%attacker%} to 0
759
760 add 1 to {kills::%attacker%}
761 stop
762
763command /kt:
764
765 trigger:
766
767 loop {kills::*}:
768 add 1 to {_size}
769 if {_low.to.high.list::%loop-value%} is not set:
770 set {_low.to.high.list::%loop-value%} to loop-index
771 else:
772 set {_n} to 0
773 loop {_size} times:
774 set {_n} to {_n}+1
775 {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
776 set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
777 stop loop
778 wait 1 tick
779 set {_n} to size of {_low.to.high.list::*}
780 loop {_low.to.high.list::*}:
781 set {_high.to.low.list::%{_n}%} to loop-value
782 set {_n} to {_n}-1
783 wait 1 tick
784 send "{@KillTopPrefix}" to player
785 loop {_high.to.low.list::*}:
786 add 1 to {_result}
787 send "{@KillTopPlayers}" to player
788 if {_result} is 10:
789 stop
790
791on command "/mlg":
792 if {staffmode::%player%} is true:
793 cancel event
794 send "&cCommand blocked for Staff!"
795 if {spect::%player%} is true:
796 cancel event
797 send "&cCommand blocked for Spectators!"
798
799command /resetkt:
800 permission: uhc.admin, uhc.*
801 trigger:
802 delete {kills::*}
803 delete {_high.to.low.list::*}
804 delete {_size}
805 delete {_n}
806 delete {_high.to.low.list::%{_n}%}
807
808on death of player:
809 {started} is true
810 set death message to ""
811 damage was caused by fall
812 broadcast "{@deathfall}"
813
814on death of player:
815 {started} is true
816 set death message to ""
817 attacker is a player
818 broadcast "{@deathbyplayer}"
819
820on death of player:
821 {started} is true
822 set death message to ""
823 attacker is a zombie
824 broadcast "{@deathbyzombie}"
825
826on death of player:
827 {started} is true
828 set death message to ""
829 attacker is a creeper
830 broadcast "{@deathbycreeper}"
831
832on death of player:
833 {started} is true
834 set death message to ""
835 attacker is a skeleton
836 broadcast "{@deathbyskeleton}"
837
838on death of player:
839 {started} is true
840 set death message to ""
841 attacker is a spider
842 broadcast "{@deathbyspider}"
843
844on death of player:
845 {started} is true
846 set death message to ""
847 attacker is a enderman
848 broadcast "{@deathbyenderman}"
849
850on death of player:
851 {started} is true
852 set death message to ""
853 damage was caused by drowning
854 broadcast "{@deathbydrown}"
855
856on death of player:
857 {started} is true
858 set death message to ""
859 damage was caused by lava
860 broadcast "{@deathbylava}"
861
862on weather change to rain:
863 set weather to sunny
864
865on weather change to thundering:
866 set weather to sunny
867
868on join:
869 {gapples.%player%} is not set
870 {kills.%player%} is not set
871 {deaths.%player%} is not set
872 {gapples.%player%} is not set
873 {heads.%player%} is not set
874 {wins.%player%} is not set
875 {Diamonds::%player%} is not set
876 {Gold::%player%} is not set
877 {Iron::%player%} is not set
878 {Coal::%player%} is not set
879 {Lapis::%player%} is not set
880 {Redstone::%player%} is not set
881 {Emerald::%player%} is not set
882 {Quartz::%player%} is not set
883 {gamesplayed.%player%} is not set
884 set {gapples.%player%} to 0
885 set {kills.%player%} to 0
886 set {deaths.%player%} to 0
887 set {gapples.%player%} to 0
888 set {heads.%player%} to 0
889 set {wins.%player%} to 0
890 set {Diamonds::%player%} to 0
891 set {Gold::%player%} to 0
892 set {Iron::%player%} to 0
893 set {Coal::%player%} to 0
894 set {Lapis::%player%} to 0
895 set {Redstone::%player%} to 0
896 set {Emerald::%player%} to 0
897 set {Quartz::%player%} to 0
898 set {gamesplayed.%player%} to 0
899
900command /win <player>:
901 permission: uhc.admin
902 trigger:
903 broadcast "{@VictoryMessage}"
904 set {finished} to true
905 add 1 to {wins.%arg-1%}
906 tweet "{@PostWinner}"
907
908command /resetstats <player>:
909 permission: uhc.admin
910 trigger:
911 set {gapples.%arg-1%} to 0
912 set {kills.%arg-1%} to 0
913 set {deaths.%arg-1%} to 0
914 set {gapples.%arg-1%} to 0
915 set {heads.%arg-1%} to 0
916 set {wins.%arg-1%} to 0
917 set {Diamonds::%arg-1%} to 0
918 set {Gold::%arg-1%} to 0
919 set {Iron::%arg-1%} to 0
920 set {Coal::%arg-1%} to 0
921 set {Lapis::%arg-1%} to 0
922 set {Redstone::%arg-1%} to 0
923 set {Emerald::%arg-1%} to 0
924 set {Quartz::%arg-1%} to 0
925 set {gamesplayed.%arg-1%} to 0
926 send "&aStats of %arg-1% reseted!"
927
928command /stats [<player>]:
929 aliases: /estadisticas, /estats, /statistics, /estatistics
930 trigger:
931 if arg 1 is not set:
932 open chest with 3 rows named "&c%player%" to player
933 format slot 10 of player with beacon named "&eWins: &f%{wins.%player%}%" to be unstealable
934 format slot 11 of player with diamond sword named "&aKills: &f%{kills.%player%}%" to be unstealable
935 format slot 12 of player with zombie head named "&cDeaths: &f%{deaths.%player%}%" to be unstealable
936 format slot 14 of player with golden apple named "&bGolden Apple's Eaten: &f%{gapples.%player%}%" to be unstealable
937 format slot 15 of player with golden apple named "{@goldenhead}'s Eaten: &f%{heads.%player%}%" to be unstealable
938 format slot 16 of player with diamond named "&bOres Mined" with lore "&bDiamond Ore Mined: %{Diamonds::%player%}%||&eGold Ore Mined: %{Gold::%player%}%||&7Iron Ore Mined: %{Iron::%player%}%||&8Coal Ore Mined: %{Coal::%player%}%||&3Lapis Lazuli Ore Mined: %{Lapis::%player%}%||&cRestone Ore Mined: %{Redstone::%player%}%||&aEmerald Ore Mined: %{Emerald::%player%}%||&fNether Quartz Ore Mined: %{Quartz::%player%}%" to be unstealable
939 if arg 1 is set:
940 open chest with 3 rows named "&c%arg-1%" to player
941 format slot 10 of player with beacon named "&eWins: &f%{wins.%arg-1%}%" to be unstealable
942 format slot 11 of player with diamond sword named "&aKills: &f%{kills.%arg-1%}%" to be unstealable
943 format slot 12 of player with zombie head named "&cDeaths: &f%{deaths.%arg-1%}%" to be unstealable
944 format slot 14 of player with golden apple named "&bGolden Apple's Eaten: &f%{gapples.%arg-1%}%" to be unstealable
945 format slot 15 of player with golden apple named "{@goldenhead}'s Eaten: &f%{heads.%arg-1%}%" to be unstealable
946 format slot 16 of player with diamond named "&bOres Mined" with lore "&bDiamond Ore Mined: %{Diamonds::%arg-1%}%||&eGold Ore Mined: %{Gold::%arg-1%}%||&7Iron Ore Mined: %{Iron::%arg-1%}%||&8Coal Ore Mined: %{Coal::%arg-1%}%||&3Lapis Lazuli Ore Mined: %{Lapis::%arg-1%}%||&cRestone Ore Mined: %{Redstone::%arg-1%}%||&aEmerald Ore Mined: %{Emerald::%arg-1%}%||&fNether Quartz Ore Mined: %{Quartz::%arg-1%}%" to be unstealable
947
948on mine of diamond ore:
949 if {started} is true:
950 add 1 to {Diamonds::%player%}
951
952on mine of gold ore:
953 if {started} is true:
954 add 1 to {Gold::%player%}
955
956on mine of iron ore:
957 if {started} is true:
958 add 1 to {Iron::%player%}
959
960on mine of coal ore:
961 if {started} is true:
962 add 1 to {Coal::%player%}
963
964on mine of lapis ore:
965 if {started} is true:
966 add 1 to {Lapis::%player%}
967
968on mine of redstone ore:
969 if {started} is true:
970 add 1 to {Redstone::%player%}
971
972on mine of emerald ore:
973 if {started} is true:
974 add 1 to {Emerald::%player%}
975
976on mine of nether quartz ore:
977 if {started} is true:
978 add 1 to {Quartz::%player%}
979
980command /kc [<player>]:
981 trigger:
982 if arg 1 is not set:
983 send "{@KillCount}"
984 if arg 1 is set:
985 send "{@KillCountOthers}"
986
987command /h [<player>]:
988 trigger:
989 if arg 1 is not set:
990 send "{@health}"
991 if arg 1 is set:
992 send "{@healthothers}"
993
994command /apples [<text>] [<int>]:
995 permission: uhc.admin
996 aliases: /applerates, /arates, /appler
997 usage: /apples [<set:reset>] [<rate (1-100)>]
998 trigger:
999 if arg-1 is "reset":
1000 broadcast "{@Prefix} Apple Rates set to Vanilla"
1001 delete {rates::apples}
1002 else if arg-1 is "set":
1003 if arg-2 is not set:
1004 send "{@Prefix} You must specify a rate to set it to!" to command sender
1005 stop
1006 else if arg-2 is less than 0:
1007 send "{@Prefix} No number lower than 0!" to command sender
1008 stop
1009 else if arg-2 is greater than 100:
1010 stop
1011 set {rates::apples} to arg-2
1012 broadcast "{@Prefix} Apple Rates set to %arg-2%%%"
1013 else:
1014 if {rates::apples} is set:
1015 send "{@Prefix} Current Apple Rates: %{rates::apples}%%%"
1016 else:
1017 send "{@Prefix} Current Apple Rates: Vanilla"
1018 send "{@Prefix} /apples [<set:reset>] [<rate (1-100)>]"
1019
1020command /flint [<text>] [<int>]:
1021 permission: uhc.admin
1022 aliases: /flintrates, /flintr, /frates
1023 usage: /flintrates [<set:reset>] [<rate (1-100)>]
1024 trigger:
1025 if arg-1 is "reset":
1026 broadcast "{@Prefix} Flint Rates set to Vanilla"
1027 delete {rates::flint}
1028 else if arg-1 is "set":
1029 if arg-2 is not set:
1030 send "{@Prefix} You must specify a rate to set it to!" to command sender
1031 stop
1032 else if arg-2 is less than 0:
1033 send "{@Prefix} No number lower than 0!" to command sender
1034 stop
1035 else if arg-2 is greater than 100:
1036 send "{@Prefix} No number higher than 100!" to command sender
1037 stop
1038 set {rates::flint} to arg-2
1039 broadcast "{@Prefix} Flint Rates set to %arg-2%%%"
1040 else:
1041 if {rates::flint} is set:
1042 send "{@Prefix} Current Flint Rates: %{rates::flint}%%%"
1043 else:
1044 send "{@Prefix} Current Flint Rates: Vanilla"
1045 send "{@Prefix} /flint [<set:reset>] [<rate (1-100)>]"
1046
1047on break of gravel:
1048 event-player's gamemode is survival
1049 world is not "pvparena" or "{@lobbyworld}" or "uhcpractice"
1050 if {rates::flint} is not set:
1051 stop
1052 cancel the event
1053 set the event-block to air
1054 set {_chance} to a random integer between 1 and 100
1055 if {_chance} is between -1 and {rates::flint}:
1056 drop 1 flint at event-block
1057 else:
1058 drop 1 gravel at event-block
1059
1060on leaves decay:
1061 world is not "pvparena" or "{@lobbyworld}" or "uhcpractice"
1062 if {rates::apples} is not set:
1063 stop
1064 cancel the event
1065 set the event-block to air
1066 chance of {rates::apples}%:
1067 drop 1 apple at event-block
1068 if event-block is oak leaves:
1069 chance of 5%
1070 drop 1 oak sapling at event-block
1071 else if event-block is spruce leaves:
1072 chance of 5%
1073 drop 1 spruce sapling at event-block
1074 else if event-block is birch leaves:
1075 chance of 5%
1076 drop 1 birch sapling at event-block
1077 else if event-block is jungle leaves:
1078 chance of 5%
1079 drop 1 jungle sapling at event-block
1080 else if event-block is acacia leaves:
1081 chance of 5%
1082 drop 1 acacia sapling at event-block
1083 else if event-block is dark oak leaves:
1084 chance of 5%
1085 drop 1 dark oak sapling at event-block
1086
1087on break of leaves:
1088 event-player's gamemode is survival
1089 world is not "pvparena" or "{@lobbyworld}" or "uhcpractice"
1090 if {rates::apples} is not set:
1091 stop
1092 if event-player is holding shears:
1093 false is true
1094 stop
1095 if false is true:
1096 event-block is not oak leaves or dark oak leaves
1097 stop
1098 cancel the event
1099 set the event-block to air
1100 chance of {rates::apples}%:
1101 drop 1 apple at event-block
1102 if event-block is oak leaves:
1103 chance of 5%
1104 drop 1 oak sapling at event-block
1105 else if event-block is spruce leaves:
1106 chance of 5%
1107 drop 1 spruce sapling at event-block
1108 else if event-block is birch leaves:
1109 chance of 5%
1110 drop 1 birch sapling at event-block
1111 else if event-block is jungle leaves:
1112 chance of 5%
1113 drop 1 jungle sapling at event-block
1114 else if event-block is acacia leaves:
1115 chance of 5%
1116 drop 1 acacia sapling at event-block
1117 else if event-block is dark oak leaves:
1118 chance of 5%
1119 drop 1 dark oak sapling at event-block
1120
1121command /§resetbp [<text>]:
1122 permission: uhc.admin, uhc.*
1123 trigger:
1124 if arg-1 is "reset":
1125 loop all players:
1126 clear loop-player's ender chest
1127 delete {teaminv::*}
1128 stop
1129
1130command /backpack:
1131 aliases: /bp
1132 trigger:
1133 if {backpack} is true:
1134 if {Teams.InTeam::%player%} is not set:
1135 open the player's ender chest to the player
1136 stop
1137 else:
1138 if {teaminv::%{Teams.InTeam::%player%}%} is not set:
1139 open the player's ender chest to the player
1140 set {teaminv::%{Teams.InTeam::%player%}%} to "%command sender%" parsed as offline player
1141 stop
1142 else:
1143 open {teaminv::%{Teams.InTeam::%player%}%}'s ender chest to the player
1144 else:
1145 message "{@Prefix} &cBackpacks disabled!"
1146
1147command /giveall <item> [<integer>]:
1148 usage: /giveall <item> [<amount>]
1149 permission: uhc.admin
1150 trigger:
1151 if arg-2 is more than 1:
1152 set {_amt} to arg-2
1153 else:
1154 set {_amt} to 1
1155 loop all players:
1156 loop {_amt} times:
1157 if loop-player has space for (1 of (arg-1)):
1158 give loop-player (1 of (arg-1))
1159 else:
1160 drop (1 of (arg-1)) at (location 0.5 above loop-player)
1161 broadcast "&a%sender% &7Give all players &c%{_amt}% %arg-1%'s"
1162
1163on command "/config":
1164 cancel event
1165 open chest with 3 rows named "&c&lCodeUHC Config" to player
1166 format slot 0 of player with paper named "&eScenarios" with lore "&aView Scenarios." to close then run "§codejuanzoovoltrix %player% sub"
1167 format slot 2 of player with clock named "&eTimes" with lore "&aView the times." to close then run "3dashdjadasdvl %player% times"
1168 format slot 11 of player with potion:16421 named "&4&lFinalHeal:" with lore "&c%{finalheal}% minutes" to be unstealable
1169 format slot 20 of player with bedrock named "&4&lBorder Shrink:" with lore "&c%{meetup}% minutes" to be unstealable
1170 format slot 4 of player with bedrock named "&eBorders" with lore "&aView border shrinks." to close then run "§ltoxicnub %player% times"
1171 format slot 6 of player with book named "&eOthers" with lore "&aView Nether and potions." to close then run "§lxd23xd23ddas %player% sc"
1172 format slot 8 of player with apple named "&eApple Rate" with lore "&a%{rates::apples}%%%" to be unstealable
1173
1174on load:
1175 wait 1 second
1176 set {started} to false
1177 set {deathmatch.already} to false
1178 set {loadingmap} to true
1179 set {deathmatch} to false
1180 execute console command "/regenmap"
1181 set {playersjoineduhc} to 0
1182 delete {orefrenzy}
1183 delete {_removetime}
1184 set {host} to "&c"
1185 set {borderstart} to "1000"
1186 set {shrink1} to "500"
1187 set {naturalRegeneration} to "OFF"
1188 set {shrink2} to "100"
1189 set {shrink3} to "50"
1190 set {horsehealing} to "OFF"
1191 set {naturalregeneration} to "OFF"
1192 set {nopotions} to "OFF"
1193 set {shrink4} to "25"
1194 delete {combatlog::*}
1195 delete {Stuff::*}
1196 set {gods} to "OFF"
1197 execute console command "/team man on"
1198 execute console command "/teamreset"
1199 wait 1 second
1200 execute console command "/team man off"
1201 execute console command "/wb uhcworld clear"
1202 set {finalheal} to 10
1203 set {meetup} to 50
1204 set {rates::flint} to 1
1205 set {rates::apples} to 1
1206 execute console command "/wb setmsg {@Prefix} {@WorldBorderMessage}"
1207 execute console command "/wb knockback {@WorldBorderKnockback}"
1208 execute console command "/wb whoosh false"
1209 execute console command "/wl remove all"
1210 set {Time1} to 0
1211 set {Time2} to 0
1212 set {Time3} to 0
1213 set {Time4} to 0
1214 set {Time5} to 0
1215 set {Time6} to 0
1216 set {finished} to false
1217 set {redditmode} to {@RedditMode}
1218 delete {resurrect::*}
1219 delete {respawn::*}
1220 delete {build::*}
1221 delete {game::*}
1222 delete {ingame::*}
1223 delete {teamkills::*}
1224 delete {muted::*}
1225 delete {practice::*}
1226 delete {spect::*}
1227 set {uhc.spectators} to 0
1228 set {uhc.left} to 0
1229 delete {staffmode::*}
1230 delete {frozen::*}
1231 set {nether.status} to "OFF"
1232 execute console command "/mv modify set pvp false uhcpractice"
1233 execute console command "/mv modify set hunger false uhcpractice"
1234 execute console command "/mv modify set animals false uhcpractice"
1235 execute console command "/mv modify set monsters false uhcpractice"
1236 execute console command "/mv modify set pvp true uhcworld"
1237 delete {Scatter.DontUnloadChunks}
1238 delete {Scatter.Scattering::*}
1239 delete {SchedueldScatter::*}
1240 delete {practice}
1241
1242on load:
1243 {practice.world} is not set
1244 execute console command "/mv create uhcpractice normal -t flat"
1245 wait 1 second
1246 execute console command "/mv confirm"
1247 make console execute command "/wb uhcpractice clear"
1248 make console execute command "/wb uhcpractice rectangular"
1249 make console execute command "/wb uhcpractice setcorners 100 100 -100 -100"
1250 set {practice.world} to "already"
1251
1252on load:
1253 twitter debug connect with consumer key "{@ConsumerKey}", consumer secret "{@ConsumerSecret}", access token "{@AccessToken}" and secret token "{@SecretToken}"
1254 register new shapeless recipe for golden apple item named "{@goldenhead}" using gold ingot, gold ingot, gold ingot, gold ingot, player head, gold ingot, gold ingot, gold ingot, gold ingot
1255
1256command /sca [<world>] [<int>] [<text>] [<int>] [<int=0>] [<int=0>]:
1257 aliases: /scatterall, /scatterteam, /scatterteams
1258 permission: uhc.admin
1259 trigger:
1260 if arg-1 is not set:
1261 send "&7 &7/sca &r<&7world&r> <&7radius&r> <&7team&r:&7*&r:&7player&r> [&7mindist&r] [&7x&r] [&7z&r]"
1262 stop
1263 if arg-2 is not set:
1264 send "&7 &7/sca &r<&7world&r> <&7radius&r> <&7team&r:&7*&r:&7player&r> [&7mindist&r] [&7x&r] [&7z&r]"
1265 stop
1266 if arg-3 is not set:
1267 send "&7 &7/sca &r<&7world&r> <&7radius&r> <&7team&r:&7*&r:&7player&r> [&7mindist&r] [&7x&r] [&7z&r]"
1268 stop
1269 set {_X} to arg-5
1270 set {_Z} to arg-6
1271 if arg-3 is "*" or "**" or "all" or "s" or "solo" or "solos":
1272 if command sender is console:
1273 stop
1274 set {_ToScatter::*} to (all players)
1275 loop all players:
1276 {spect::%loop-player%} is true
1277 remove loop-player from {_ToScatter::*}
1278 set {_Size} to (size of {_ToScatter::*})
1279 if arg-4 is set:
1280 if arg-4 is equal to 0:
1281 set {_Mindist} to (((arg-2 * 2) - 250)/{_Size})*3.5
1282 else:
1283 set {_Mindist} to arg-4
1284 else:
1285 set {_Mindist} to (((arg-2 * 2) - 250)/{_Size})*3.5
1286 loop ({_Size}) times:
1287 loop 1000 times:
1288 if (loop-number-2) is 1000:
1289 stop
1290 set {_Location.Good} to true
1291 set {_Location.Sky} to (the location at (random integer between ({_X}-arg-2) and ({_X}+arg-2)), 255, (random integer between ({_Z}-arg-2) and ({_Z}+arg-2)) of the world (arg-1))
1292 loop ((loop-number-1)-1) times:
1293 (distance between {_Location.Sky} and {_GoodLocation.Sky::%loop-number-3%}) is less than ({_Mindist})
1294 delete {_Location.Good}
1295 if {_Location.Good} is true:
1296 set {_Location.GroundLevel} to {_Location.Sky}
1297 while (block at {_Location.GroundLevel}) is air:
1298 if (y-coordinate of ({_Location.GroundLevel})) is less than 8:
1299 delete {_Location.Good}
1300 stop loop
1301 set {_Location.GroundLevel} to (location 1 below ({_Location.GroundLevel}))
1302 if {_Location.Good} is true:
1303 if (block at {_Location.GroundLevel}) is lava, water or cactus:
1304 delete {_Location.Good}
1305 else:
1306 set {_GoodLocation.Sky::%loop-number-1%} to ({_Location.Sky})
1307 set {_GoodLocation.GroundLevel::%loop-number-1%} to (location 3 above {_Location.GroundLevel})
1308 stop loop
1309 set {Scatter.DontUnloadChunks} to true
1310 wait 1 second
1311 loop {_Size} times:
1312 if command sender is not online:
1313 stop
1314 teleport command sender to {_GoodLocation.GroundLevel::%loop-number%}
1315 wait 1 second
1316 loop {ToScatter::*}:
1317 set {Scatter.Scattering::%loop-value%} to true
1318 wait 1 second
1319 set {_Scattered} to 0
1320 loop {_ToScatter::*}:
1321 add 1 to {_Scattered}
1322 if (loop-value) is not online:
1323 set {SchedueldScatter::%loop-value%} to ({_GoodLocation.GroundLevel::%{_Scattered}%})
1324 else:
1325 teleport loop-value to ({_GoodLocation.GroundLevel::%{_Scattered}%})
1326 wait 1 second
1327 delete {Scatter.Scattering::*}
1328 wait 1 second
1329 delete {Scatter.DontUnloadChunks}
1330 else if arg-3 is "teams" or "t" or "team":
1331 if command sender is console:
1332 stop
1333 loop {Teams::*}:
1334 {Team.%loop-value%::*} is set
1335 increase {_Count} by 1
1336 add {_Count} to {_TeamsToScatter::*}
1337 set {_TeamScatter.%{_Count}%::*} to ({Team.%loop-value%::*})
1338 loop all players:
1339 {Teams.InTeam::%loop-player%} is not set
1340 {spect::%loop-player%} is not set
1341 add loop-player to {_Solos::*}
1342 set {_Size} to ((size of {Teams::*})+(size of {_Solos::*}))
1343 if arg-4 is set:
1344 if arg-4 is equal to 0:
1345 set {_Mindist} to (((arg-2 * 2) - 250)/{_Size})*3.5
1346 else:
1347 set {_Mindist} to arg-4
1348 else:
1349 set {_Mindist} to (((arg-2 * 2) - 250)/{_Size})*3.5
1350 loop ({_Size}) times:
1351 loop 1000 times:
1352 if (loop-number-2) is 1000:
1353 stop
1354 set {_Location.Good} to true
1355 set {_Location.Sky} to (the location at (random integer between ({_X}-arg-2) and ({_X}+arg-2)), 255, (random integer between ({_Z}-arg-2) and ({_Z}+arg-2)) of the world (arg-1))
1356 loop ((loop-number-1)-1) times:
1357 (distance between {_Location.Sky} and {_GoodLocation.Sky::%loop-number-3%}) is less than ({_Mindist})
1358 delete {_Location.Good}
1359 if {_Location.Good} is true:
1360 set {_Location.GroundLevel} to {_Location.Sky}
1361 while (block at {_Location.GroundLevel}) is air:
1362 if (y-coordinate of ({_Location.GroundLevel})) is less than 8:
1363 delete {_Location.Good}
1364 stop loop
1365 set {_Location.GroundLevel} to (location 1 below ({_Location.GroundLevel}))
1366 if {_Location.Good} is true:
1367 if (block at {_Location.GroundLevel}) is lava, water or cactus:
1368 delete {_Location.Good}
1369 else:
1370 set {_GoodLocation.Sky::%loop-number-1%} to ({_Location.Sky})
1371 set {_GoodLocation.GroundLevel::%loop-number-1%} to (location 3 above {_Location.GroundLevel})
1372 stop loop
1373 set {Scatter.DontUnloadChunks} to true
1374 wait 1 second
1375 loop {_Size} times:
1376 if command sender is not online:
1377 stop
1378 teleport command sender to {_GoodLocation.GroundLevel::%loop-number%}
1379 wait 1 second
1380 loop all players:
1381 set {Scatter.Scattering::%loop-player%} to true
1382 wait 1 second
1383 set {_TeamSize} to (size of {_Scatter.Teams::*})
1384 set {_SoloSize} to (size of {_Solos::*})
1385 loop {_TeamsToScatter::*}:
1386 add 1 to {_PositionCount}
1387 add 1 to {_TeamCount}
1388 loop {_TeamScatter.%loop-value%::*}:
1389 set {_Player} to ("%loop-value-2%" parsed as offlineplayer)
1390 if {_Player} is not online:
1391 set {SchedueldScatter::%{_Player}%} to ({_GoodLocation.GroundLevel::%{_PositionCount}%})
1392 else:
1393 teleport {_Player} to ({_GoodLocation.GroundLevel::%{_PositionCount}%})
1394 wait 1 second
1395 if {_Solos::*} is set:
1396 loop {_Solos::*}:
1397 add 1 to {_PositionCount}
1398 add 1 to {_SoloCount}
1399 set {_Player} to ("%loop-value%" parsed as offlineplayer)
1400 if {_Player} is not online:
1401 set {SchedueldScatter::%{_Player}%} to ({_GoodLocation.GroundLevel::%{_PositionCount}%})
1402 else:
1403 teleport {_Player} to ({_GoodLocation.GroundLevel::%{_PositionCount}%})
1404 wait 1 second
1405 delete {Scatter.Scattering::*}
1406 wait 1 second
1407 delete {Scatter.DontUnloadChunks}
1408 else if ("%arg-3%" parsed as offlineplayer) is online:
1409 loop 2002 times:
1410 if (loop-number-2) is 2002:
1411 broadcast "&7 &7Couldn't scatter &7%arg-3%&7!"
1412 stop
1413 set {_Location.Good} to true
1414 set {_Location.Sky} to (the location at (random integer between ({_X}-arg-2) and ({_X}+arg-2)), 255, (random integer between ({_Z}-arg-2) and ({_Z}+arg-2)) of the world (arg-1))
1415 if {_Location.Good} is true:
1416 set {_Location.GroundLevel} to {_Location.Sky}
1417 while (block at {_Location.GroundLevel}) is air:
1418 if (y-coordinate of ({_Location.GroundLevel})) is less than 8:
1419 delete {_Location.Good}
1420 stop loop
1421 set {_Location.GroundLevel} to (location 1 below ({_Location.GroundLevel}))
1422 if {_Location.Good} is true:
1423 if (block at {_Location.GroundLevel}) is lava, water or cactus:
1424 delete {_Location.Good}
1425 else:
1426 set {_GoodLocation.Sky} to ({_Location.Sky})
1427 set {_GoodLocation.GroundLevel} to (location 3 above {_Location.GroundLevel})
1428 stop loop
1429 set {Scattering::%arg-3%} to true
1430 teleport ("%arg-3%" parsed as offlineplayer) to ({_GoodLocation.GroundLevel})
1431 wait 5 seconds
1432 delete {Scatter.Scattering::%arg-3%}
1433 else:
1434 send "&7 &7/sca &r<&7world&r> <&7radius&r> <&7teams&r:&7*&r:&7player&r> [&7mindist&r] [&7x&r] [&7z&r]"
1435
1436on skript unload:
1437 delete {Scatter.DontUnloadChunks}
1438 delete {Scatter.Scattering::*}
1439 delete {SchedueldScatter::*}
1440
1441on login:
1442 delete {Scatter.Scattering::%player%}
1443 {SchedueldScatter::%player%} is set
1444 teleport (player) to ({SchedueldScatter::%player%})
1445 delete {SchedueldScatter::%player%}
1446
1447on chunk unload:
1448 {Scatter.DontUnloadChunks} is set
1449 cancel the event
1450
1451command /team [<text>] [<text>] [<text>]:
1452 aliases: /teams
1453 trigger:
1454 if arg-1 is not set:
1455 command sender command "/team help"
1456 else if arg-1 is "help":
1457 send "&f &bTeam Help Page&f "
1458 if {Teams.Management} is not set:
1459 send "{@Prefix}&c Warning: Team Management is currently &bDISABLED&c, therefore these commands will not work."
1460 send "{@Prefix}&b /team list&f - &rLists teams"
1461 send "{@Prefix}&b /team create&f - &rCreate a team to invite players!"
1462 send "{@Prefix}&b /team invite <player>&f - &rInvite <player> to your team!"
1463 send "{@Prefix}&b /team accept <player>&f - &rAccept <player>'s invite!"
1464 send "{@Prefix}&b /team leave&f - &rLeave your current team"
1465 send "{@Prefix}&b /sendcoords&f - &rSend your teammates your coordinates!"
1466 send "{@Prefix}&b /sendores&f - &rSend your teammates your ores!"
1467 send "{@Prefix}&b /tc <text:coords:ores>&f - &rChat with your teammates!"
1468 if command sender has permission "uhc.admin":
1469 send "{@Prefix}&b /team system <on/off/toggle>"
1470 send "{@Prefix}&b /team reset"
1471 send "{@Prefix}&b /team fire <on/off>"
1472 send "{@Prefix}&b /team join <id/player in team> [<player=you>]"
1473 send "{@Prefix}&b /team makeleave [<player=you>]"
1474 send "{@Prefix}&b /team size <number>"
1475 else if arg-1 is "list":
1476 if {Teams::*} is not set:
1477 send "{@Prefix}&c No teams set."
1478 else:
1479 loop {Teams::*}:
1480 if size of {Team.%loop-value%::*} is not 0:
1481 send "{@Prefix}&r Team &b%loop-value%&r: %{Team.%loop-value%::*}%"
1482 else:
1483 add 1 to {_0}
1484 if {_0} is size of {Teams::*}:
1485 send "{@Prefix}&c No teams set."
1486 else if arg-1 is "invite":
1487 if {Teams.Management} is not set:
1488 send "{@Prefix}&r &cTeams is currently disabled!!"
1489 else:
1490 if arg-2 is not set:
1491 send "&cPlease specify a player!"
1492 else if {Teams.InTeam::%command sender%} is not set:
1493 send "&cYou don't have a team to invite &c%arg-2% to!"
1494 else if {Teams.Limit} is "&c":
1495 send "&cTell the host to set a team size limit!"
1496 else if size of {Team.%{Teams.InTeam::%command sender%}%::*} is greater than or equal to {Teams.Limit}:
1497 send "{@Prefix} Your team is too big!"
1498 else:
1499 set {Teams.Invite::%arg-2%::%command sender%} to true
1500 send "{@Prefix} You have invited %arg-2% to your team!"
1501 send "&7&m--------------------------------------------------------------------------" to ("%arg-2%" parsed as offlineplayer)
1502 send "&e%command sender% invited you to their team! Do /team accept %command sender%!" to ("%arg-2%" parsed as offlineplayer)
1503 send "&7&m--------------------------------------------------------------------------" to ("%arg-2%" parsed as offlineplayer)
1504 else if arg-1 is "accept":
1505 if {Teams.Management} is not set:
1506 send "{@Prefix}&r &cTeam System is currently disabled!!"
1507 else:
1508 if arg-2 is not set:
1509 send "&cPlease specify a player!"
1510 else if {Teams.Invite::%command sender%::%arg-2%} is not set:
1511 send "&cYou don't have a team invite from %arg-2%!"
1512 else if {Teams.InTeam::%command sender%} is set:
1513 send "&cYou are already on a team!"
1514 delete {Teams.Invite::%arg-2%::%command sender%}
1515 else if {Teams.InTeam::%arg-2%} is not set:
1516 send "&c%arg-2% does not have a team!"
1517 delete {Teams.Invite::%arg-2%::%command sender%}
1518 else if {Teams.Limit} is "&c":
1519 send "&cTell the host to set a team size limit!"
1520 else if size of {Team.%{Teams.InTeam::%arg-2%}%::*} is greater than or equal to {Teams.Limit}:
1521 send "&c%arg-2%'s team is too big!"
1522 delete {Teams.Invite::%arg-2%::%command sender%}
1523 else if size of {Team.%{Teams.InTeam::%arg-2%}%::*} is greater than or equal to {Teams.Limit}:
1524 send "{@Prefix} %arg-2%'s team is too big!"
1525 delete {Teams.Invite::%arg-2%::%command sender%}
1526 else:
1527 set {_TM} to ({Teams.InTeam::%arg-2%})
1528 delete {Teams.Invite::%arg-2%::%command sender%}
1529 send "{@Prefix} You have joined %arg-2%'s team!"
1530 loop {Team.%{_TM}%::*}:
1531 send "{@Prefix} %command sender% joined your team!" to ("%loop-value%" parsed as offlineplayer)
1532 set {Teams.InTeam::%command sender%} to ({_TM})
1533 add "%command sender%" to {Team.%{_TM}%::*}
1534 command "/scoreboard teams join UHC%{_TM}% %command sender%"
1535 else if arg-1 is "leave":
1536 if arg-2 is set:
1537 if command sender has permission "":
1538 command sender command "/team mleave %arg-2%"
1539 stop trigger
1540 else:
1541 if {Teams.Management} is not set:
1542 send "{@Prefix}&r &cTeam System is currently disabled!!"
1543 stop trigger
1544 else:
1545 send "&cWrong syntax!"
1546 stop trigger
1547 if {Teams.Management} is not set:
1548 send "{@Prefix}&r &cTeam System is currently disabled!!"
1549 else:
1550 if {Teams.InTeam::%command sender%} is not set:
1551 send "&cYour not in a team!"
1552 else:
1553 send "&cYou have left team &cUHC%{Teams.InTeam::%command sender%}%"
1554 remove "%command sender%" from {Team.%{Teams.InTeam::%command sender%}%::*}
1555 command "/scoreboard teams leave %command sender%"
1556 loop {Team.%{Teams.InTeam::%command sender%}%::*}:
1557 loop-value is not {_P}
1558 send "&c%command sender% left your team." to ("%loop-value%" parsed as offlineplayer)
1559 set {_Team} to ({Teams.InTeam::%{_P}%})
1560 if size of {Team.%{_Team}%::*} is 1:
1561 delete {Team.%{_Team}%::*}
1562 command "/scoreboard teams remove UHC%{_Team}%"
1563 delete {Teams::%{_Team}%}
1564 delete {Teams.InTeam::%command sender%}
1565 else if arg-1 is "create":
1566 if {Teams.Management} is not set:
1567 send "{@Prefix}&r &cTeam System is currently disabled!!"
1568 else:
1569 if {Teams.InTeam::%command sender%} is set:
1570 send "&cYour in a team already!"
1571 stop trigger
1572 set {_TM} to 1
1573 while {Teams::%{_TM}%} is set:
1574 add 1 to {_TM}
1575 set {Teams::%{_TM}%} to {_TM}
1576 command "/scoreboard teams add UHC%{_TM}%"
1577 if {Teams.InTeam::%command sender%} is not set:
1578 set {Teams.InTeam::%command sender%} to ({_TM})
1579 add "%command sender%" to {Team.%{_TM}%::*}
1580 command "/scoreboard teams join UHC%{_TM}% %command sender%"
1581 send "&eYou created team &eUHC%{_TM}%"
1582 else if arg-1 is "reset":
1583 if command sender does not have the permission "uhc.admin":
1584 send "{@Prefix} &cNo Permission"
1585 else:
1586 loop {Teams::*}:
1587 delete {Team.%loop-value%::*}
1588 command "/scoreboard teams remove UHC%loop-value%"
1589 loop {Teams.InTeam::*}:
1590 delete {Teams.InTeam::%loop-value%}
1591 command "/scoreboard teams remove UHC%loop-value%"
1592 delete {Team.::*}
1593 delete {Team::*}
1594 delete {Teams.Invite::*}
1595 delete {Teams.InTeam::*}
1596 delete {Teams::*}
1597 delete {Teams.InTeam::*}
1598 set {Teams.Limit} to "&c"
1599 set {Teams.LimitTwo} to "FFA"
1600 delete {Teams.Invite::*}
1601 delete {Teams.Management}
1602 broadcast "&cTeams reseted by %sender%"
1603 set {number::teams} to 0
1604 loop 160 times:
1605 execute player command "/scoreboard teams remove UHC%{_teamlist}%"
1606 execute player command "/scoreboard teams remove hbr%{_teamlist}%"
1607 delete {Teams.InTeam::%{_teamlist}%}
1608 delete {Team.%{_teamlist}%::*}
1609 add 1 to {number::teams}
1610 set {_teamlist} to {number::teams}
1611 else if arg-1 is "fire":
1612 if command sender does not have the permission "":
1613 send "{@Prefix} &cNo Permission"
1614 else:
1615 if arg-2 is not set:
1616 send "{@Prefix}&c Specify to turn friendly fire on or off."
1617 else:
1618 if arg-2 is "on":
1619 {Teams.Management} is true
1620 loop {Teams::*}:
1621 command "/scoreboard teams option UHC%loop-value% friendlyfire true"
1622 broadcast "&7&m----------------------------------"
1623 broadcast "&aFriendly fire enabled by %sender%"
1624 broadcast "&7&m----------------------------------"
1625 else if arg-2 is "off":
1626 {Teams.Management} is true
1627 loop {Teams::*}:
1628 command "/scoreboard teams option UHC%loop-value% friendlyfire false"
1629 broadcast "&7&m----------------------------------"
1630 broadcast "&cFriendly fire disabled by %sender%"
1631 broadcast "&7&m----------------------------------"
1632 else if arg-1 is "management" or "man" or "manage" or "system":
1633 if command sender does not have the permission "uhc.admin":
1634 send "{@Prefix} &cNo Permission"
1635 else:
1636 if arg-2 is not set:
1637 send "{@Prefix}&c Specify to toggle team management, turn it on, or off."
1638 else:
1639 if arg-2 is "on":
1640 set {Teams.Management} to true
1641 set {Teams.LimitTwo} to "To"
1642 delete {Teams.Limit}
1643 set {Teams.Limit} to 2
1644 broadcast "&aTeams enabled by %sender%"
1645 else if arg-2 is "off":
1646 delete {Teams::*}
1647 delete {Teams.InTeam::*}
1648 set {Teams.Limit} to "&c"
1649 set {Teams.LimitTwo} to "FFA"
1650 delete {Teams.Invite::*}
1651 delete {Teams.Management}
1652 execute player command "/team reset"
1653 broadcast "&cTeams disabled by %sender%"
1654 else if arg-2 is "toggle":
1655 if {Teams.Management} is not set:
1656 command sender command "/team man on"
1657 else:
1658 command sender command "/team man off"
1659 else if arg-1 is "limit" or "lim" or "size":
1660 if command sender does not have the permission "uhc.admin":
1661 send "{@Prefix} &cNo Permission"
1662 else:
1663 if arg-2 is not set:
1664 send "{@Prefix}&c Specify an amount of players per team!"
1665 else:
1666 set {_L} to ("%arg-2%" parsed as integer)
1667 if {_L} is not set:
1668 send "{@Prefix}&c Enter a valid amount of players per team!"
1669 else if {_L} is less than 2:
1670 send "{@Prefix}&c Enter a valid amount of players per team!"
1671 else:
1672 {Teams.Management} is true
1673 broadcast "{@Prefix} &e%command sender% set the team size to To%{_L}%"
1674 set {Teams.Limit} to arg-2
1675 set {Teams.LimitTwo} to "To"
1676 else if arg-1 is "makeleave" or "forceleave" or "mleave" or "fleave":
1677 if command sender does not have the permission "":
1678 send "{@Prefix} &cNo Permission"
1679 else:
1680 if arg-2 is set:
1681 set {_P} to ("%arg-2%" parsed as offlineplayer)
1682 else:
1683 set {_P} to command sender
1684 if {_P} is offline:
1685 send "{@Prefix}&c Specify a online player!"
1686 else:
1687 if {Teams.InTeam::%{_P}%} is not set:
1688 send "{@Prefix}&c %{_P}%&c is not in a team!"
1689 else:
1690 send "{@Prefix}&c You removed %{_P}% from team &cUHC%{Teams.InTeam::%{_P}%}%"
1691 send "{@Prefix}&c %command sender%&c removed you from team &cUHC%{Teams.InTeam::%{_P}%}%" to {_P}
1692 remove "%{_P}%" from {Team.%{Teams.InTeam::%{_P}%}%::*}
1693 command "/scoreboard teams leave %{_P}%"
1694 loop {Team.%{Teams.InTeam::%{_P}%}%::*}:
1695 loop-value is not {_P}
1696 send "{@Prefix}&c %{_P}%&c was removed your team." to ("%loop-value%" parsed as offlineplayer)
1697 set {_Team} to ({Teams.InTeam::%{_P}%})
1698 delete {Teams.InTeam::%command sender%}
1699 if size of {Team.%{_Team}%::*} is 0:
1700 delete {Team.%{_Team}%::*}
1701 command "/scoreboard teams remove UHC%{_Team}%"
1702 delete {Teams::%{_Team}%}
1703 else if arg-1 is "join":
1704 if command sender does not have the permission "":
1705 send "{@Prefix} &cNo Permission"
1706 else:
1707 if arg-2 is not set:
1708 send "{@Prefix}&c Specify a team/player that is on that team"
1709 else:
1710 set {_te} to ("%arg-2%" parsed as offlineplayer)
1711 set {_Test1} to ("%arg-2%" parsed as integer)
1712 if {_Test1} is set:
1713 set {_TN} to ("%arg-2%" parsed as integer)
1714 else if {Teams.InTeam::%{_te}%} is set:
1715 set {_TN} to ({Teams.InTeam::%{_te}%})
1716 else:
1717 send "{@Prefix}&c Specify a valid team/player that is on that team"
1718 stop trigger
1719 if arg-3 is set:
1720 set {_P} to ("%arg-3%" parsed as offlineplayer)
1721 else:
1722 set {_P} to command sender
1723 if {Teams.InTeam::%{_P}%} is set:
1724 send "{@Prefix}&c %{_P}%&c is already a team!"
1725 stop trigger
1726 set {Teams.InTeam::%{_P}%} to ({_TN})
1727 add "%{_P}%" to {Team.%{_TN}%::*}
1728 command "/scoreboard teams join UHC%{_TN}% %{_P}%"
1729 if {_P} is not command sender:
1730 send "{@Prefix}&e %command sender% added you to team &eUHC%{_TN}%" to {_P}
1731 send "{@Prefix}&e Added &e%{_P}% to team UHC%{_TN}%"
1732 loop {Team.%{Teams.InTeam::%{_P}%}%::*}:
1733 loop-value is not {_P}
1734 send "{@Prefix}&c %{_P}%&e was added your team by &e%command sender%&e." to ("%loop-value%" parsed as offlineplayer)
1735
1736command /sendcoords:
1737 trigger:
1738 if {Teams.InTeam::%command sender%} is not set:
1739 send "{@Prefix}&c You are not in a team!"
1740 stop trigger
1741 loop all players:
1742 {Teams.InTeam::%loop-player%} is {Teams.InTeam::%command sender%}
1743 send "{@Prefix}&r&b %command sender%'s&r coordinates: &rx: &b%round(command sender's x-coordinate)%&r, &ry: &b%round(command sender's y-coordinate)%&r, &rz: &b%round(command sender's z-coordinate)%" to loop-player
1744
1745command /sendores:
1746 trigger:
1747 if {Teams.InTeam::%command sender%} is not set:
1748 send "{@Prefix}&r You are not in a team!"
1749 stop trigger
1750 loop all players:
1751 {Teams.InTeam::%loop-player%} is {Teams.InTeam::%command sender%}
1752 send "{@Prefix}&r&b %command sender%'s&r has &3%amount of iron ore in command sender's inventory + amount of iron ingots in command sender's inventory% iron&r, <gold>%amount of gold ore in command sender's inventory + amount of gold ingots in command sender's inventory% gold&r, and &b%amount of diamond ore in command sender's inventory + amount of diamonds in command sender's inventory% diamonds&r." to loop-player
1753
1754command /tc <text>:
1755 trigger:
1756 if {Teams.InTeam::%command sender%} is not set:
1757 send "{@Prefix}&c You are not in a team!"
1758 else if arg-1 is "coords" or "coordinates":
1759 command sender command "/sendcoords"
1760 else if arg-1 is "ores":
1761 command sender command "/sendores"
1762 else:
1763 loop all players:
1764 {Teams.InTeam::%loop-player%} is {Teams.InTeam::%command sender%}
1765 send "{@Prefix}&e%command sender%: &f%arg-1%" to loop-player
1766
1767command /setspawn:
1768 permission: uhc.admin
1769 trigger:
1770 set {spawnuhc} to player's location
1771 send "&aLobby set!"
1772
1773on death of player:
1774 if {Teams.Management} is set:
1775 loop all players:
1776 if {Teams.InTeam::%attacker%} is {Teams.InTeam::%loop-player%}:
1777 add 1 to {teamkills::%loop-player%}
1778 set {_tk} to "%{teamkills::%loop-player%}%" parsed as number
1779 set {teamkills::%loop-player%} to "%rounded {_tk}%" parsed as number
1780
1781on join:
1782 {teamkills::%player%} is not set
1783 set {teamkills::%player%} to 0
1784
1785on join:
1786 {kc.%player%} is not set
1787 set {kc.%player%} to 0
1788
1789on command "/bp":
1790 {started} is false
1791 cancel event
1792
1793on command "/backpack":
1794 {started} is false
1795 cancel event
1796
1797on death of a player:
1798 {started} is false
1799 wait 2 seconds
1800 clear victim's inventory
1801 teleport player to {spawnuhc}
1802
1803on command "/team":
1804 {started} is true
1805 cancel event
1806
1807on command "/teams":
1808 {started} is true
1809 cancel event
1810
1811on chat:
1812 {muted::%player%} is not set
1813 {rank.%player%} is "host"
1814 cancel event
1815 broadcast "{@hostprefix}"
1816
1817command /§nextwey [<player>] [<text>]:
1818 executable by: console
1819 trigger:
1820 arg 2 is "sub":
1821 wait 3 ticks
1822 make the player-arg execute command "§scenarios 2"
1823
1824on place:
1825 if {staffmode::%player%} is true:
1826 cancel event
1827 if {build::%player%} is not set:
1828 cancel event
1829 if {spect::%player%} is true:
1830 cancel event
1831
1832on break:
1833 if {spect::%player%} is true:
1834 cancel event
1835 if {build::%player%} is not set:
1836 cancel event
1837
1838on drop:
1839 if {started} is false:
1840 cancel event
1841 if {staffmode::%player%} is true:
1842 cancel event
1843 if {spect::%player%} is true:
1844 cancel event
1845
1846on pickup:
1847 if {spect::%player%} is true:
1848 cancel event
1849 if {staffmode::%player%} is true:
1850 cancel event
1851
1852on hunger bar change:
1853 if {ffa} is true:
1854 set player's hunger meter to 10
1855 if {staffmode::%player%} is true:
1856 set player's hunger meter to 10
1857 if {spect::%player%} is true:
1858 set player's hunger meter to 10
1859
1860command /§leznub234 [<player>] [<text>]:
1861 executable by: console
1862 trigger:
1863 arg 2 is "sc":
1864 wait 3 ticks
1865 make the player-arg execute command "§scenariosothers 2"
1866
1867on rightclick on a horse or donkey holding sugar, wheat, apple, golden apple, hay block or golden carrot:
1868 {started} is true
1869 {horsehealing} is "ON"
1870 cancel the event
1871 if player's tool is a sugar:
1872 remove (1 of (event-player's tool)) from event-player's tool
1873 heal event-entity by 2
1874 else if player's tool is a wheat:
1875 remove (1 of (event-player's tool)) from event-player's tool
1876 heal event-entity by 2
1877 else if player's tool is a apple:
1878 remove (1 of (event-player's tool)) from event-player's tool
1879 heal event-entity by 2
1880 else if player's tool is a golden apple:
1881 remove (1 of (event-player's tool)) from event-player's tool
1882 heal event-entity by 5
1883 else if player's tool is a golden carrot:
1884 remove (1 of (event-player's tool)) from event-player's tool
1885 heal event-entity by 5
1886 else if player's tool is a hay block:
1887 remove (1 of (event-player's tool)) from event-player's tool
1888 heal event-entity by 2
1889
1890on rightclick on a horse or donkey holding sugar, wheat, apple, golden apple, hay block or golden carrot:
1891 {started} is true
1892 {horsehealing} is "OFF"
1893 cancel the event
1894
1895command /§scenariosdas32 [<text>]:
1896 trigger:
1897 arg 1 is "2":
1898 open chest with 6 rows named "&a&lOthers" to player
1899 format slot 0 of player with golden apple:1 named "&6God Apples" with lore "" to be unstealable
1900 format slot 1 of player with stained glass pane:15 named "" with lore "" to be unstealable
1901 format slot 2 of player with paper named "&e%{gods}%" with lore "" to be unstealable
1902 format slot 9 of player with obsidian named "&5Nether" with lore "" to be unstealable
1903 format slot 10 of player with stained glass pane:15 named "" with lore "" to be unstealable
1904 format slot 11 of player with paper named "&e%{nether.status}%" with lore "" to be unstealable
1905 format slot 36 of player with sugar named "&eHorse Healing" with lore "" to be unstealable
1906 format slot 19 of player with stained glass pane:15 named "" with lore "" to be unstealable
1907 format slot 37 of player with stained glass pane:15 named "" with lore "" to be unstealable
1908 format slot 38 of player with paper named "&e%{horsehealing}%" with lore "" to be unstealable
1909 format slot 18 of player with potion:8258 named "&bPotions" with lore "" to be unstealable
1910 format slot 20 of player with paper named "&e%{nopotions}%" with lore "" to be unstealable
1911 format slot 27 of player with potion:8257 named "&eNatural Regeneration" with lore "" to be unstealable
1912 format slot 28 of player with stained glass pane:15 named "" with lore "" to be unstealable
1913 format slot 29 of player with paper named "&e%{naturalRegeneration}%" with lore "" to be unstealable
1914 format slot 45 of player with arrow named "&cBack" with lore "&7Click to back" to close then run "§lx523pnd234 %player% sc"
1915 format slot 53 of player with redstone named "&cClose" with lore "&7Click to close" to close
1916
1917command /edit [<text>]:
1918 trigger:
1919 arg 1 is "config":
1920 open chest with 6 rows named "&a&lCustom UHC" to player
1921 format slot 1 of player with paper named "&eScenarios" with lore "" to close then run "dashdja %player% sc"
1922 format slot 2 of player with clock named "&eTimer Settings" with lore "" to close then run "dashdjadasd %player% times"
1923 format slot 3 of player with bedrock named "&eBorder Settings" with lore "" to close then run "3dashdjadasd %player% times"
1924 format slot 4 of player with chest named "&eStart Inventory" with lore "" to close then run [make player execute command "/startinv"]
1925 format slot 5 of player with book named "&eOthers" with lore "" to close then run "§nextwey %player% sub"
1926 format slot 6 of player with apple named "&eRates" with lore "" to close then run "§d2 %player% sc"
1927 format slot 7 of player with iron sword named "&eTeam Settings: &f&l%{Teams.LimitTwo}%%{Teams.Limit}%" with lore "" to close then run "§lxd234 %player% sc"
1928 format slot 13 of player with grass named "&eRecreate World" with lore "" to close then run [make player execute command "/regenmap"]
1929 format slot 22 of player with diamond sword named "&cDeathmatch" with lore "" to run [make player execute command "/toggledm"]
1930 format slot 47 of player with golden apple:1 named "&6God Apples" with lore "" to be unstealable
1931 format slot 29 of player with dye:10 named "&aOn" with lore "" to run [make player execute command "/notchson"]
1932 format slot 38 of player with dye:1 named "&cOff" with lore "" to run [make player execute command "/notchsoff"]
1933 format slot 48 of player with obsidian named "&5Nether" with lore "" to be unstealable
1934 format slot 30 of player with dye:10 named "&aOn" with lore "" to run [make player execute command "/escenarios nton"]
1935 format slot 39 of player with dye:1 named "&cOff" with lore "" to run [make player execute command "/escenarios ntoff"]
1936 format slot 49 of player with sugar named "&eHorse Healing" with lore "" to be unstealable
1937 format slot 31 of player with dye:10 named "&aOn" with lore "" to run [make player execute command "/escenarios hhon"]
1938 format slot 40 of player with dye:1 named "&cOff" with lore "" to run [make player execute command "/escenarios hhoff"]
1939 format slot 50 of player with potion:8258 named "&bPotions" with lore "" to be unstealable
1940 format slot 32 of player with dye:10 named "&aOn" with lore "" to run [make player execute command "/escenarios npon"]
1941 format slot 41 of player with dye:1 named "&cOff" with lore "" to run [make player execute command "/escenarios npoff"]
1942 format slot 51 of player with potion:8257 named "&eNatural Regeneration" with lore "" to be unstealable
1943 format slot 33 of player with dye:10 named "&aOn" with lore "" to run [make player execute command "/§lnaturalon"]
1944 format slot 42 of player with dye:1 named "&cOff" with lore "" to run [make player execute command "/§lnatural"]
1945
1946command /saveinv:
1947 trigger:
1948 set {kit.uhc} to player's serialized inventory
1949 set {helmet.uhc} to player's helmet
1950 set {chestplate.uhc} to player's chestplate
1951 set {leggings.uhc} to player's leggings
1952 set {boots.uhc} to player's boots
1953 send "&aInventory saved correctly."
1954 set {save.inv.%player%} to false
1955 player has permission "uhc.admin"
1956 clear player's inventory
1957 set slot 0 of player to a book named "{@GameSettings}"
1958 set slot 1 of player to a nether star named "{@TwitterAPI}"
1959 set slot 8 of player to a paper named "{@CurrentConfiguration}"
1960 set slot 4 of player to a iron sword named "{@Practice}"
1961
1962on load:
1963 delete {kit.uhc}
1964 delete {helmet.uhc}
1965 delete {chestplate.uhc}
1966 delete {leggings.uhc}
1967 delete {boots.uhc}
1968
1969command /startinv:
1970 trigger:
1971 clear player's inventory
1972 restore inventory of player from {kit.uhc}
1973 set player's helmet to {helmet.uhc}
1974 set player's chestplate to {chestplate.uhc}
1975 set player's leggings to {leggings.uhc}
1976 set player's boots to {boots.uhc}
1977 send "&aStart inventory loaded correctly, if you edit the inventory use /saveinv for save the inventory."
1978 set {save.inv.%player%} to true
1979
1980on command "/saveinv":
1981 player don't have permission "uhc.admin"
1982 cancel event
1983
1984on command "/startinv":
1985 player don't have permission "uhc.admin"
1986 cancel event
1987
1988on command "/saveinv":
1989 {save.inv.%player%} is false
1990 cancel event
1991 send "&cYou can't use now."
1992on join:
1993 set {save.inv.%player%} to false
1994
1995command /§lxasdsamdbsandjjwqhed234 [<player>] [<text>]:
1996 executable by: console
1997 trigger:
1998 arg 2 is "sc":
1999 wait 3 ticks
2000 make the player-arg execute command "§open §config"
2001
2002command /§teamconfig [<text>]:
2003 trigger:
2004 arg 1 is "open":
2005 open chest with 6 rows named "&a&lCustom UHC" to player
2006 format slot 3 of player with dye:10 named "&aEnable Teams" with lore "&7Click to Enable Teams" to run [make player execute command "/team man on"]
2007 format slot 12 of player with book named "&eTeam System" with lore "&7Select a Option" to be unstealable
2008 format slot 21 of player with dye:1 named "&cDisable Teams" with lore "&7Click to Disable Team System" to run [make player execute command "/team man off"]
2009 format slot 5 of player with dye:10 named "&aEnable Friendly Fire" with lore "&7Click to Friendly Fire" to run [make player execute command "/team fire on"]
2010 format slot 14 of player with diamond sword named "&eFriendly Fire" with lore "&7Select a Option" to close
2011 format slot 23 of player with dye:1 named "&cDisable Friendly Fire" with lore "&7Click to Disable Friendly Fire" to run [make player execute command "/team fire off"]
2012 format slot 27 of player with stained glass pane:15 named "" with lore "" to be unstealable
2013 format slot 28 of player with stained glass pane:15 named "" with lore "" to be unstealable
2014 format slot 29 of player with stained glass pane:15 named "" with lore "" to be unstealable
2015 format slot 30 of player with stained glass pane:15 named "" with lore "" to be unstealable
2016 format slot 31 of player with stained glass pane:15 named "" with lore "" to be unstealable
2017 format slot 32 of player with stained glass pane:15 named "" with lore "" to be unstealable
2018 format slot 33 of player with stained glass pane:15 named "" with lore "" to be unstealable
2019 format slot 34 of player with stained glass pane:15 named "" with lore "" to be unstealable
2020 format slot 35 of player with stained glass pane:15 named "" with lore "" to be unstealable
2021 format slot 36 of player with player head named "&aTo2" with lore "&7You can use /team size [values]" to run [make player execute command "/team size 2"]
2022 format slot 37 of player with player head named "&aTo3" with lore "&7You can use /team size [values]" to run [make player execute command "/team size 3"]
2023 format slot 38 of player with player head named "&aTo4" with lore "&7You can use /team size [values]" to run [make player execute command "/team size 4"]
2024 format slot 39 of player with player head named "&aTo5" with lore "&7You can use /team size [values]" to run [make player execute command "/team size 5"]
2025 format slot 40 of player with player head named "&aTo6" with lore "&7You can use /team size [values]" to run [make player execute command "/team size 6"]
2026 format slot 41 of player with player head named "&aTo7" with lore "&7You can use /team size [values]" to run [make player execute command "/team size 7"]
2027 format slot 42 of player with player head named "&aTo8" with lore "&7You can use /team size [values]" to run [make player execute command "/team size 8"]
2028 format slot 43 of player with player head named "&aTo9" with lore "&7You can use /team size [values]" to run [make player execute command "/team size 9"]
2029 format slot 44 of player with player head named "&aTo10" with lore "&7You can use /team size [values]" to run [make player execute command "/team size 10"]
2030 format slot 45 of player with arrow named "&cBack" with lore "&7Click to back" to close then run "§789789 %player% sc"
2031
2032command /§lxd234 [<player>] [<text>]:
2033 executable by: console
2034 trigger:
2035 arg 2 is "sc":
2036 wait 3 ticks
2037 make the player-arg execute command "§teamconfig open"
2038
2039command /§789789 [<player>] [<text>]:
2040 executable by: console
2041 trigger:
2042 arg 2 is "sc":
2043 wait 3 ticks
2044 make the player-arg execute command "/edit config"
2045
2046command /§lxd23xd23ddas [<player>] [<text>]:
2047 executable by: console
2048 trigger:
2049 arg 2 is "sc":
2050 wait 3 ticks
2051 make the player-arg execute command "§scenariosdas32 2"
2052
2053command /§lnatural:
2054 trigger:
2055 execute console command "/mvrule naturalRegeneration false uhcworld"
2056 execute console command "/mvrule naturalRegeneration false uhcworld_nether"
2057 broadcast "{@Prefix} &cNaturalRegeneration Off"
2058 set {naturalregeneration} to "OFF"
2059
2060command /§lnaturalon:
2061 trigger:
2062 execute console command "/mvrule naturalRegeneration true uhcworld"
2063 execute console command "/mvrule naturalRegeneration true uhcworld_nether"
2064 broadcast "{@Prefix} &aNaturalRegeneration On"
2065 set {naturalregeneration} to "ON"
2066
2067command /§lx523pnd234 [<player>] [<text>]:
2068 executable by: console
2069 trigger:
2070 arg 2 is "sc":
2071 wait 3 ticks
2072 make the player-arg execute command "config"
2073
2074command /§lxneoiaeod234 [<player>] [<text>]:
2075 executable by: console
2076 trigger:
2077 arg 2 is "sc":
2078 wait 3 ticks
2079 make the player-arg execute command "open config"
2080
2081command /dashdja [<player>] [<text>]:
2082 executable by: console
2083 trigger:
2084 arg 2 is "sc":
2085 wait 3 ticks
2086 make the player-arg execute command "escenarios menu"
2087
2088command /§nextwey2xdxdxd [<player>] [<text>]:
2089 executable by: console
2090 trigger:
2091 arg 2 is "sub":
2092 wait 3 ticks
2093 make the player-arg execute command "§nextpage §menu"
2094
2095command /§codejuanzoovoltrix [<player>] [<text>]:
2096 executable by: console
2097 trigger:
2098 arg 2 is "sub":
2099 wait 3 ticks
2100 make the player-arg execute command "scenarios"
2101
2102command /x2dashdja [<player>] [<text>]:
2103 executable by: console
2104 trigger:
2105 arg 2 is "sc":
2106 wait 3 ticks
2107 make the player-arg execute command "scenarios"
2108
2109command /§d [<player>] [<text>]:
2110 executable by: console
2111 trigger:
2112 arg 2 is "sc":
2113 wait 3 ticks
2114 make the player-arg execute command "§xd2 menu"
2115
2116command /§d2 [<player>] [<text>]:
2117 executable by: console
2118 trigger:
2119 arg 2 is "sc":
2120 wait 3 ticks
2121 make the player-arg execute command "§xd3 menu"
2122
2123command /dashdjadasd [<player>] [<text>]:
2124 executable by: console
2125 trigger:
2126 arg 2 is "times":
2127 wait 3 ticks
2128 make the player-arg execute command "§xd dakjsd"
2129
2130command /§uhcscenarioslook [<player>] [<text>]:
2131 executable by: console
2132 trigger:
2133 arg 2 is "times":
2134 wait 3 ticks
2135 make the player-arg execute command "scenarios"
2136
2137command /3dashdjadasd [<player>] [<text>]:
2138 executable by: console
2139 trigger:
2140 arg 2 is "times":
2141 wait 3 ticks
2142 make the player-arg execute command "§xd10 dakjsd"
2143
2144command /3dashdjadasdvl [<player>] [<text>]:
2145 executable by: console
2146 trigger:
2147 arg 2 is "times":
2148 wait 3 ticks
2149 make the player-arg execute command "§xdvoltrix dakjsd"
2150
2151command /3dashdjadasasdasdasddvl [<player>] [<text>]:
2152 executable by: console
2153 trigger:
2154 arg 2 is "times":
2155 wait 3 ticks
2156 make the player-arg execute command "§xd123voltrixuhcserver menu"
2157
2158command /§xd3 [<text>]:
2159 trigger:
2160 arg 1 is "menu":
2161 open chest with 6 rows named "&bAppleRates" to player
2162 format slot 18 of player with apple named "&6&lAppleRates" with lore "" to be unstealable
2163 format slot 20 of player with stained glass pane:5 named "&a+1" with lore "" to run [make player execute command "/§r add"]
2164 format slot 21 of player with stained glass pane:14 named "&c-1" with lore "" to run [make player execute command "/§r remove"]
2165 format slot 22 of player with stained glass pane:15 named "" with lore "" to be unstealable
2166 format slot 23 of player with stained glass pane:5 named "&a+10" with lore "" to run [make player execute command "/§r2 add"]
2167 format slot 24 of player with stained glass pane:14 named "&c-10" with lore "" to run [make player execute command "/§r2 remove"]
2168 format slot 27 of player with flint named "&8&lFlintRates" with lore "" to be unstealable
2169 format slot 29 of player with stained glass pane:5 named "&a+1" with lore "" to run [make player execute command "/§f add"]
2170 format slot 30 of player with stained glass pane:14 named "&c-1" with lore "" to run [make player execute command "/§f remove"]
2171 format slot 31 of player with stained glass pane:15 named "" with lore "" to be unstealable
2172 format slot 32 of player with stained glass pane:5 named "&a+10" with lore "" to run [make player execute command "/§f2 add"]
2173 format slot 33 of player with stained glass pane:14 named "&c-10" with lore "" to run [make player execute command "/§f2 remove"]
2174 format slot 45 of player with arrow named "&cBack" with lore "&7Click to back" to close then run "§789789 %player% sc"
2175 format slot 53 of player with redstone named "&cClose" with lore "" to close
2176
2177command /§xd [<text>]:
2178 trigger:
2179 arg 1 is "dakjsd":
2180 open chest with 6 rows named "&bGame Options" to player
2181 format slot 18 of player with potion:16421 named "&6&lFinal Heal" with lore "" to be unstealable
2182 format slot 20 of player with stained glass pane:5 named "&a+1 Minute" with lore "" to run [make player execute command "/finalheal add"]
2183 format slot 21 of player with stained glass pane:14 named "&c-1 Minute" with lore "" to run [make player execute command "/finalheal remove"]
2184 format slot 22 of player with stained glass pane:15 named "" with lore "" to be unstealable
2185 format slot 23 of player with stained glass pane:5 named "&a+10" with lore "" to run [make player execute command "/§finalheal add"]
2186 format slot 24 of player with stained glass pane:14 named "&c-10" with lore "" to run [make player execute command "/§finalheal remove"]
2187 format slot 27 of player with bedrock named "&6&lMeetup" with lore "" to be unstealable
2188 format slot 29 of player with stained glass pane:5 named "&a+1 Minute" with lore "" to run [make player execute command "/meetup add"]
2189 format slot 30 of player with stained glass pane:14 named "&c-1 Minute" with lore "" to run [make player execute command "/meetup remove"]
2190 format slot 31 of player with stained glass pane:15 named "" with lore "" to be unstealable
2191 format slot 32 of player with stained glass pane:5 named "&a+10" with lore "" to run [make player execute command "/§meetup add"]
2192 format slot 33 of player with stained glass pane:14 named "&c-10" with lore "" to run [make player execute command "/§meetup remove"]
2193 format slot 45 of player with arrow named "&cBack" with lore "&7Click to back" to close then run "§789789 %player% sc"
2194 format slot 53 of player with redstone named "&cClose" with lore "" to close
2195
2196command /§xd10 [<text>]:
2197 trigger:
2198 arg 1 is "dakjsd":
2199 open chest with 6 rows named "&bBorder Options" to player
2200 format slot 0 of player with bedrock named "&6&lBorder Start" with lore "" to be unstealable
2201 format slot 1 of player with stained glass pane:15 named "" with lore "" to be unstealable
2202 format slot 2 of player with bedrock named "&e2000" with lore "&7You can use /borderstart (values)" to run [make player execute command "/borderstart 2000"]
2203 format slot 3 of player with bedrock named "&e1500" with lore "&7You can use /borderstart (values)" to run [make player execute command "/borderstart 1500"]
2204 format slot 4 of player with bedrock named "&e1000" with lore "&7You can use /borderstart (values)" to run [make player execute command "/borderstart 1000"]
2205 format slot 5 of player with bedrock named "&e500" with lore "&7You can use /borderstart (values)" to run [make player execute command "/borderstart 500"]
2206 format slot 6 of player with bedrock named "&e250" with lore "&7You can use /borderstart (values)" to run [make player execute command "/borderstart 250"]
2207 format slot 9 of player with bedrock named "&6&lShrink 1" with lore "" to be unstealable
2208 format slot 10 of player with stained glass pane:15 named "" with lore "" to be unstealable
2209 format slot 11 of player with bedrock named "&e1500" with lore "&7You can use /shrink1 (values)" to run [make player execute command "/shrink1 1500"]
2210 format slot 12 of player with bedrock named "&e1000" with lore "&7You can use /shrink1 (values)" to run [make player execute command "/shrink1 1000"]
2211 format slot 13 of player with bedrock named "&e500" with lore "&7You can use /shrink1 (values)" to run [make player execute command "/shrink1 500"]
2212 format slot 14 of player with bedrock named "&e250" with lore "&7You can use /shrink1 (values)" to run [make player execute command "/shrink1 250"]
2213 format slot 15 of player with bedrock named "&e100" with lore "&7You can use /shrink1 (values)" to run [make player execute command "/shrink1 100"]
2214 format slot 18 of player with bedrock named "&6&lShrink 2" with lore "" to be unstealable
2215 format slot 19 of player with stained glass pane:15 named "" with lore "" to be unstealable
2216 format slot 20 of player with bedrock named "&e1000" with lore "&7You can use /shrink2 (values)" to run [make player execute command "/shrink2 1000"]
2217 format slot 21 of player with bedrock named "&e500" with lore "&7You can use /shrink2 (values)" to run [make player execute command "/shrink2 500"]
2218 format slot 22 of player with bedrock named "&e100" with lore "&7You can use /shrink2 (values)" to run [make player execute command "/shrink2 100"]
2219 format slot 23 of player with bedrock named "&e50" with lore "&7You can use /shrink2 (values)" to run [make player execute command "/shrink2 50"]
2220 format slot 24 of player with bedrock named "&e25" with lore "&7You can use /shrink2 (values)" to run [make player execute command "/shrink2 25"]
2221 format slot 27 of player with bedrock named "&6&lShrink 3" with lore "" to be unstealable
2222 format slot 28 of player with stained glass pane:15 named "" with lore "" to be unstealable
2223 format slot 29 of player with bedrock named "&e500" with lore "&7You can use /shrink3 (values)" to run [make player execute command "/shrink3 500"]
2224 format slot 30 of player with bedrock named "&e250" with lore "&7You can use /shrink3 (values)" to run [make player execute command "/shrink3 250"]
2225 format slot 31 of player with bedrock named "&e100" with lore "&7You can use /shrink3 (values)" to run [make player execute command "/shrink3 100"]
2226 format slot 32 of player with bedrock named "&e50" with lore "&7You can use /shrink3 (values)" to run [make player execute command "/shrink3 50"]
2227 format slot 33 of player with bedrock named "&e25" with lore "&7You can use /shrink3 (values)" to run [make player execute command "/shrink3 25"]
2228 format slot 36 of player with bedrock named "&6&lShrink 4" with lore "" to be unstealable
2229 format slot 37 of player with stained glass pane:15 named "" with lore "" to close then run [make player execute command ""]
2230 format slot 38 of player with bedrock named "&e250" with lore "&7You can use /shrink4 (values)" to run [make player execute command "/shrink4 250"]
2231 format slot 39 of player with bedrock named "&e200" with lore "&7You can use /shrink4 (values)" to run [make player execute command "/shrink4 200"]
2232 format slot 40 of player with bedrock named "&e100" with lore "&7You can use /shrink4 (values)" to run [make player execute command "/shrink4 100"]
2233 format slot 41 of player with bedrock named "&e50" with lore "&7You can use /shrink4 (values)" to run [make player execute command "/shrink4 50"]
2234 format slot 42 of player with bedrock named "&e25" with lore "&7You can use /shrink4 (values)" to run [make player execute command "/shrink4 25"]
2235 format slot 45 of player with arrow named "&cBack" with lore "&7Click to back" to close then run "§789789 %player% sc"
2236 format slot 53 of player with redstone named "&cClose" with lore "" to close
2237
2238command /§lez [<text>]:
2239 trigger:
2240 arg 1 is "menu":
2241 open chest with 6 rows named "&bBorder Shrinks." to player
2242 format slot 0 of player with bedrock named "&6&lBorder Start" with lore "" to be unstealable
2243 format slot 1 of player with stained glass pane:15 named "" with lore "" to be unstealable
2244 format slot 2 of player with paper named "&e%{borderstart}%x%{borderstart}%" with lore "" to be unstealable
2245 format slot 9 of player with bedrock named "&6&lShrink 1" with lore "" to be unstealable
2246 format slot 10 of player with stained glass pane:15 named "" with lore "" to be unstealable
2247 format slot 11 of player with paper named "&e%{shrink1}%x%{shrink1}%" with lore "" to be unstealable
2248 format slot 18 of player with bedrock named "&6&lShrink 2" with lore "" to be unstealable
2249 format slot 19 of player with stained glass pane:15 named "" with lore "" to be unstealable
2250 format slot 20 of player with paper named "&e%{shrink2}%x%{shrink2}%" with lore "" to be unstealable
2251 format slot 27 of player with bedrock named "&6&lShrink 3" with lore "" to be unstealable
2252 format slot 28 of player with stained glass pane:15 named "" with lore "" to be unstealable
2253 format slot 29 of player with paper named "&e%{shrink3}%x%{shrink3}%" with lore "" to be unstealable
2254 format slot 36 of player with bedrock named "&6&lShrink 4" with lore "" to be unstealable
2255 format slot 37 of player with stained glass pane:15 named "" with lore "" to be unstealable
2256 format slot 38 of player with paper named "&e%{shrink4}%x%{shrink4}%" with lore "" to be unstealable
2257command /§ltoxicnub [<player>] [<text>]:
2258 executable by: console
2259 trigger:
2260 arg 2 is "times":
2261 wait 3 ticks
2262 make the player-arg execute command "§lez menu"
2263on break of wood:
2264 if {timber} is true:
2265 {started} is true
2266 {spect::%player%} is not set
2267 {staffmode::%player%} is not set
2268 loop blocks upwards:
2269 if loop-block is wood:
2270 drop the loop-block-1 at event-block
2271 set the loop-block to air
2272 loop blocks in radius 2 around loop-block:
2273 if loop-block-2 is wood:
2274 drop the loop-block-2 at event-block
2275 set the loop-block-2 to air
2276 loop blocks below:
2277 if loop-block is wood:
2278 drop the loop-block-1 at event-block
2279 set the loop-block to air
2280 loop blocks in radius 2 around loop-block:
2281 if loop-block-2 is wood:
2282 drop the loop-block-2 at event-block
2283 set the loop-block-2 to air
2284
2285command /notchson:
2286 permission: uhc.admin
2287 trigger:
2288 broadcast "{@Prefix} &aNotch Apples On"
2289 set {gods} to "ON"
2290
2291on quit:
2292 {staffmode::%player%} is true
2293 remove 1 from {uhc.spectators}
2294 players has permission "uhc.admin"
2295 make player execute command "/staff"
2296
2297command /regenmap:
2298 permission: uhc.admin
2299 trigger:
2300 wait 3 seconds
2301 execute console command "/mv delete uhcworld"
2302 execute console command "/mvconfirm"
2303 execute console command "/mv create uhcworld normal"
2304 execute console command "/mvconfirm"
2305 wait 3 seconds
2306 execute console command "/mv import uhcworld normal"
2307 execute console command "/mv delete uhcworld_nether"
2308 execute console command "/mvconfirm"
2309 execute console command "/mv remove uhcworld_nether"
2310 wait 3 seconds
2311 execute console command "/mv create uhcworld_nether nether"
2312 execute console command "/mvconfirm"
2313 execute console command "/mv import uhcworld_nether normal"
2314 execute console command "/mvrule naturalRegeneration false uhcworld_nether"
2315 broadcast "&eThe map uhcworld and uhcworld_nether are loaded correctly. For host a UHC use /host add your name and for config the UHC use the Items or /edit config"
2316 delete {loadingmap}
2317
2318command /notchsoff:
2319 permission: uhc.admin
2320 trigger:
2321 broadcast "{@Prefix} &cNotchs Apples Off"
2322 set {gods} to "OFF"
2323
2324command /deathmatch [<text>]:
2325 permission: uhc.admin
2326 trigger:
2327 if arg-1 is "enable":
2328 {deathmatch} is true
2329 broadcast "&cThe deathmatch are forced to start."
2330 broadcast "&cAll players, prepare to fight."
2331 wait 3 seconds
2332 set {deathmatch.already} to true
2333 execute console command "/§setborder 15 uhcworld"
2334
2335on command "/deathmatch":
2336 {deathmatch} is false
2337 send "&cThe deathmatch mode is false, please enable in /edit config"
2338
2339on command "/deathmatch":
2340 {started} is false
2341 cancel event
2342
2343On craft of golden apple:1:
2344 {gods} is "OFF"
2345 cancel event
2346 send "&cGolden Apples Disabled!"
2347
2348on respawn:
2349 {started} is true
2350 {redditmode} is false
2351 delete {ingame::%player%}
2352 wait 1 second
2353 execute console command "/spec %player%"
2354
2355on respawn:
2356 {started} is true
2357 {redditmode} is true
2358 delete {ingame::%player%}
2359 send "&aThanks for play the UHC, you have {@RedditKickTime} for say your last words!"
2360 teleport player to {spawnuhc}
2361 wait {@RedditKickTime}
2362 kick the player due to "{@RedditKickMsg}"
2363
2364on quit:
2365 {started} is false
2366 delete {spect::%player%}
2367 delete {practice::%player%}
2368 make player execute command "/team leave"
2369
2370on quit:
2371 {spect::%player%} is true
2372 execute console command "/unspec %player%"
2373 remove 1 from {uhc.spectators}
2374 players has permission "uhc.admin"
2375 execute console command "/spec %player%"
2376
2377on join:
2378 {spect::%player%} is true
2379 add 1 to {uhc.spectators}
2380
2381command /clearchat:
2382 permission: uhc.admin
2383 trigger:
2384 loop 200 times:
2385 broadcast ""
2386 broadcast "&aChat cleared by: %sender%"
2387
2388command /tp <player>:
2389 description: Teleports you to a player.
2390 usage: /tp <target player>.
2391 permission: uhc.admin
2392 trigger:
2393 if player has permission "uhc.admin":
2394 teleport player to argument
2395 message "{@Prefix} &eTeleported to %argument%"
2396 stop
2397
2398command /tphere <player>:
2399 description: Teleporta a player to you
2400 usage: /tphere <target player>
2401 permission: uhc.admin
2402 trigger:
2403 if player has permission "uhc.admin":
2404 message "{@Prefix} &eTeleported %argument% to %player%"
2405 teleport argument to player
2406 stop
2407
2408command /msg <player> <text>:
2409 aliases: tell, m, t, whisper
2410 description:Send an message
2411 trigger:
2412 send "&e&l[%player% > %argument 2%]" to argument 1
2413 send "&e&l[%player% > %argument 1%] %argument 2%" to player
2414 set {uhc.%argument 1%.reply} to player
2415
2416command /r <text>:
2417 aliases: reply
2418 description: Reply to the last private message.
2419 trigger:
2420 send "&e&l[%player% > %argument 1%]" to {uhc.%player%.reply}
2421 send "&e&l[%player% > %argument 1%]" to player
2422
2423function Border(i: int, w: text):
2424 set {_aux} to {_i} + {_i} + 1
2425 set {_aux2} to 0 - {_i}
2426
2427 make console execute command "/wb %{_w}% clear"
2428 make console execute command "/wb shape rectangular"
2429 make console execute command "/wb %{_w}% setcorners %{_i}% %{_i}% -%{_i}% -%{_i}%"
2430
2431 set {_loc} to location at {_i}, 150, {_i} of the world ("%{_w}%" parsed as world)
2432 loop {_aux} times:
2433 while block at {_loc} is air or long grass:
2434 remove 1 from y-location of {_loc}
2435 add 5 to y-location of {_loc}
2436 loop 5 times:
2437 set block at {_loc} to BEDROCK
2438 remove 1 from y-location of {_loc}
2439 wait 0.2 ticks
2440 remove 1 from x-location of {_loc}
2441 set y-location of {_loc} to 150
2442
2443 set {_loc} to location at {_aux2}, 150, {_aux2} of the world ("%{_w}%" parsed as world)
2444 loop {_aux} times:
2445 while block at {_loc} is air or long grass:
2446 remove 1 from y-location of {_loc}
2447 add 5 to y-location of {_loc}
2448 loop 5 times:
2449 set block at {_loc} to BEDROCK
2450 remove 1 from y-location of {_loc}
2451 wait 0.2 ticks
2452 add 1 to x-location of {_loc}
2453 set y-location of {_loc} to 150
2454
2455 set {_loc} to location at {_i}, 150, {_i} of the world ("%{_w}%" parsed as world)
2456 remove 1 from z-location of {_loc}
2457 loop ({_aux} -2) times:
2458 while block at {_loc} is air or long grass:
2459 remove 1 from y-location of {_loc}
2460 add 5 to y-location of {_loc}
2461 loop 5 times:
2462 set block at {_loc} to BEDROCK
2463 remove 1 from y-location of {_loc}
2464 wait 0.2 ticks
2465 remove 1 from z-location of {_loc}
2466 set y-location of {_loc} to 150
2467
2468 set {_loc} to location at {_aux2}, 150, {_aux2} of the world ("%{_w}%" parsed as world)
2469 add 1 to z-location of {_loc}
2470 loop ({_aux} -2) times:
2471 while block at {_loc} is air or long grass:
2472 remove 1 from y-location of {_loc}
2473 add 5 to y-location of {_loc}
2474 loop 5 times:
2475 set block at {_loc} to BEDROCK
2476 remove 1 from y-location of {_loc}
2477 wait 0.2 ticks
2478 add 1 to z-location of {_loc}
2479 set y-location of {_loc} to 150
2480
2481command /setborder [<int>] [<text>]:
2482 permission: uhc.admin
2483 trigger:
2484 if arg-1 is set:
2485 if arg-2 is set:
2486 broadcast "{@borderprefix} {@shrinkmessage} in 10 seconds..."
2487 wait 1 second
2488 broadcast "{@borderprefix} {@shrinkmessage} in 9 seconds..."
2489 wait 1 second
2490 broadcast "{@borderprefix} {@shrinkmessage} in 8 seconds..."
2491 wait 1 second
2492 broadcast "{@borderprefix} {@shrinkmessage} in 7 seconds..."
2493 wait 1 second
2494 broadcast "{@borderprefix} {@shrinkmessage} in 6 seconds..."
2495 wait 1 second
2496 broadcast "{@borderprefix} {@shrinkmessage} in 5 seconds..."
2497 wait 1 second
2498 broadcast "{@borderprefix} {@shrinkmessage} in 4 seconds..."
2499 wait 1 second
2500 broadcast "{@borderprefix} {@shrinkmessage} in 3 seconds..."
2501 wait 1 second
2502 broadcast "{@borderprefix} {@shrinkmessage} in 2 seconds..."
2503 wait 1 second
2504 broadcast "{@borderprefix} {@shrinkmessage} in 1 seconds..."
2505 set {border} to "%arg-1%"
2506 Border(arg-1, arg-2)
2507 wait 2 seconds
2508 else:
2509 send "&c/setborder <size> <world>"
2510 else:
2511 send "&c/setborder <size> <world>"
2512
2513command /§setborder [<int>] [<text>]:
2514 permission: uhc.admin
2515 trigger:
2516 if arg-1 is set:
2517 if arg-2 is set:
2518 set {border} to "%arg-1%"
2519 Border(arg-1, arg-2)
2520 wait 2 seconds
2521 else:
2522 send "&c/setborder <size> <world>"
2523 else:
2524 send "&c/setborder <size> <world>"
2525
2526command /staff:
2527 permission: uhc.admin
2528 trigger:
2529 if {staffmode::%player%} is not set:
2530 delete {ingame::%player%}
2531 delete {staff.helmet.%player%}
2532 delete {staff.chestplate.%player%}
2533 delete {staff.leggings.%player%}
2534 delete {staff.boots.%player%}
2535 delete {staff.inventory.%player%}
2536 wait 1 tick
2537 set {staff.inventory.%player%} to serialized contents of player's inventory
2538 set {staff.helmet.%player%} to player's helmet
2539 set {staff.chestplate.%player%} to player's chestplate
2540 set {staff.leggings.%player%} to player's leggings
2541 set {staff.boots.%player%} to player's boots
2542 wait 1 tick
2543 clear player's inventory
2544 message "&8[&5Staff Mode&8] &7Staff Mode: &aEnabled"
2545 wait 1 tick
2546 hide player from all players
2547 equip player with chain leggings
2548 wait 1 tick
2549 enchant the player's leggings with unbreaking 3
2550 enchant the player's leggings with protection 1
2551 wait 1 tick
2552 set slot 2 of player to a music disc named "&aRandom TP"
2553 set slot 0 of player to redstone named "&einv Viewer"
2554 set slot 1 of player to ice named "&bFreeze"
2555 set slot 3 of player to player head named "&bTeleport To Last Helpop"
2556 set slot 4 of player to a gray dye named "&e&lVanish: &a&lON"
2557 set slot 5 of player to a lead named "&eFollower &7(Follow Players Around) "
2558 set slot 8 of player to a diamond sword named "&aTeleport to 0,0"
2559 set {staffmode::%player%} to true
2560 delete {build::%player%}
2561 set player's gamemode to creative
2562 else:
2563 message "&8[&5Staff Mode&8] &7Staff Mode: &cDisabled"
2564 delete {staffmode::%player%}
2565 wait 1 tick
2566 clear player's inventory
2567 set player's gamemode to survival
2568 reveal player from all players
2569 clear inventory of player
2570 set player's inventory's serialized contents to {staff.inventory.%player%}
2571 set player's helmet to {staff.helmet.%player%}
2572 set player's chestplate to {staff.chestplate.%player%}
2573 set player's leggings to {staff.leggings.%player%}
2574 set player's boots to {staff.boots.%player%}
2575 set {build::%player%} to true
2576
2577on teleport:
2578 {staffmode::%player%} is true
2579 wait 1.5 second
2580 set player's gamemode to creative
2581
2582on teleport:
2583 {spect::%player%} is true
2584 wait 1.5 second
2585 set player's gamemode to creative
2586
2587on right click:
2588 if player's tool is a diamond sword:
2589 if name of player's tool is "&aTeleport to 0,0":
2590 wait 5 ticks
2591 execute console command "/mv tp %player% uhcworld"
2592 stop
2593 if player's tool is a head:
2594 if name of player's tool is "&bTeleport To Last Helpop":
2595 if player has permission "uhc.admin":
2596 wait 5 ticks
2597 teleport player to {lastreport}
2598 stop
2599 if player is holding a music disc named "&aRandom TP":
2600 if player has permission "uhc.admin":
2601 set {_random} to a random player out of all players
2602 while {_random} is name of player:
2603 set {_random} to a random player out of all players
2604 wait 1 tick
2605 if {_random} is not name of player:
2606 teleport player 1 behind {_random}
2607 send " &5Staff Teleported to &c%{_random}%"
2608 else:
2609 message "&cNo Permission"
2610
2611command /vanish-on:
2612 trigger:
2613 if player has permission "uhc.admin":
2614 hide player from all players
2615 message "&eVanish: &aON" to player
2616 else:
2617 message "&cNo Permission" to player
2618
2619command /vanish-off:
2620 trigger:
2621 if player has permission "uhc.admin":
2622 reveal player to all players
2623 message "&eVanish: &cOFF" to player
2624 else:
2625 message "&cNo Permission" to player
2626
2627on rightclick with dye:
2628 if {staffmode::%player%} is true:
2629 if name of player's tool is "&e&lVanish: &c&lOFF":
2630 set slot 4 of player to gray dye named "&e&lVanish: &a&lON"
2631 make player execute command "/vanish-on"
2632 else if name of player's tool is "&e&lVanish: &a&lON":
2633 set slot 4 of player to light green dye named "&e&lVanish: &c&lOFF"
2634 make player execute command "/vanish-off"
2635 else:
2636 message "&c&cNo Permission"
2637
2638on right click with lead:
2639 if player is holding a lead named "&eFollower &7(Follow Players Around) ":
2640 if player has permission "uhc.admin":
2641 if entity's target is a player:
2642 set {_name} to "%target entity%" parsed as a player
2643 send "&8[&5Staff Mode&8] &7You now follow &9%{_name}%"
2644 make player ride {_name}
2645
2646on rightclick with ice:
2647 if {staffmode::%player%} is true:
2648 make player execute command "/freeze %player's targeted player%"
2649
2650command /freeze [<player>]:
2651 trigger:
2652 set {_prefix} to "&3&lFreeze&b&l> &b"
2653 arg 1 is not set:
2654 message "&cWrong syntax! Usage: /freeze <player>"
2655 stop
2656 {frozen::%arg-1%} is not set:
2657 set {frozen::%arg-1%} to false
2658 player is arg 1:
2659 player does not have permission "uhc.admin":
2660 message "&cYou don't have permission to do that"
2661 stop
2662 not {frozen::%arg-1%}:
2663 player does not have permission "uhc.admin":
2664 message "&cYou don't have permission to do that"
2665 stop
2666 apply slowness 154 to arg-1 for 9999 seconds
2667 apply jump boost -15 to arg-1 for 9999 seconds
2668 set {frozen::%arg-1%} to true
2669 set {_templastused} to now
2670 subtract 1 hour from {_templastused}
2671 set {normalcoords.%arg-1%} to arg-1's location
2672 message "&eYou froze &f%arg 1%"
2673 message "&eYou have been frozen by &f%player%" to arg 1
2674 stop
2675 player does not have permission "uhc.admin":
2676 message "&cYou don't have permission to do that"
2677 stop
2678 set {frozen::%arg-1%} to false
2679 set {_templastused} to now
2680 subtract 1 hour from {_templastused}
2681 set {freeze.%arg 1%.lastused} to {_templastused}
2682 remove slowness from arg-1
2683 remove jump boost from arg-1
2684 message "&eYou unfroze &f%arg 1%"
2685 message "&eYou have been unfrozen by &f%player%" to arg 1
2686
2687every 3 seconds:
2688 loop all players:
2689 {frozen::%loop-player%} is true
2690 send "" to loop-player
2691 send "&7&m----------------------------" to loop-player
2692 send "&aYou are frozen, please enter to the Team Speak" to loop-player
2693 send "&aTo SS." to loop-player
2694 send "" to loop-player
2695 send "&cts.voltrixpvp.win" to loop-player
2696 send "&7&m----------------------------" to loop-player
2697 teleport loop-player to {normalcoords.%loop-player%}
2698
2699on break:
2700 {frozen::%player%} is true
2701 cancel event
2702
2703on quit:
2704 {frozen::%player%} is true
2705 delete {frozen::%player%}
2706 broadcast "&c%player% disconnected in SS."
2707
2708on command:
2709 command is not "/helpop"
2710 command is not "/freeze"
2711 command is not "/msg"
2712 command is not "/m"
2713 command is not "/w"
2714 command is not "/t"
2715 command is not "/tell"
2716 command is not "/whisper"
2717 command is not "/pm"
2718 {frozen::%player%} is true
2719 cancel event
2720 send "&cYou are frozen!"
2721
2722command /finalheal [<text>]:
2723 permission: uhc.admin
2724 trigger:
2725 arg 1 is "add":
2726 add 1 to {finalheal}
2727 send "&a+1 Minute To Final Heal = %{finalheal}% Minutes"
2728 arg 1 is "remove":
2729 remove 1 from {finalheal}
2730 send "&c-1 Minute To Final Heal = %{finalheal}% Minutes"
2731
2732command /meetup [<text>]:
2733 permission: uhc.admin
2734 trigger:
2735 arg 1 is "add":
2736 add 1 to {meetup}
2737 send "&a+1 Minute To Meetup = %{meetup}% Minutes"
2738 arg 1 is "remove":
2739 remove 1 from {meetup}
2740 send "&c-1 Minute To Meetup = %{meetup}% Minutes"
2741
2742command /§finalheal [<text>]:
2743 permission: uhc.admin
2744 trigger:
2745 arg 1 is "add":
2746 add 10 to {finalheal}
2747 send "&a+10 Minute To Final Heal = %{finalheal}% Minutes"
2748 arg 1 is "remove":
2749 remove 10 from {finalheal}
2750 send "&c-10 Minute To Final Heal = %{finalheal}% Minutes"
2751
2752command /§meetup [<text>]:
2753 permission: uhc.admin
2754 trigger:
2755 arg 1 is "add":
2756 add 10 to {meetup}
2757 send "&a+10 Minute To Meetup = %{meetup}% Minutes"
2758 arg 1 is "remove":
2759 remove 10 from {meetup}
2760 send "&c-10 Minute To Meetup = %{meetup}% Minutes"
2761
2762command /§r [<text>]:
2763 permission: uhc.admin
2764 trigger:
2765 arg 1 is "add":
2766 add 1 to {rates::apples}
2767 send "&a+1 to AppleRates = %{rates::apples}%"
2768 arg 1 is "remove":
2769 remove 1 from {rates::apples}
2770 send "&c-1 from AppleRates = %{rates::apples}%"
2771
2772command /§f [<text>]:
2773 permission: uhc.admin
2774 trigger:
2775 arg 1 is "add":
2776 add 1 to {rates::flint}
2777 send "&a+1 to FlintRates = %{rates::flint}%"
2778 arg 1 is "remove":
2779 remove 1 from {rates::flint}
2780 send "&c-1 from FlintRates = %{rates::flint}%"
2781
2782command /§r2 [<text>]:
2783 permission: uhc.admin
2784 trigger:
2785 arg 1 is "add":
2786 add 10 to {rates::apples}
2787 send "&a+10 to AppleRates = %{rates::apples}%"
2788 arg 1 is "remove":
2789 remove 10 from {rates::apples}
2790 send "&c-10 from AppleRates = %{rates::apples}%"
2791
2792command /§f2 [<text>]:
2793 permission: uhc.admin
2794 trigger:
2795 arg 1 is "add":
2796 add 10 to {rates::flint}
2797 send "&a+10 to FlintRates = %{rates::flint}%"
2798 arg 1 is "remove":
2799 remove 10 from {rates::flint}
2800 send "&c-10 from FlintRates = %{rates::flint}%"
2801
2802command /borderstart <number>:
2803 usage: /borderstart [values]
2804 trigger:
2805 if arg-1 is set:
2806 if arg-1 is smaller than 2001:
2807 set {borderstart} to arg-1
2808 message "&aBorder start set to %{borderstart}%"
2809 else:
2810 message "&cI can`t edge the limit of Border (2000 Max)"
2811
2812command /shrink1 <number>:
2813 usage: /shrink1 [values]
2814 trigger:
2815 if arg-1 is set:
2816 if arg-1 is smaller than 1501:
2817 set {shrink1} to arg-1
2818 message "&aThe Shrink1 set to %{shrink1}%"
2819 else:
2820 message "&cI can`t edge the limit of Border (1500 Max)"
2821
2822command /shrink2 <number>:
2823 usage: /shrink2 [values]
2824 trigger:
2825 if arg-1 is set:
2826 if arg-1 is smaller than 1001:
2827 set {shrink2} to arg-1
2828 message "&aThe Shrink2 set to %{shrink2}%"
2829 else:
2830 message "&cI can`t edge the limit of Border (1000 Max)"
2831
2832command /shrink3 <number>:
2833 usage: /shrink3 [values]
2834 trigger:
2835 if arg-1 is set:
2836 if arg-1 is smaller than 251:
2837 set {shrink3} to arg-1
2838 message "&aThe Shrink3 set to %{shrink3}%"
2839 else:
2840 message "&cI can`t edge the limit of Border (250 Max)"
2841
2842command /shrink4 <number>:
2843 usage: /shrink4 [values]
2844 trigger:
2845 if arg-1 is set:
2846 if arg-1 is smaller than 101:
2847 set {shrink4} to arg-1
2848 message "&aThe Shrink4 set to %{shrink4}%"
2849 else:
2850 message "&cI can`t edge the limit of Border (100 Max)"
2851
2852on command "/borderstart":
2853 player does not have permission "uhc.admin"
2854 cancel event
2855
2856on command "/shrink1":
2857 player does not have permission "uhc.admin"
2858 cancel event
2859
2860on command "/shrink2":
2861 player does not have permission "uhc.admin"
2862 cancel event
2863
2864on command "/shrink3":
2865 player does not have permission "uhc.admin"
2866 cancel event
2867
2868on command "/shrink4":
2869 player does not have permission "uhc.admin"
2870 cancel event
2871
2872command /helpop [<text>]:
2873 aliases: /adminchat
2874 trigger:
2875 if {helpop.cooldown.%player%} is not set:
2876 if arg-1 is not set:
2877 message "&8[&b&lHELPOP&8] &8» &cPlease use &7/helpop <message>"
2878 stop
2879 if arg-1 is set:
2880 message "&8[&b&lHELPOP&8] &8» &aYour request has been sent to all online staff."
2881 set {message} to arg-1
2882 set {lastreport} to player's location
2883 loop all players:
2884 loop-player has permission "uhc.admin":
2885 send "&8[&b&lHELPOP&8] &c&n%sender%&7 has requested help: &c%arg-1%" to loop-player
2886 set {helpop.cooldown.%player%} to true
2887 wait 30 seconds
2888 delete {helpop.cooldown.%player%}
2889 if {helpop.cooldown.%player%} is true:
2890 send "&cYou need wait &6&n30 seconds &cfor use again.!" to player
2891 stop
2892
2893command /mlg:
2894 trigger:
2895 {finished} is true
2896 push the player up at speed 20
2897 clear player's inventory
2898 give player 2304 water bucket named "&b&lMLG"
2899
2900command /§l:
2901 trigger:
2902 {backpack} is true
2903 loop all players:
2904 give 1 ender chest named "{@BackPack}" to loop-player
2905
2906on death of a player:
2907 {finished} is true
2908 clear drops
2909 clear dropped items
2910
2911every 5 seconds:
2912 if {started} is true:
2913 if {Teams.Management} is not set:
2914 loop all players:
2915 wipe loop-player sidebar
2916 set name of sidebar of loop-player to "{@board}"
2917 set score "{@line11}" in sidebar of loop-player to 11
2918 set score "{@line10}" in sidebar of loop-player to 10
2919 set score "{@line9}" in sidebar of loop-player to 9
2920 set score "{@line8}" in sidebar of loop-player to 8
2921 set score "{@line7}" in sidebar of loop-player to 7
2922 set score "{@line6}" in sidebar of loop-player to 6
2923 set score "{@line5}" in sidebar of loop-player to 5
2924 set score "{@line4}" in sidebar of loop-player to 4
2925 set score "{@line3}" in sidebar of loop-player to 3
2926 set score "{@line2}" in sidebar of loop-player to 2
2927 set score "{@line1}" in sidebar of loop-player to 1
2928 if {started} is false:
2929 loop all players:
2930 wipe loop-player sidebar
2931 set name of sidebar of loop-player to "{@boardlobby}"
2932 set score "{@lobbyline8}" in sidebar of loop-player to 8
2933 set score "{@lobbyline7}" in sidebar of loop-player to 7
2934 set score "{@lobbyline6}" in sidebar of loop-player to 6
2935 set score "{@lobbyline5}" in sidebar of loop-player to 5
2936 set score "{@lobbyline4}" in sidebar of loop-player to 4
2937 set score "{@lobbyline3}" in sidebar of loop-player to 3
2938 set score "{@lobbyline2}" in sidebar of loop-player to 2
2939 set score "{@lobbyline1}" in sidebar of loop-player to 1
2940 if {started} is true:
2941 if {Teams.Management} is true:
2942 loop all players:
2943 wipe loop-player sidebar
2944 set name of sidebar of loop-player to "{@teamboard}"
2945 set score "{@teamline12}" in sidebar of loop-player to 12
2946 set score "{@teamline11}" in sidebar of loop-player to 11
2947 set score "{@teamline10}" in sidebar of loop-player to 10
2948 set score "{@teamline9}" in sidebar of loop-player to 9
2949 set score "{@teamline8}" in sidebar of loop-player to 8
2950 set score "{@teamline7}" in sidebar of loop-player to 7
2951 set score "{@teamline6}" in sidebar of loop-player to 6
2952 set score "{@teamline5}" in sidebar of loop-player to 5
2953 set score "{@teamline4}" in sidebar of loop-player to 4
2954 set score "{@teamline3}" in sidebar of loop-player to 3
2955 set score "{@teamline2}" in sidebar of loop-player to 2
2956 set score "{@teamline1}" in sidebar of loop-player to 1
2957
2958every 1 second:
2959 if {started} is true:
2960 loop all players:
2961 if {spect::%loop-player%} is true:
2962 hide loop-player from all players
2963
2964command /heal <player>:
2965 permission: uhc.admin
2966 trigger:
2967 if arg-1 is not set:
2968 heal the player
2969 add 10 to player's hunger bar
2970 send "{@Prefix} &eHealed!"
2971 if arg-1 is set:
2972 heal argument 1
2973 add 10 to argument 1's hunger bar
2974 send "{@Prefix} &eHealed!"
2975 message "&6You have healed &c%argument 1%"
2976
2977command /toggledm:
2978 permission: uhc.admin
2979 trigger:
2980 if {deathmatch} is true:
2981 set {deathmatch} to false
2982 send "&eDeathmatch &cdisabled."
2983 else:
2984 set {deathmatch} to true
2985 send "&eDeathmatch &cenabled."
2986
2987command /unspec [<player>]:
2988 usage: /unspec [<player>]
2989 trigger:
2990 if {spect::%command sender%} is set:
2991 command "/unspec %command sender%"
2992 arg-1 is not set
2993 send "{@Prefix} You have unspec-ed yourself!"
2994 stop trigger
2995 if command sender does not have permission "uhc.admin":
2996 send "{@Prefix} You are not spectating, nor do you have permissions!"
2997 stop trigger
2998 if arg-1 is set:
2999 set {_player} to arg-1
3000 else:
3001 set {_player} to command sender
3002 if {spect::%{_player}%} is true:
3003 delete {spect::%{_player}%}
3004 set {_player}'s gamemode to survival
3005 clear the inventory of {_player}
3006 reveal {_player} to all players
3007 wait 5 seconds
3008 set {_player}'s gamemode to survival
3009 else:
3010 send "{@Prefix} %{_player}% is not spectating!"
3011
3012command /spec [<player>]:
3013 usage: /spec [<player>]
3014 permission: uhc.admin
3015 trigger:
3016 if arg-1 is set:
3017 send "&7&m-----------------------------------------------------------------" to arg-1
3018 send "{@Prefix} &eYou are now spectating!" to arg-1
3019 send "&7&m-----------------------------------------------------------------" to arg-1
3020 set arg-1's gamemode to creative
3021 hide arg-1 to all players
3022 clear arg-1's inventory
3023 set {spect::%arg-1%} to true
3024 command "/mvtp %arg-1% uhcworld"
3025 clear inventory of arg-1
3026 set slot 0 of arg-1 to redstone named "&dInv Opener"
3027 set slot 2 of arg-1 to nether star named "&cNearby Players"
3028 set slot 4 of arg-1 to nether quartz named "&5Players in Nether"
3029 set slot 6 of arg-1 to player head named "&bTeleport to Random Player"
3030 set slot 8 of arg-1 to golden apple named "&aTeleport to 0,0"
3031 send "{@Prefix} %arg-1% is already spectating."
3032 wait 3 seconds
3033 set arg-1's gamemode to creative
3034
3035on right click on player:
3036 {spect::%event-player%} is true
3037 name of event-player's tool is "&dInv Opener"
3038 execute player command "/invsee %clicked entity%"
3039
3040on right click on player:
3041 {staffmode::%event-player%} is true
3042 name of event-player's tool is "&einv Viewer"
3043 execute player command "/invsee %clicked entity%"
3044
3045on inventory click:
3046 if {staffmode::%player%} is true:
3047 cancel event
3048 if {spect::%player%} is true:
3049 cancel event
3050
3051on command "/staff":
3052 player has permission "uhc.admin"
3053 {spect::%player%} is true
3054 delete {spect::%player%}
3055
3056command /seespecs:
3057 trigger:
3058 if {spect::%command sender%} is not set:
3059 send "{@Prefix} You are not spectating!"
3060 stop trigger
3061 if {spect::*} is set:
3062 send "{@Prefix} Current Spectators:"
3063 loop {spect::*}:
3064 send " &f- &c%loop-index%"
3065 else:
3066 send "{@Prefix} No current spectators!"
3067
3068on rightclick holding nether quartz:
3069 name of player's tool is "&5Players in Nether"
3070 {spect::%player%} is true
3071 loop all players:
3072 loop-player's biome is hell
3073 {spect::%loop-player%} is not set
3074 add loop-player to {_Nether::*}
3075 if {_Nether::*} is not set:
3076 send "{@Prefix} No players in the nether."
3077 stop
3078 send "{@Prefix} Players in Nether: &c%{_Nether::*}%"
3079
3080on rightclick holding glass bottle:
3081 name of player's tool is "&fClear Potion Effects"
3082 {spect::%player%} is true
3083 command "/effect %player% clear"
3084 send "{@Prefix} Potion effects cleared."
3085
3086on rightclick holding sugar:
3087 {spect::%player%} is true
3088 name of player's tool is "&fSpeed 2"
3089 send "{@Prefix} Fly/Walk Speed 2 applied"
3090 command "/speed walking 2 %player%"
3091 command "/speed fly 2 %player%"
3092
3093on rightclick holding a spider eye:
3094 name of player's tool is "&fSpeed 1"
3095 {spect::%player%} is true
3096 send "{@Prefix} Fly/Walk Speed normalized"
3097 command "/speed walk 1 %player%"
3098 command "/speed fly 1 %player%"
3099
3100on rightclick holding player head:
3101 name of player's tool is "&bTeleport to Random Player"
3102 {spect::%player%} is true
3103 loop all players:
3104 {spect::%loop-player%} is not set
3105 add loop-player to {_tp::*}
3106 set {_player} to (a random element out of {_tp::*})
3107 teleport player to {_player}
3108 if {_player} is not set:
3109 send "{@Prefix} Nobody to teleport to."
3110 stop
3111 send "{@Prefix} Teleported to &c%{_player}%"
3112
3113on rightclick holding a golden apple:
3114 name of player's tool is "&aTeleport to 0,0"
3115 {spect::%player%} is true
3116 set {_pos} to (location at 0, 250, 0)
3117 while block at location 2 below {_pos} is air:
3118 set {_pos} to (location 2 below {_pos})
3119 teleport the command sender to (location 15 above {_pos})
3120 send "{@Prefix} Teleported to 0,0"
3121
3122on rightclick holding a nether star:
3123 name of player's tool is "&cNearby Players"
3124 {spect::%player%} is true
3125 loop players in radius 1000 around player:
3126 {spect::%loop-player%} is not set
3127 loop-player is not player
3128 add "&7%loop-player%&f(&c%round(distance between player and loop-player)%m&f)" to {_nearby::*}
3129 if {_nearby::*} is not set:
3130 send "{@Prefix} No Nearby Players"
3131 stop
3132 send "{@Prefix} Nearby Players: &c%{_nearby::*}%"
3133
3134on death of player:
3135 {started} is true
3136 {wb} is true
3137 set {_loc} to location of player
3138 loop blocks in radius 10 around {_loc}:
3139 set {_distance} to rounded down distance between {_loc} and loop-block
3140 {_distance} is 4
3141 loop-block is air
3142 set block at loop-block to cobweb
3143
3144command /respawn [<player>]:
3145 permission: uhc.admin
3146 trigger:
3147 {respawn::%arg-1%} is set
3148 send "&a%arg-1% respawned!"
3149 wait 1 second
3150 execute player command "/unspec %arg-1%"
3151 execute player command "/leftmas"
3152 execute player command "/specmenos"
3153 set {build::%arg-1%} to true
3154 set {ingame::%arg-1%} to true
3155 delete {staffmode::%arg-1%}
3156 delete {practice::%arg-1%}
3157 delete {frozen::%arg-1%}
3158 reveal arg-1 from all players
3159 set {build::%arg-1%} to true
3160 teleport arg-1 to {respawn::%arg-1%}
3161 make the player-arg execute command "/§showinv"
3162 set arg-1's flight mode to false
3163 execute player command "/wl add %arg-1%"
3164
3165command /scatter [<player>]:
3166 permission: uhc.admin
3167 trigger:
3168 arg-1 is set
3169 send "&a%arg-1% scattered!"
3170 wait 1 second
3171 execute player command "/unspec %arg-1%"
3172 execute player command "/leftmas"
3173 remove 10 from {borderstart}
3174 execute player command "/sca uhcworld %{borderstart}% %arg-1% 50"
3175 add 10 to {borderstart}
3176 clear arg-1's inventory
3177 remove resistance from the arg-1
3178 heal the arg-1
3179 set {build::%arg-1%} to true
3180 set {ingame::%arg-1%} to true
3181 delete {staffmode::%arg-1%}
3182 delete {practice::%arg-1%}
3183 delete {frozen::%arg-1%}
3184 reveal arg-1 from all players
3185 set {build::%arg-1%} to true
3186 clear arg-1's inventory
3187 set arg-1's flight mode to false
3188 execute player command "/wl add %arg-1%"
3189 restore inventory of player from {kit.uhc}
3190 set player's helmet to {helmet.uhc}
3191 set player's chestplate to {chestplate.uhc}
3192 set player's leggings to {leggings.uhc}
3193 set player's boots to {boots.uhc}
3194
3195on command "/scatter":
3196 {started} is false
3197 cancel event
3198 send "{@nostart}"
3199
3200on command "/respawn":
3201 {started} is false
3202 cancel event
3203 send "{@nostart}"
3204
3205on craft of golden apple:
3206 if item is golden apple item named "{@goldenhead}":
3207 {goldenhead} is not set
3208 cancel event
3209
3210command /starttime:
3211 permission: uhc.admin
3212 trigger:
3213 loop 18000 times:
3214 if {started} is set:
3215 wait 5 seconds
3216 add 5 to {Time1}
3217 if {Time1} is 10:
3218 set {Time1} to 0
3219 add 1 to {Time2}
3220 if {Time2} is 6:
3221 set {Time2} to 0
3222 add 1 to {Time3}
3223 if {Time3} is 10:
3224 set {Time3} to 0
3225 add 1 to {Time4}
3226 if {Time4} is 6:
3227 set {Time4} to 0
3228 add 1 to {Time5}
3229
3230on command "/me":
3231 cancel event
3232 send "&cCommand blocked!"
3233
3234on command "/say":
3235 cancel event
3236 send "&cCommand blocked!"
3237
3238on command "/minecraft:me":
3239 cancel event
3240 send "&cCommand blocked!"
3241
3242on command "/minecraft:say":
3243 cancel event
3244 send "&cCommand blocked!"
3245
3246command /teamlist [<text>]:
3247 trigger:
3248 if arg-1 is not set:
3249 if {Teams::*} is not set:
3250 send "{@Prefix} &c No teams set."
3251 else:
3252 loop {Teams::*}:
3253 if size of {Team.%loop-value%::*} is not 0:
3254 send "{@Prefix} &r Team &b%loop-value%&r: %{Team.%loop-value%::*}%"
3255 else:
3256 add 1 to {_0}
3257 if {_0} is size of {Teams::*}:
3258 send "{@Prefix} &cNo teams set."
3259
3260command /tl [<text>]:
3261 trigger:
3262 if arg-1 is not set:
3263 if {Teams::*} is not set:
3264 send "{@Prefix} &c No teams set."
3265 else:
3266 loop {Teams::*}:
3267 if size of {Team.%loop-value%::*} is not 0:
3268 send "{@Prefix} &r Team &b%loop-value%&r: %{Team.%loop-value%::*}%"
3269 else:
3270 add 1 to {_0}
3271 if {_0} is size of {Teams::*}:
3272 send "{@Prefix} &cNo teams set."
3273
3274on portal create:
3275 {nether.status} is "OFF"
3276 cancel event
3277
3278on right click:
3279 if {soup} is true:
3280 {started} is true
3281 if player is holding Mushroom stew:
3282 remove 1 mushroom stew from player
3283 heal player by 2
3284
3285on right click with potion:8265 or potion:8193 or potion:8225 or potion:8257 or potion:16385 or potion:16427 or potion:16449 or potion:8194 or potion:8226 or potion:8258 or potion:16386 or potion:16418 or potion:16450 or potion:8201 or potion:8233 or potion:8265 or potion:16393 or potion:16425 or potion:16457:
3286 {nopotions} is "OFF"
3287 cancel event
3288 send "&cPotions disabled in GAME!"
3289
3290on quit:
3291 {combatlog::%player%} is true
3292 kill the player
3293
3294command /§showinv:
3295 trigger:
3296 restore inventory of player from {Stuff::%player%}
3297 set player's helmet to {uhc.helmet.%player%}
3298 set player's chestplate to {uhc.chestplate.%player%}
3299 set player's leggings to {uhc.leggings.%player%}
3300 set player's boots to {uhc.boots.%player%}
3301
3302command /§saveinv:
3303 trigger:
3304 set {Stuff::%player%} to player's serialized inventory
3305 set {uhc.helmet.%player%} to player's helmet
3306 set {uhc.chestplate.%player%} to player's chestplate
3307 set {uhc.leggings.%player%} to player's leggings
3308 set {uhc.boots.%player%} to player's boots
3309
3310on damage of player:
3311 wait 1 tick
3312 attacker is a player:
3313 projectile exists
3314 if projectile is arrow:
3315 wait 1 tick
3316 victim is not dead:
3317 message "{@bowhealth}" to the attacker
3318
3319command /postuhc:
3320 permission: uhc.admin
3321 trigger:
3322 open chest with 1 rows named "&b&nPost UHC on Twitter." to player
3323 format slot 0 of player with clock named "&bWhitelist OFF" with lore "&fSet whitelist off time." to close then run [make player execute command "/§setwloff"]
3324 format slot 4 of player with paper named "&bTweet Preview" with lore "&e{@ServerName}:||||&e{@Scenarios}: %{gamemodes::*}%||||&e{@Type}: %{Teams.LimitTwo}%%{Teams.Limit}%||||&e{@Host}: %{host}%||||&e{@WL-OFF}: %{wlofftime}%||||&eIP: {@ServerIP}" to be unstealable
3325 format slot 8 of player with light green wool named "&aPost Tweet" with lore "&fPost the UHC." to close then run [make player execute command "/§postontwitter"]
3326
3327on command "/§postontwitter":
3328 cancel event
3329 {started} is false
3330 tweet "{@ServerName}:%nl%%nl%{@Scenarios}: %{gamemodes::*}%%nl%%nl%{@Type}: %{Teams.LimitTwo}%%{Teams.Limit}%%nl%%nl%{@Host}: %{host}%%nl%%nl%{@WL-OFF}: %{wlofftime}%%nl%%nl% IP: {@ServerIP}"
3331 send "&aYou tweet has posted."
3332
3333on command "/§setwloff":
3334 cancel event
3335 {started} is false
3336 set {wloff.time.%player%} to true
3337 send "&aPut the WL OFF time in the chat."
3338 send ""
3339 send "&aExample: 17:04 [time.is/Peru]"
3340
3341on chat:
3342 {wloff.time.%player%} is true
3343 cancel event
3344 set {wlofftime} to message
3345 send "&bWl OFF set to: &6%{wlofftime}%"
3346 set {wloff.time.%player%} to false
3347
3348command /escenarios [<text>] [<text>]:
3349 permission: uhc.admin
3350 permission message: &cNo Permission.
3351 trigger:
3352 if arg 1 is "menu":
3353 play "CLICK" to player
3354 open chest with 6 rows named "&c" to player
3355 wait 3 ticks
3356 format slot 0 of player with chest named "&eBackPacks" to run [make player execute command "/escenarios backpack"]
3357 format slot 1 of player with log named "&eTimber" to run [make player execute command "/escenarios timber"]
3358 format slot 2 of player with iron ore named "&eBareBones" to run [make player execute command "/escenarios barebones"]
3359 format slot 3 of player with diamond pickaxe named "&eBlocked" to run [make player execute command "/escenarios blocked"]
3360 format slot 4 of player with diamond ore named "&eBloodDiamond" to run [make player execute command "/escenarios blooddiamond"]
3361 format slot 5 of player with enchantment table named "&eBloodEnchat" to run [make player execute command "/escenarios bloodenchant"]
3362 format slot 6 of player with gold ore named "&eBloodGold" to run [make player execute command "/escenarios bloodgold"]
3363 format slot 7 of player with lapis named "&eBloodLapis" to run [make player execute command "/escenarios bloodlapis"]
3364 format slot 8 of player with bow named "&eBowLess" to run [make player execute command "/escenarios bowless"]
3365 format slot 9 of player with coal named "&eCoalLess" to run [make player execute command "/escenarios coalless"]
3366 format slot 10 of player with iron ingot named "&eCutClean" to run [make player execute command "/escenarios cutclean"]
3367 format slot 11 of player with packed ice named "&eColdWeapons" to run [make player execute command "/escenarios coldweapons"]
3368 format slot 12 of player with diamond named "&eDiamondLess" to run [make player execute command "/escenarios diamondless"]
3369 format slot 13 of player with gold nugget named "&eDoubleOres" to run [make player execute command "/escenarios doubleores"]
3370 format slot 14 of player with blaze powder named "&eFireLess" to run [make player execute command "/escenarios fireless"]
3371 format slot 15 of player with skull of player named "&eGoldenHead" to run [make player execute command "/escenarios goldenhead"]
3372 format slot 16 of player with gold ingot named "&eGoldLess" to run [make player execute command "/escenarios goldless"]
3373 format slot 17 of player with golden apple named "&eAbsorptionLess" to run [make player execute command "/escenarios absorptionless"]
3374 format slot 18 of player with saddle named "&eHorseLess" to run [make player execute command "/escenarios horseless"]
3375 format slot 19 of player with iron ingot named "&eIronLess" to run [make player execute command "/escenarios ironless"]
3376 format slot 20 of player with arrow named "&eLongShots" to run [make player execute command "/escenarios longshots"]
3377 format slot 21 of player with ("38" parsed as item) named "&eLuckyFlowers" to run [make player execute command "/escenarios luckyflowers"]
3378 format slot 22 of player with ("18" parsed as item) named "&eLuckyLeaves" to run [make player execute command "/escenarios luckyleaves"]
3379 format slot 23 of player with ("276" parsed as item) named "&eNoCleanUp" to run [make player execute command "/escenarios nocleanup"]
3380 format slot 24 of player with bookshelf named "&eNoEnchant" to run [make player execute command "/escenarios noenchant"]
3381 format slot 25 of player with diamond boots named "&eNoFallDamage" to run [make player execute command "/escenarios nofalldamage"]
3382 format slot 26 of player with iron pickaxe named "&eOreFrenzy" to run [make player execute command "/escenarios orefrenzy"]
3383 format slot 27 of player with fishing rod named "&eRodLess" to run [make player execute command "/escenarios rodless"]
3384 format slot 28 of player with tnt named "&eTimeBomb" to run [make player execute command "/escenarios timebomb"]
3385 format slot 29 of player with emerald named "&eTripleOres" to run [make player execute command "/escenarios tripleores"]
3386 format slot 30 of player with mushroom stew named "&eSoup" to run [make player execute command "/escenarios soup"]
3387 format slot 31 of player with apple named "&eVanilla+" to run [make player execute command "/escenarios vanilla+"]
3388 format slot 32 of player with cobweb named "&eWebCage" to run [make player execute command "/escenarios webcage"]
3389
3390 if arg 1 is "gamemodes":
3391 if arg 2 is "menu":
3392 play "CLICK" to player
3393 wait 3 ticks
3394 open chest with 3 rows named "&c" to player
3395 if size of {gamemodes::*} <= 0:
3396 format slot 13 of player with grass named "&eNo active scenarios." to be unstealable
3397 format slot 26 of player with arrow named "&7Back" with lore "" to run [make player execute command "/escenarios menu"]
3398 else:
3399 set {_gmslot} to 0
3400 if {absorptionless} is true:
3401 format slot {_gmslot} of player with golden apple named "&eAbsortionLess" to be unstealable
3402 add 1 to {_gmslot}
3403 if {backpack} is true:
3404 format slot {_gmslot} of player with chest named "&eBackPacks" to be unstealable
3405 add 1 to {_gmslot}
3406 if {barebones} is true:
3407 format slot {_gmslot} of player with gold ore named "&eBareBones" to be unstealable
3408 add 1 to {_gmslot}
3409 if {blockedp} is true:
3410 format slot {_gmslot} of player with diamond pickaxe named "&eBlocked" to be unstealable
3411 add 1 to {_gmslot}
3412 if {blooddiamond} is true:
3413 format slot {_gmslot} of player with diamond ore named "&eBloodDiamond" to be unstealable
3414 add 1 to {_gmslot}
3415 if {bloodenchant} is true:
3416 format slot {_gmslot} of player with enchantment table named "&eBloodEnchat" to be unstealable
3417 add 1 to {_gmslot}
3418 if {bloodgold} is true:
3419 format slot {_gmslot} of player with gold ore named "&eBloodGold" to be unstealable
3420 add 1 to {_gmslot}
3421 if {bloodlapis} is true:
3422 format slot {_gmslot} of player with lapis named "&eBloodLapis" to be unstealable
3423 add 1 to {_gmslot}
3424 if {bowless} is true:
3425 format slot {_gmslot} of player with bow named "&eBowLess" to be unstealable
3426 add 1 to {_gmslot}
3427 if {coalless} is true:
3428 format slot {_gmslot} of player with coal named "&eCoalLess" to be unstealable
3429 add 1 to {_gmslot}
3430 if {coldweapons} is true:
3431 format slot {_gmslot} of player with flint and steel named "&eColdWeapons" to be unstealable
3432 add 1 to {_gmslot}
3433 if {cutclean} is true:
3434 format slot {_gmslot} of player with ("61" parsed as item) named "&eCutClean" to be unstealable
3435 add 1 to {_gmslot}
3436 if {diamondless} is true:
3437 format slot {_gmslot} of player with diamond named "&eDiamondLess" to be unstealable
3438 add 1 to {_gmslot}
3439 if {doubleores} is true:
3440 format slot {_gmslot} of player with hopper named "&eDoubleOres" to be unstealable
3441 add 1 to {_gmslot}
3442 if {fireless} is true:
3443 format slot {_gmslot} of player with blaze powder named "&eFireLess" to be unstealable
3444 add 1 to {_gmslot}
3445 if {goldenhead} is true:
3446 format slot {_gmslot} of player with skull of player named "&eGoldenHead" to be unstealable
3447 add 1 to {_gmslot}
3448 if {goldless} is true:
3449 format slot {_gmslot} of player with gold ingot named "&eGoldLessG" to be unstealable
3450 add 1 to {_gmslot}
3451 if {horseless} is true:
3452 format slot {_gmslot} of player with saddle named "&eHorseLess" to be unstealable
3453 add 1 to {_gmslot}
3454 if {ironless} is true:
3455 format slot {_gmslot} of player with iron ore named "&eIronLess" to be unstealable
3456 add 1 to {_gmslot}
3457 if {longshots} is true:
3458 format slot {_gmslot} of player with arrow named "&eLongShots" to be unstealable
3459 add 1 to {_gmslot}
3460 if {luckyflowers} is true:
3461 format slot {_gmslot} of player with ("38" parsed as item) named "&eLuckyFlowers" to be unstealable
3462 add 1 to {_gmslot}
3463 if {luckyleaves} is true:
3464 format slot {_gmslot} of player with ("18" parsed as item) named "&eLuckyLeaves" to be unstealable
3465 add 1 to {_gmslot}
3466 if {nocleanup} is true:
3467 format slot {_gmslot} of player with potion:16421 named "&eNoCleanUp" to be unstealable
3468 add 1 to {_gmslot}
3469 if {noenchant} is true:
3470 format slot {_gmslot} of player with bookshelf named "&eNoEnchant" to be unstealable
3471 add 1 to {_gmslot}
3472 if {nofalldamage} is true:
3473 format slot {_gmslot} of player with water bucket named "&eNoFallDamage" to be unstealable
3474 add 1 to {_gmslot}
3475 if {orefrenzy} is true:
3476 format slot {_gmslot} of player with iron pickaxe named "&eOreFrenzy" to be unstealable
3477 add 1 to {_gmslot}
3478 if {rodless} is true:
3479 format slot {_gmslot} of player with fishing rod named "&eRodLess" to be unstealable
3480 add 1 to {_gmslot}
3481 if {soup} is true:
3482 format slot {_gmslot} of player with mushroom stew named "&eSoup" to be unstealable
3483 add 1 to {_gmslot}
3484 if {timebomb} is true:
3485 format slot {_gmslot} of player with tnt named "&eTimeBomb" to be unstealable
3486 add 1 to {_gmslot}
3487 if {tripleores} is true:
3488 format slot {_gmslot} of player with diamond block named "&eTripleOres" to be unstealable
3489 add 1 to {_gmslot}
3490 if {vanillaplus} is true:
3491 format slot {_gmslot} of player with grass named "&eVanilla+" to be unstealable
3492 add 1 to {_gmslot}
3493 if {webcage} is true:
3494 format slot {_gmslot} of player with cobweb named "&eWebCage" to be unstealable
3495 add 1 to {_gmslot}
3496 format slot 26 of player with arrow named "&7Back" with lore "" to run [make player execute command "/escenarios menu"]
3497
3498 if arg 1 is "AbsorptionLess":
3499 if {absorptionless} is not set:
3500 play "CLICK" to player
3501 set {absorptionless} to true
3502 add arg-1 to {gamemodes::*}
3503 else if {absorptionless} is false:
3504 play "CLICK" to player
3505 set {absorptionless} to true
3506 add arg-1 to {gamemodes::*}
3507 else if {absorptionless} is true:
3508 play "CLICK" to player
3509 set {absorptionless} to false
3510 remove arg-1 from {gamemodes::*}
3511
3512 if arg 1 is "35" or "nton":
3513 set {nether.status} to "ON"
3514 broadcast "{@Prefix} &aNether &aenable"
3515 if arg 1 is "36" or "ntoff":
3516 set {nether.status} to "OFF"
3517 broadcast "{@Prefix} &cNether &cdisable"
3518
3519 if arg 1 is "43" or "hhon":
3520 set {horsehealing} to "ON"
3521 broadcast "{@Prefix} &aHorsehealing &aenable"
3522 if arg 1 is "44" or "hhoff":
3523 set {horsehealing} to "OFF"
3524 broadcast "{@Prefix} &cHorsehealing &cdisable"
3525 if arg 1 is "45" or "npon":
3526 set {nopotions} to "ON"
3527 broadcast "{@Prefix} &aPotions &aenable"
3528 if arg 1 is "46" or "npoff":
3529 set {nopotions} to "OFF"
3530 broadcast "{@Prefix} &cPotions &cdisable"
3531
3532
3533 if arg 1 is "BareBones":
3534 if {barebones} is not set:
3535 play "CLICK" to player
3536 set {barebones} to true
3537 set {nether} to false
3538 add arg-1 to {gamemodes::*}
3539 send "{@Prefix} &aBareBones &aenable"
3540 else if {barebones} is false:
3541 play "CLICK" to player
3542 set {barebones} to true
3543 set {nether} to false
3544 add arg-1 to {gamemodes::*}
3545 send "{@Prefix} &aBareBones &aenable"
3546 else if {barebones} is true:
3547 play "CLICK" to player
3548 set {barebones} to false
3549 set {nether} to true
3550 remove arg-1 from {gamemodes::*}
3551 send "{@Prefix} &cBareBones &cdisable"
3552
3553 if arg 1 is "Blocked":
3554 if {blockedp} is not set:
3555 play "CLICK" to player
3556 set {blockedp} to true
3557 loop all players:
3558 delete {blockedplaced.%loop-player%::*}
3559 add arg-1 to {gamemodes::*}
3560 send "{@Prefix} &aBlocked &aenable"
3561 else if {blockedp} is false:
3562 play "CLICK" to player
3563 set {blockedp} to true
3564 loop all players:
3565 delete {blockedplaced.%loop-player%::*}
3566 add arg-1 to {gamemodes::*}
3567 send "{@Prefix} &aBlocked &aenable"
3568 else if {blockedp} is true:
3569 play "CLICK" to player
3570 set {blockedp} to false
3571 loop all players:
3572 delete {blockedplaced.%loop-player%::*}
3573 remove arg-1 from {gamemodes::*}
3574 send "{@Prefix} &cBlocked &cdisable"
3575
3576 if arg 1 is "BloodDiamond":
3577 if {blooddiamond} is not set:
3578 play "CLICK" to player
3579 set {blooddiamond} to true
3580 add arg-1 to {gamemodes::*}
3581 send "{@Prefix} &aBloodDiamond &aenable"
3582 else if {blooddiamond} is false:
3583 play "CLICK" to player
3584 set {blooddiamond} to true
3585 add arg-1 to {gamemodes::*}
3586 send "{@Prefix} &aBloodDiamond &aenable"
3587 else if {blooddiamond} is true:
3588 play "CLICK" to player
3589 set {blooddiamond} to false
3590 remove arg-1 from {gamemodes::*}
3591 send "{@Prefix} &cBloodDiamond &cdisable"
3592
3593 if arg 1 is "BloodEnchant":
3594 if {bloodenchant} is not set:
3595 play "CLICK" to player
3596 set {bloodenchant} to true
3597 add arg-1 to {gamemodes::*}
3598 send "{@Prefix} &aBloodEnchant &aenable"
3599 else if {bloodenchant} is false:
3600 play "CLICK" to player
3601 set {bloodenchant} to true
3602 add arg-1 to {gamemodes::*}
3603 send "{@Prefix} &aBloodEnchant &aenable"
3604 else if {bloodenchant} is true:
3605 play "CLICK" to player
3606 set {bloodenchant} to false
3607 remove arg-1 from {gamemodes::*}
3608 send "{@Prefix} &cBloodEnchant &cdisable"
3609
3610 if arg 1 is "BloodGold":
3611 if {bloodgold} is not set:
3612 play "CLICK" to player
3613 set {bloodgold} to true
3614 add arg-1 to {gamemodes::*}
3615 send "{@Prefix} &aBloodGold &aenable"
3616 else if {bloodgold} is false:
3617 play "CLICK" to player
3618 set {bloodgold} to true
3619 add arg-1 to {gamemodes::*}
3620 send "{@Prefix} &aBloodGold &aenable"
3621 else if {bloodgold} is true:
3622 play "CLICK" to player
3623 set {bloodgold} to false
3624 remove arg-1 from {gamemodes::*}
3625 send "{@Prefix} &cBloodGold &cdisable"
3626
3627 if arg 1 is "BloodLapis":
3628 if {bloodlapis} is not set:
3629 play "CLICK" to player
3630 set {bloodlapis} to true
3631 add arg-1 to {gamemodes::*}
3632 send "{@Prefix} &aBloodLapis &aenable"
3633 else if {bloodlapis} is false:
3634 play "CLICK" to player
3635 set {bloodlapis} to true
3636 add arg-1 to {gamemodes::*}
3637 send "{@Prefix} &aBloodLapis &aenable"
3638 else if {bloodlapis} is true:
3639 play "CLICK" to player
3640 set {bloodlapis} to false
3641 remove arg-1 from {gamemodes::*}
3642 send "{@Prefix} &cBloodLapis &cdisable"
3643
3644 if arg 1 is "BowLess":
3645 if {bowless} is not set:
3646 play "CLICK" to player
3647 set {bowless} to true
3648 add arg-1 to {gamemodes::*}
3649 send "{@Prefix} &aBowLess &aenable"
3650 else if {bowless} is false:
3651 play "CLICK" to player
3652 set {bowless} to true
3653 add arg-1 to {gamemodes::*}
3654 send "{@Prefix} &aBowLess &aenable"
3655 else if {bowless} is true:
3656 play "CLICK" to player
3657 set {bowless} to false
3658 remove arg-1 from {gamemodes::*}
3659 send "{@Prefix} &cBowLess &cdisable"
3660
3661 if arg 1 is "CoalLess":
3662 if {coalless} is not set:
3663 play "CLICK" to player
3664 set {coalless} to true
3665 add arg-1 to {gamemodes::*}
3666 send "{@Prefix} &aCoalLess &aenable"
3667 else if {coalless} is false:
3668 play "CLICK" to player
3669 set {coalless} to true
3670 add arg-1 to {gamemodes::*}
3671 send "{@Prefix} &aCoalLess &aenable"
3672 else if {coalless} is true:
3673 play "CLICK" to player
3674 set {coalless} to false
3675 remove arg-1 from {gamemodes::*}
3676 send "{@Prefix} &cCoalLess &cdisable"
3677
3678 if arg 1 is "ColdWeapons":
3679 if {coldweapons} is not set:
3680 play "CLICK" to player
3681 set {coldweapons} to true
3682 add arg-1 to {gamemodes::*}
3683 send "{@Prefix} &aColdWeapons &aenable"
3684 else if {coldweapons} is false:
3685 play "CLICK" to player
3686 set {coldweapons} to true
3687 add arg-1 to {gamemodes::*}
3688 send "{@Prefix} &aColdWeapons &aenable"
3689 else if {coldweapons} is true:
3690 play "CLICK" to player
3691 set {coldweapons} to false
3692 remove arg-1 from {gamemodes::*}
3693 send "{@Prefix} &cColdWeapons &cdisable"
3694
3695 if arg 1 is "CutClean":
3696 if {cutclean} is not set:
3697 play "CLICK" to player
3698 set {cutclean} to true
3699 add arg-1 to {gamemodes::*}
3700 send "{@Prefix} &aCutClean &aenable"
3701 else if {cutclean} is false:
3702 play "CLICK" to player
3703 set {cutclean} to true
3704 add arg-1 to {gamemodes::*}
3705 send "{@Prefix} &aCutClean &aenable"
3706 else if {cutclean} is true:
3707 play "CLICK" to player
3708 set {cutclean} to false
3709 remove arg-1 from {gamemodes::*}
3710 send "{@Prefix} &cCutClean &cdisable"
3711
3712 if arg 1 is "DiamondLess":
3713 if {diamondless} is not set:
3714 play "CLICK" to player
3715 set {diamondless} to true
3716 add arg-1 to {gamemodes::*}
3717 send "{@Prefix} &aDiamondLess &aenable"
3718 else if {diamondless} is false:
3719 play "CLICK" to player
3720 set {diamondless} to true
3721 add arg-1 to {gamemodes::*}
3722 send "{@Prefix} &aDiamondLess &aenable"
3723 else if {diamondless} is true:
3724 play "CLICK" to player
3725 set {diamondless} to false
3726 remove arg-1 from {gamemodes::*}
3727 send "{@Prefix} &cDiamondLess &cdisable"
3728
3729 if arg 1 is "DoubleOres":
3730 if {doubleores} is not set:
3731 play "CLICK" to player
3732 set {doubleores} to true
3733 set {tripleores} to false
3734 add arg-1 to {gamemodes::*}
3735 remove "TripleOres" from {gamemodes::*}
3736 send "{@Prefix} &aDoubleOres &aenable"
3737 else if {doubleores} is false:
3738 play "CLICK" to player
3739 set {doubleores} to true
3740 set {tripleores} to false
3741 add arg-1 to {gamemodes::*}
3742 remove "TripleOres" from {gamemodes::*}
3743 send "{@Prefix} &aDoubleOres &aenable"
3744 else if {doubleores} is true:
3745 play "CLICK" to player
3746 set {doubleores} to false
3747 remove arg-1 from {gamemodes::*}
3748 send "{@Prefix} &cDoubleOres &cdisable"
3749
3750 if arg 1 is "FireLess":
3751 if {fireless} is not set:
3752 play "CLICK" to player
3753 set {fireless} to true
3754 add arg-1 to {gamemodes::*}
3755 send "{@Prefix} &aFireLess &aenable"
3756 else if {fireless} is false:
3757 play "CLICK" to player
3758 set {fireless} to true
3759 add arg-1 to {gamemodes::*}
3760 send "{@Prefix} &aFireLess &aenable"
3761 else if {fireless} is true:
3762 play "CLICK" to player
3763 set {fireless} to false
3764 remove arg-1 from {gamemodes::*}
3765 send "{@Prefix} &cFireLess &cdisable"
3766
3767 if arg 1 is "GoldenHead":
3768 if {goldenhead} is not set:
3769 play "CLICK" to player
3770 set {goldenhead} to true
3771 add arg-1 to {gamemodes::*}
3772 send "{@Prefix} &aGoldenHead &aenable"
3773 else if {goldenhead} is false:
3774 play "CLICK" to player
3775 set {goldenhead} to true
3776 add arg-1 to {gamemodes::*}
3777 send "{@Prefix} &aGoldenHead &aenable"
3778 else if {goldenhead} is true:
3779 play "CLICK" to player
3780 set {goldenhead} to false
3781 remove arg-1 from {gamemodes::*}
3782 send "{@Prefix} &cGoldenHead &cdisable"
3783
3784 if arg 1 is "GoldLess":
3785 if {goldless} is not set:
3786 play "CLICK" to player
3787 set {goldless} to true
3788 add arg-1 to {gamemodes::*}
3789 send "{@Prefix} &aGoldLess &aenable"
3790 else if {goldless} is false:
3791 play "CLICK" to player
3792 set {goldless} to true
3793 add arg-1 to {gamemodes::*}
3794 send "{@Prefix} &aGoldLess &aenable"
3795 else if {goldless} is true:
3796 play "CLICK" to player
3797 set {goldless} to false
3798 remove arg-1 from {gamemodes::*}
3799 send "{@Prefix} &cGoldLess &cdisable"
3800
3801
3802
3803 if arg 1 is "IronLess":
3804 if {ironless} is not set:
3805 play "CLICK" to player
3806 set {ironless} to true
3807 add arg-1 to {gamemodes::*}
3808 send "{@Prefix} &aIronLess &aenable"
3809 else if {ironless} is false:
3810 play "CLICK" to player
3811 set {ironless} to true
3812 add arg-1 to {gamemodes::*}
3813 send "{@Prefix} &aIronLess &aenable"
3814 else if {ironless} is true:
3815 play "CLICK" to player
3816 set {ironless} to false
3817 remove arg-1 from {gamemodes::*}
3818 send "{@Prefix} &cIronLess &cdisable"
3819
3820 if arg 1 is "LongShots":
3821 if {longshots} is not set:
3822 play "CLICK" to player
3823 set {longshots} to true
3824 add arg-1 to {gamemodes::*}
3825 send "{@Prefix} &aLongShots &aenable"
3826 else if {longshots} is false:
3827 play "CLICK" to player
3828 set {longshots} to true
3829 add arg-1 to {gamemodes::*}
3830 send "{@Prefix} &aLongShots &aenable"
3831 else if {longshots} is true:
3832 play "CLICK" to player
3833 set {longshots} to false
3834 remove arg-1 from {gamemodes::*}
3835 send "{@Prefix} &cLongShots &cdisable"
3836
3837 if arg 1 is "LuckyFlowers":
3838 if {luckyflowers} is not set:
3839 play "CLICK" to player
3840 set {luckyflowers} to true
3841 add arg-1 to {gamemodes::*}
3842 send "{@Prefix} &aLuckyFlowers &aenable"
3843 else if {luckyflowers} is false:
3844 play "CLICK" to player
3845 set {luckyflowers} to true
3846 add arg-1 to {gamemodes::*}
3847 send "{@Prefix} &aLuckyFlowers &aenable"
3848 else if {luckyflowers} is true:
3849 play "CLICK" to player
3850 set {luckyflowers} to false
3851 remove arg-1 from {gamemodes::*}
3852 send "{@Prefix} &cLuckyFlowers &cdisable"
3853
3854 if arg 1 is "LuckyLeaves":
3855 if {luckyleaves} is not set:
3856 play "CLICK" to player
3857 set {luckyleaves} to true
3858 add arg-1 to {gamemodes::*}
3859 send "{@Prefix} &aLuckyLeaves &aenable"
3860 else if {luckyleaves} is false:
3861 play "CLICK" to player
3862 set {luckyleaves} to true
3863 add arg-1 to {gamemodes::*}
3864 send "{@Prefix} &aLuckyLeaves &aenable"
3865 else if {luckyleaves} is true:
3866 play "CLICK" to player
3867 set {luckyleaves} to false
3868 remove arg-1 from {gamemodes::*}
3869 send "{@Prefix} &cLuckyLeaves &cdisable"
3870
3871 if arg 1 is "NoCleanUp":
3872 if {nocleanup} is not set:
3873 play "CLICK" to player
3874 set {nocleanup} to true
3875 add arg-1 to {gamemodes::*}
3876 send "{@Prefix} &aNoCleanUp &aenable"
3877 else if {nocleanup} is false:
3878 play "CLICK" to player
3879 set {nocleanup} to true
3880 add arg-1 to {gamemodes::*}
3881 send "{@Prefix} &aNoCleanUp &aenable"
3882 else if {nocleanup} is true:
3883 play "CLICK" to player
3884 set {nocleanup} to false
3885 remove arg-1 from {gamemodes::*}
3886 send "{@Prefix} &cNoCleanUp &cdisable"
3887
3888 if arg 1 is "NoEnchant":
3889 if {noenchant} is not set:
3890 play "CLICK" to player
3891 set {noenchant} to true
3892 add arg-1 to {gamemodes::*}
3893 send "{@Prefix} &aNoEnchant &aenable"
3894 else if {noenchant} is false:
3895 play "CLICK" to player
3896 set {noenchant} to true
3897 add arg-1 to {gamemodes::*}
3898 send "{@Prefix} &aNoEnchant &aenable"
3899 else if {noenchant} is true:
3900 play "CLICK" to player
3901 set {noenchant} to false
3902 remove arg-1 from {gamemodes::*}
3903 send "{@Prefix} &cNoEnchant &cdisable"
3904
3905 if arg 1 is "NoFallDamage":
3906 if {nofalldamage} is not set:
3907 play "CLICK" to player
3908 set {nofalldamage} to true
3909 add arg-1 to {gamemodes::*}
3910 send "{@Prefix} &aNoFallDamage &aenable"
3911 else if {nofalldamage} is false:
3912 play "CLICK" to player
3913 set {nofalldamage} to true
3914 add arg-1 to {gamemodes::*}
3915 send "{@Prefix} &aNoFallDamage &aenable"
3916 else if {nofalldamage} is true:
3917 play "CLICK" to player
3918 set {nofalldamage} to false
3919 remove arg-1 from {gamemodes::*}
3920 send "{@Prefix} &cNoFallDamage &cdisable"
3921
3922 if arg 1 is "OreFrenzy":
3923 if {orefrenzy} is not set:
3924 play "CLICK" to player
3925 set {orefrenzy} to true
3926 add arg-1 to {gamemodes::*}
3927 send "{@Prefix} &aOreFrenzy &aenable"
3928 else if {orefrenzy} is false:
3929 play "CLICK" to player
3930 set {orefrenzy} to true
3931 add arg-1 to {gamemodes::*}
3932 send "{@Prefix} &aOreFrenzy &aenable"
3933 else if {orefrenzy} is true:
3934 play "CLICK" to player
3935 set {orefrenzy} to false
3936 remove arg-1 from {gamemodes::*}
3937 send "{@Prefix} &cOreFrenzy &cdisable"
3938
3939 if arg 1 is "RodLess":
3940 if {rodless} is not set:
3941 play "CLICK" to player
3942 set {rodless} to true
3943 add arg-1 to {gamemodes::*}
3944 send "{@Prefix} &aRodLess &aenable"
3945 else if {rodless} is false:
3946 play "CLICK" to player
3947 set {rodless} to true
3948 add arg-1 to {gamemodes::*}
3949 send "{@Prefix} &aRodLess &aenable"
3950 else if {rodless} is true:
3951 play "CLICK" to player
3952 set {rodless} to false
3953 remove arg-1 from {gamemodes::*}
3954 send "{@Prefix} &cRodLess &cdisable"
3955
3956 if arg 1 is "Soup":
3957 if {soup} is not set:
3958 play "CLICK" to player
3959 set {soup} to true
3960 add arg-1 to {gamemodes::*}
3961 send "{@Prefix} &aSoup &aenable."
3962 else if {soup} is false:
3963 play "CLICK" to player
3964 set {soup} to true
3965 add arg-1 to {gamemodes::*}
3966 send "{@Prefix} &aSoup &aenable"
3967 else if {soup} is true:
3968 play "CLICK" to player
3969 set {soup} to false
3970 remove arg-1 from {gamemodes::*}
3971 send "{@Prefix} &cSoup &cdisable"
3972
3973 if arg 1 is "TimeBomb":
3974 if {timebomb} is not set:
3975 play "CLICK" to player
3976 set {timebomb} to true
3977 add arg-1 to {gamemodes::*}
3978 send "{@Prefix} &aTimeBomb &aenable"
3979 else if {timebomb} is false:
3980 play "CLICK" to player
3981 set {timebomb} to true
3982 add arg-1 to {gamemodes::*}
3983 send "{@Prefix} &aTimeBomb &aenable"
3984 else if {timebomb} is true:
3985 play "CLICK" to player
3986 set {timebomb} to false
3987 remove arg-1 from {gamemodes::*}
3988 send "{@Prefix} &cTimeBomb &cdisable"
3989
3990 if arg 1 is "backpack":
3991 if {backpack} is not set:
3992 play "CLICK" to player
3993 set {backpack} to true
3994 add arg-1 to {gamemodes::*}
3995 send "{@Prefix} &aBackpack &aenable"
3996 else if {backpack} is false:
3997 play "CLICK" to player
3998 set {backpack} to true
3999 add arg-1 to {gamemodes::*}
4000 send "{@Prefix} &aBackpack &aenable"
4001 else if {backpack} is true:
4002 play "CLICK" to player
4003 set {backpack} to false
4004 send "{@Prefix} &cBackpack &cdisable"
4005 remove arg-1 from {gamemodes::*}
4006
4007 if arg 1 is "horseless":
4008 if {horseless} is not set:
4009 play "CLICK" to player
4010 set {horseless} to true
4011 add arg-1 to {gamemodes::*}
4012 send "{@Prefix} &aHorseless &aenable"
4013 else if {horseless} is false:
4014 play "CLICK" to player
4015 set {horseless} to true
4016 add arg-1 to {gamemodes::*}
4017 send "{@Prefix} &aHorseless &aenable"
4018 else if {horseless} is true:
4019 play "CLICK" to player
4020 set {horseless} to false
4021 remove arg-1 from {gamemodes::*}
4022 send "{@Prefix} &cHorseless &cdisable"
4023
4024 if arg 1 is "timber":
4025 if {timber} is not set:
4026 play "CLICK" to player
4027 set {timber} to true
4028 add arg-1 to {gamemodes::*}
4029 set {timber} to true
4030 send "{@Prefix} &aTimber &aenable"
4031 else if {timber} is false:
4032 play "CLICK" to player
4033 set {timber} to true
4034 add arg-1 to {gamemodes::*}
4035 send "{@Prefix} &aTimber &aenable"
4036 else if {timber} is true:
4037 play "CLICK" to player
4038 set {timber} to false
4039 send "{@Prefix} &cTimber &cdisable"
4040 remove arg-1 from {gamemodes::*}
4041
4042 if arg 1 is "TripleOres":
4043 if {tripleores} is not set:
4044 play "CLICK" to player
4045 set {tripleores} to true
4046 set {doubleores} to false
4047 add arg-1 to {gamemodes::*}
4048 remove "DoubleOres" from {gamemodes::*}
4049 send "{@Prefix} &aTripleOres &aenable"
4050 else if {tripleores} is false:
4051 play "CLICK" to player
4052 set {tripleores} to true
4053 set {doubleores} to false
4054 add arg-1 to {gamemodes::*}
4055 remove "DoubleOres" from {gamemodes::*}
4056 send "{@Prefix} &aTripleOres &aenable"
4057 else if {tripleores} is true:
4058 play "CLICK" to player
4059 set {tripleores} to false
4060 remove arg-1 from {gamemodes::*}
4061 send "{@Prefix} &cTripleOres &cdisable"
4062
4063 if arg 1 is "Vanilla+":
4064 if {vanillaplus} is not set:
4065 play "CLICK" to player
4066 set {vanillaplus} to true
4067 add arg-1 to {gamemodes::*}
4068 send "{@Prefix} &aVanilla+ &aenable"
4069 else if {vanillaplus} is false:
4070 play "CLICK" to player
4071 set {vanillaplus} to true
4072 add arg-1 to {gamemodes::*}
4073 send "{@Prefix} &aVanilla+ &aenable"
4074 else if {vanillaplus} is true:
4075 play "CLICK" to player
4076 set {vanillaplus} to false
4077 remove arg-1 from {gamemodes::*}
4078 send "{@Prefix} &cVanilla+ &cdisable"
4079
4080 if arg 1 is "WebCage":
4081 if {webcage} is not set:
4082 play "CLICK" to player
4083 set {webcage} to true
4084 add arg-1 to {gamemodes::*}
4085 send "{@Prefix} &aWebCage &aenable"
4086 else if {webcage} is false:
4087 play "CLICK" to player
4088 set {webcage} to true
4089 add arg-1 to {gamemodes::*}
4090 send "{@Prefix} &aWebCage &aenable"
4091 else if {webcage} is true:
4092 play "CLICK" to player
4093 set {webcage} to false
4094 remove arg-1 from {gamemodes::*}
4095 send "{@Prefix} &cWebCage &cdisable"
4096
4097 if arg 1 is "Vanilla":
4098 if {vanilla} is set:
4099 play "CLICK" to player
4100 delete {gamemodes::*}
4101 set {absorptionless} to false
4102 set {barebones} to false
4103 set {blockedp} to false
4104 set {blooddiamond} to false
4105 set {bloodenchant} to false
4106 set {bloodgold} to false
4107 set {bloodlapis} to false
4108 set {bowless} to false
4109 set {timber} to false
4110 set {coalless} to false
4111 set {coldweapons} to false
4112 set {cutclean} to false
4113 set {diamondless} to false
4114 set {doubleores} to false
4115 set {fireless} to false
4116 set {goldenhead} to false
4117 set {goldless} to false
4118 set {horseless} to false
4119 set {ironless} to false
4120 set {longshots} to false
4121 set {luckyflowers} to false
4122 set {luckyleaves} to false
4123 set {nocleanup} to false
4124 set {noenchant} to false
4125 set {nofalldamage} to false
4126 set {orefrenzy} to false
4127 set {rodless} to false
4128 set {soup} to false
4129 set {timebomb} to false
4130 set {tripleores} to false
4131 set {vanillaplus} to false
4132 set {webcage} to false
4133 send "{@Prefix} &cAll scenarios desactivated"
4134
4135
4136
4137on death:
4138 if {barebones} is true:
4139 if victim is a player:
4140 {started} is true
4141 drop 1 diamond at location of victim
4142 drop 1 golden apple at location of victim
4143 drop 32 arrow at location of victim
4144 drop 2 string at location of victim
4145 if {bowless} is true:
4146 if victim is a skeleton:
4147 clear drops
4148 if {cutclean} is true:
4149 if victim is a pig:
4150 clear drops
4151 drop 1 cooked porkchop at location of victim
4152 if victim is a sheep:
4153 clear drops
4154 drop 1 cooked porkchop at location of victim
4155 drop 1 string at location of victim
4156 if victim is a cow:
4157 clear drops
4158 drop 1 cooked beef at location of victim
4159 drop 1 leather at location of victim
4160 if victim is a mooshroom:
4161 clear drops
4162 drop 1 cooked beef at location of victim
4163 drop 1 leather at location of victim
4164 if victim is a rabbit:
4165 clear drops
4166 drop 1 cooked beef at location of victim
4167 if victim is a chicken:
4168 clear drops
4169 drop 1 feather at location of victim
4170 drop 1 cooked chicken at location of victim
4171 if {diamondless} is true:
4172 if victim is a player:
4173 {started} is true
4174 drop 1 diamond at location of victim
4175 if {goldless} is true:
4176 if victim is a player:
4177 {started} is true
4178 give golden apple to attacker
4179 drop 16 gold ingot at location of victim
4180 if {ironless} is true:
4181 if victim is a player:
4182 {started} is true
4183 drop 8 iron ingot at location of victim
4184 if {nocleanup} is true:
4185 if victim is a player:
4186 {started} is true
4187 apply regeneration 2 to the attacker for 10 seconds
4188 apply resistance 100 to the attacker for 3 seconds
4189 set {nocleanup.%attacker%.cooldown} to true
4190 wait {@Cooldown-NoCleanUp} seconds
4191 {nocleanup.%attacker%.cooldown} is true
4192 send "&cYou lost the invencibility!" to attacker
4193 set {nocleanup.%attacker%.cooldown} to false
4194
4195on death of player:
4196 if {timebomb} is true:
4197 {started} is true
4198 clear drops
4199 set block at location of victim to chest
4200 set block west of block at location of victim to chest
4201 set {deathchest::%block at location of victim%} to victim
4202 set {_deathchest} to block at location of victim
4203 add inventory of victim to {_deathchest}
4204 add helmet of victim to {_deathchest}
4205 add chestplate of victim to {_deathchest}
4206 add leggings of victim to {_deathchest}
4207 add boots of victim to {_deathchest}
4208 if {goldenhead} is true:
4209 add 1 golden apple named "{@goldenhead}" to {_deathchest}
4210 if {barebones} is true:
4211 add 1 diamond to {_deathchest}
4212 add 1 golden apple to {_deathchest}
4213 add 32 arrow to {_deathchest}
4214 add 2 string to {_deathchest}
4215 if {coalless} is true:
4216 add 2 coal to {_deathchest}
4217 if {diamondless} is true:
4218 add 1 diamond to {_deathchest}
4219 if {goldless} is true:
4220 add 1 golden apple named "{@goldenhead}" to {_deathchest}
4221 add 16 gold ingot to {_deathchest}
4222 if {ironless} is true:
4223 add 8 iron ingot to {_deathchest}
4224 wait 30 seconds
4225 broadcast "{@timebomb}"
4226 set block at location of victim to air
4227 set block west of block at location of victim to air
4228 create an explosion of force 4.5 at {_deathchest}
4229 create a safe explosion of force 4.5 at {_deathchest}
4230 strike lightning effect at {_deathchest}
4231 clear dropped items
4232 if {timebomb} is false:
4233 {goldenhead} is true
4234 {started} is true
4235 {spect::%victim%} is not set
4236 {staffmode::%victim%} is not set
4237 {ingame::%victim%} is true
4238 drop 1 player head named "{@HeadName}" at victim
4239
4240on damage of player:
4241 if {longshots} is true:
4242 damage was caused by projectile
4243 set {_longshot} to the distance between the attacker and victim
4244 if {_longshot} is greater than 45:
4245 broadcast "&a%attacker% &epierced to &c%victim% &ewith an arrow from &6%{_longshot}% &eblocks!"
4246 add 1 to attacker's health
4247 damage attacker by 0.5 hearts
4248 if {nocleanup} is true:
4249 if {nocleanup.%victim%.cooldown} is true:
4250 cancel event
4251 if {nocleanup.%attacker%.cooldown} is true:
4252 set {nocleanup.%attacker%.cooldown} to false
4253 send "&cYou lost the invencibility!" to attacker
4254 stop
4255
4256on damage:
4257 if {started} is true:
4258 {fireless} is true
4259 if victim is a player:
4260 damage is caused by burning or lava or fire
4261 cancel event
4262 if {started} is false:
4263 if victim is a player:
4264 damage is caused by fall
4265 cancel event
4266 if {started} is true:
4267 {nofalldamage} is true
4268 if victim is a player:
4269 damage is caused by fall
4270 cancel event
4271 if {staffmode::%attacker%} is true:
4272 cancel event
4273 if {staffmode::%victim%} is true:
4274 cancel event
4275 if {frozen::%victim%} is true:
4276 cancel event
4277 if {frozen::%attacker%} is true:
4278 cancel event
4279 if {spect::%attacker%} is true:
4280 cancel event
4281 if {spect::%victim%} is true:
4282 cancel event
4283 if {started} is true:
4284 set {combatlog::%attacker%} to true
4285 set {combatlog::%victim%} to true
4286 wait 30 seconds
4287 delete {combatlog::%attacker%}
4288 delete {combatlog::%victim%}
4289 if {Scatter.Scattering::%victim%} is set:
4290 cancel event
4291
4292on craft of golden apple:
4293 if {barebones} is true:
4294 cancel event
4295on craft of enchantment table:
4296 if {barebones} is true:
4297 cancel event
4298on craft of anvil:
4299 if {barebones} is true:
4300 cancel event
4301on craft of bow:
4302 if {bowless} is true:
4303 cancel event
4304on craft of fishing rod:
4305 if {rodless} is true:
4306 cancel event
4307on enchant:
4308 if {bloodenchant} is true:
4309 damage player by 0.5 hearts
4310 if {noenchant} is true:
4311 cancel event
4312
4313on damage of a player:
4314 if {coldweapons} is true:
4315 attacker is a player:
4316 wait 1 tick
4317 extinguish victim
4318
4319on break of coal ore:
4320 if {coalless} is true:
4321 cancel event
4322 set block to air
4323 stop
4324
4325on break of iron ore:
4326 if {ironless} is true:
4327 cancel event
4328 set block to air
4329 stop
4330
4331on break of gold ore:
4332 if {goldless} is true:
4333 cancel event
4334 set block to air
4335 stop
4336
4337on break of leaves:
4338 if {vanillaplus} is true:
4339 chance of 100%
4340 drop apple
4341 if {luckyleaves} is true:
4342 chance of 0.3%
4343 drop golden apple
4344
4345on break of gravel:
4346 if {vanillaplus} is true:
4347 chance of 100%
4348 drop flint
4349
4350on leaves decay:
4351 if {vanillaplus} is true:
4352 chance of 100%
4353 drop apple
4354
4355on mine of coal ore:
4356 if {coalless} is true:
4357 cancel event
4358 set block to air
4359 stop
4360 if {cutclean} is true:
4361 set block to air
4362 drop 3 torch
4363 drop 5 experience
4364 cancel event
4365
4366on mine of iron ore:
4367 if {barebones} is false:
4368 if {cutclean} is false:
4369 if {doubleores} is true:
4370 set {tripleores} to false
4371 set block to air
4372 give 2 iron ore to player
4373 cancel event
4374 if {tripleores} is true:
4375 set {doubleores} to false
4376 set block to air
4377 drop 3 iron ore
4378 cancel event
4379 if {barebones} is true:
4380 set block to air
4381 give 1 iron ingot to player
4382 cancel event
4383 if {doubleores} is true:
4384 set block to air
4385 give 2 iron ingot to player
4386 cancel event
4387 if {tripleores} is true:
4388 set block to air
4389 give 3 iron ingot to player
4390 cancel event
4391 if {cutclean} is true:
4392 set block to air
4393 give 1 iron ingot to player
4394 drop 6 experience
4395 cancel event
4396 if {doubleores} is true:
4397 set block to air
4398 give 1 iron ingot to player
4399 drop 6 experience
4400 cancel event
4401 if {tripleores} is true:
4402 set block to air
4403 give 2 iron ingot to player
4404 drop 6 experience
4405 cancel event
4406 if {ironless} is true:
4407 cancel event
4408 set block to air
4409 stop
4410
4411on mine of diamond ore:
4412 if {barebones} is false:
4413 if {cutclean} is false:
4414 if {doubleores} is true:
4415 set {tripleores} to false
4416 set block to air
4417 give 2 diamond to player
4418 drop 1 experience
4419 cancel event
4420 if {tripleores} is true:
4421 set {doubleores} to false
4422 set block to air
4423 give 3 diamond to player
4424 drop 1 experience
4425 cancel event
4426 if {barebones} is true:
4427 set block to air
4428 give 1 iron ingot to player
4429 cancel event
4430 if {doubleores} is true:
4431 set block to air
4432 give 2 iron ingot to player
4433 cancel event
4434 if {tripleores} is true:
4435 set block to air
4436 give 3 iron ingot to player
4437 cancel event
4438 if {blooddiamond} is true:
4439 damage player by 0.5 hearts
4440 if {cutclean} is true:
4441 set block to air
4442 give 1 diamond to player
4443 drop 6 experience
4444 cancel event
4445 if {doubleores} is true:
4446 set block to air
4447 give 1 diamond to player
4448 drop 6 experience
4449 cancel event
4450 if {tripleores} is true:
4451 set block to air
4452 give 2 diamond to player
4453 drop 6 experience
4454 cancel event
4455 if {diamondless} is true:
4456 cancel event
4457 set block to air
4458 stop
4459 if {orefrenzy} is true:
4460 set block to air
4461 give 1 diamond to player
4462 drop 4 experience bottle
4463 drop 1 experience
4464 cancel event
4465
4466on mine of gold ore:
4467 if {barebones} is false:
4468 if {cutclean} is false:
4469 if {doubleores} is true:
4470 set {tripleores} to false
4471 set block to air
4472 give 2 gold ore to player
4473 cancel event
4474 if {tripleores} is true:
4475 set {doubleores} to false
4476 set block to air
4477 give 3 gold ore to player
4478 cancel event
4479 if {barebones} is true:
4480 set block to air
4481 give 1 iron ingot to player
4482 cancel event
4483 if {doubleores} is true:
4484 set block to air
4485 give 2 iron ingot to player
4486 cancel event
4487 if {tripleores} is true:
4488 set block to air
4489 give 3 iron ingot to player
4490 cancel event
4491 if {cutclean} is true:
4492 set block to air
4493 give 1 gold ingot to player
4494 drop 1 experience
4495 cancel event
4496 if {doubleores} is true:
4497 set block to air
4498 give 1 gold ingot to player
4499 drop 1 experience
4500 cancel event
4501 if {tripleores} is true:
4502 set block to air
4503 give 2 gold ingot to player
4504 drop 1 experience
4505 cancel event
4506 if {goldless} is true:
4507 cancel event
4508 if {bloodgold} is true:
4509 damage player by 0.5 hearts
4510
4511on mine of lapis ore:
4512 if {barebones} is true:
4513 set block to air
4514 give 1 iron ingot to player
4515 cancel event
4516 if {doubleores} is true:
4517 set block to air
4518 give 2 iron ingot to player
4519 cancel event
4520 if {tripleores} is true:
4521 set block to air
4522 give 3 iron ingot to player
4523 cancel event
4524 if {orefrenzy} is true:
4525 set block to air
4526 drop 1 splash potion of health
4527 drop 4 experience
4528 cancel event
4529 if {bloodlapis} is true:
4530 damage player by 1.0 hearts
4531
4532on mine of redstone ore:
4533 if {barebones} is true:
4534 set block to air
4535 give 1 iron ingot to player
4536 cancel event
4537 if {doubleores} is true:
4538 set block to air
4539 give 1 iron ingot to player
4540 cancel event
4541 if {tripleores} is true:
4542 set block to air
4543 give 3 iron ingot to player
4544 cancel event
4545 if {cutclean} is true:
4546 set block to air
4547 give 1 redstone to player
4548 drop 6 experience
4549 cancel event
4550 if {doubleores} is true:
4551 set block to air
4552 give 1 redstone to player
4553 drop 6 experience
4554 cancel event
4555 if {tripleores} is true:
4556 set block to air
4557 give 2 redstone to player
4558 drop 6 experience
4559 cancel event
4560 if {orefrenzy} is true:
4561 set block to air
4562 drop 1 book
4563 drop 6 experience
4564 cancel event
4565
4566on mine of emerald ore:
4567 if {doubleores} is true:
4568 set block to air
4569 give 2 emerald to player
4570 drop 1 experience
4571 cancel event
4572 if {tripleores} is true:
4573 set block to air
4574 give 3 emerald to player
4575 drop 1 experience
4576 cancel event
4577 if {barebones} is true:
4578 set block to air
4579 give 1 iron ingot to player
4580 cancel event
4581 if {doubleores} is true:
4582 set block to air
4583 give 2 iron ingot to player
4584 cancel event
4585 if {tripleores} is true:
4586 set block to air
4587 give 3 iron ingot to player
4588 cancel event
4589 if {cutclean} is true:
4590 set block to air
4591 give 1 emerald to player
4592 drop 6 experience
4593 cancel event
4594 if {doubleores} is true:
4595 set block to air
4596 give 1 emerald to player
4597 drop 6 experience
4598 cancel event
4599 if {tripleores} is true:
4600 set block to air
4601 give 2 emerald to player
4602 drop 6 experience
4603 cancel event
4604 if {orefrenzy} is true:
4605 set block to air
4606 drop 32 arrow
4607 drop 6 experience
4608 cancel event
4609
4610on mine of quartz ore:
4611 if {barebones} is true:
4612 set block to air
4613 give 1 iron ingot to player
4614 cancel event
4615 if {doubleores} is true:
4616 set block to air
4617 give 2 iron ingot to player
4618 cancel event
4619 if {tripleores} is true:
4620 set block to air
4621 give 3 iron ingot to player
4622 cancel event
4623 if {orefrenzy} is true:
4624 set block to air
4625 drop 1 tnt
4626 drop 5 experience
4627 cancel event
4628
4629on item spawning of all flowers:
4630 if {luckyflowers} is true:
4631 cancel the event
4632 set {items.random} to random number between 0 and 100
4633 if {items.random} is less than or equal to {@LuckyFlowers-Percentage}:
4634 drop (random number between 1 and 2) of random item out of all items
4635
4636on mine:
4637 if {blockedp} is true:
4638 if {blockedplaced.%player%::%event-block%} is true:
4639 cancel event
4640on place:
4641 if {blockedp} is true:
4642 set {blockedplaced.%player%::%event-block%} to true
4643
4644on rightclick on horse:
4645 if {horseless} is true:
4646 cancel event
4647
4648on rightclick on donkey:
4649 if {horseless} is true:
4650 cancel event
4651
4652on rightclick holding a mushroom soup:
4653 if {soup} is true:
4654 if player's health = 10:
4655 cancel event
4656 else if player's health < 10:
4657 remove 1 mushroom soup from the player's tool
4658 set the player's tool to bowl
4659 heal player by 2
4660 stop
4661
4662
4663on load:
4664 loop all players:
4665 clear loop-player's ender chest
4666 delete {gamemodes::*}
4667 set {absorptionless} to false
4668 set {barebones} to false
4669 set {blockedp} to false
4670 set {blooddiamond} to false
4671 set {bloodenchant} to false
4672 set {bloodgold} to false
4673 set {bloodlapis} to false
4674 set {bowless} to false
4675 set {timber} to false
4676 set {coalless} to false
4677 set {cutclean} to false
4678 set {coldweapons} to false
4679 set {diamondless} to false
4680 set {doubleores} to false
4681 set {fireless} to false
4682 set {goldenhead} to false
4683 set {goldless} to false
4684 set {horseless} to false
4685 set {backpack} to false
4686 set {ironless} to false
4687 set {longshots} to false
4688 set {luckyflowers} to false
4689 set {luckyleaves} to false
4690 set {nocleanup} to false
4691 set {noenchant} to false
4692 set {nofalldamage} to false
4693 set {orefrenzy} to false
4694 set {rodless} to false
4695 set {timebomb} to false
4696 set {tripleores} to false
4697 set {soup} to false
4698 set {vanillaplus} to false
4699 set {webcage} to false
4700
4701command /scenarios [<text>] [<text>]:
4702 trigger:
4703 if arg 1 is not set:
4704 if arg 2 is not set:
4705 play "CLICK" to player
4706 wait 3 ticks
4707 open chest with 3 rows named "&c" to player
4708 if size of {gamemodes::*} <= 0:
4709 format slot 13 of player with grass named "&eNo active scenarios." to be unstealable
4710 else:
4711 set {_gmslot} to 0
4712 if {absorptionless} is true:
4713 format slot {_gmslot} of player with golden apple named "&eAbsortionLess" to be unstealable
4714 add 1 to {_gmslot}
4715 if {backpack} is true:
4716 format slot {_gmslot} of player with chest named "&eBackPacks" to be unstealable
4717 add 1 to {_gmslot}
4718 if {barebones} is true:
4719 format slot {_gmslot} of player with gold ore named "&eBareBones" to be unstealable
4720 add 1 to {_gmslot}
4721 if {blockedp} is true:
4722 format slot {_gmslot} of player with diamond pickaxe named "&eBlocked" to be unstealable
4723 add 1 to {_gmslot}
4724 if {blooddiamond} is true:
4725 format slot {_gmslot} of player with diamond ore named "&eBloodDiamond" to be unstealable
4726 add 1 to {_gmslot}
4727 if {bloodenchant} is true:
4728 format slot {_gmslot} of player with enchantment table named "&eBloodEnchat" to be unstealable
4729 add 1 to {_gmslot}
4730 if {bloodgold} is true:
4731 format slot {_gmslot} of player with gold ore named "&eBloodGold" to be unstealable
4732 add 1 to {_gmslot}
4733 if {bloodlapis} is true:
4734 format slot {_gmslot} of player with lapis named "&eBloodLapis" to be unstealable
4735 add 1 to {_gmslot}
4736 if {bowless} is true:
4737 format slot {_gmslot} of player with bow named "&eBowLess" to be unstealable
4738 add 1 to {_gmslot}
4739 if {coalless} is true:
4740 format slot {_gmslot} of player with coal named "&eCoalLess" to be unstealable
4741 add 1 to {_gmslot}
4742 if {coldweapons} is true:
4743 format slot {_gmslot} of player with flint and steel named "&eColdWeapons" to be unstealable
4744 add 1 to {_gmslot}
4745 if {cutclean} is true:
4746 format slot {_gmslot} of player with ("61" parsed as item) named "&eCutClean" to be unstealable
4747 add 1 to {_gmslot}
4748 if {diamondless} is true:
4749 format slot {_gmslot} of player with diamond named "&eDiamondLess" to be unstealable
4750 add 1 to {_gmslot}
4751 if {doubleores} is true:
4752 format slot {_gmslot} of player with hopper named "&eDoubleOres" to be unstealable
4753 add 1 to {_gmslot}
4754 if {fireless} is true:
4755 format slot {_gmslot} of player with blaze powder named "&eFireLess" to be unstealable
4756 add 1 to {_gmslot}
4757 if {goldenhead} is true:
4758 format slot {_gmslot} of player with skull of player named "&eGoldenHead" to be unstealable
4759 add 1 to {_gmslot}
4760 if {goldless} is true:
4761 format slot {_gmslot} of player with gold ingot named "&eGoldLessG" to be unstealable
4762 add 1 to {_gmslot}
4763 if {horseless} is true:
4764 format slot {_gmslot} of player with saddle named "&eHorseLess" to be unstealable
4765 add 1 to {_gmslot}
4766 if {ironless} is true:
4767 format slot {_gmslot} of player with iron ore named "&eIronLess" to be unstealable
4768 add 1 to {_gmslot}
4769 if {longshots} is true:
4770 format slot {_gmslot} of player with arrow named "&eLongShots" to be unstealable
4771 add 1 to {_gmslot}
4772 if {luckyflowers} is true:
4773 format slot {_gmslot} of player with ("38" parsed as item) named "&eLuckyFlowers" to be unstealable
4774 add 1 to {_gmslot}
4775 if {luckyleaves} is true:
4776 format slot {_gmslot} of player with ("18" parsed as item) named "&eLuckyLeaves" to be unstealable
4777 add 1 to {_gmslot}
4778 if {nocleanup} is true:
4779 format slot {_gmslot} of player with potion:16421 named "&eNoCleanUp" to be unstealable
4780 add 1 to {_gmslot}
4781 if {noenchant} is true:
4782 format slot {_gmslot} of player with bookshelf named "&eNoEnchant" to be unstealable
4783 add 1 to {_gmslot}
4784 if {nofalldamage} is true:
4785 format slot {_gmslot} of player with water bucket named "&eNoFallDamage" to be unstealable
4786 add 1 to {_gmslot}
4787 if {orefrenzy} is true:
4788 format slot {_gmslot} of player with iron pickaxe named "&eOreFrenzy" to be unstealable
4789 add 1 to {_gmslot}
4790 if {rodless} is true:
4791 format slot {_gmslot} of player with fishing rod named "&eRodLess" to be unstealable
4792 add 1 to {_gmslot}
4793 if {soup} is true:
4794 format slot {_gmslot} of player with mushroom stew named "&eSoup" to be unstealable
4795 add 1 to {_gmslot}
4796 if {timebomb} is true:
4797 format slot {_gmslot} of player with tnt named "&eTimeBomb" to be unstealable
4798 add 1 to {_gmslot}
4799 if {tripleores} is true:
4800 format slot {_gmslot} of player with diamond block named "&eTripleOres" to be unstealable
4801 add 1 to {_gmslot}
4802 if {vanillaplus} is true:
4803 format slot {_gmslot} of player with grass named "&eVanilla+" to be unstealable
4804 add 1 to {_gmslot}
4805 if {webcage} is true:
4806 format slot {_gmslot} of player with cobweb named "&eWebCage" to be unstealable
4807 add 1 to {_gmslot}
4808 if {timber} is true:
4809 format slot {_gmslot} of player with log named "&eTimber" to be unstealable
4810 add 1 to {_gmslot}
4811
4812command /explain [<text>] [<text>]:
4813 trigger:
4814 if arg 1 is not set:
4815 if arg 2 is not set:
4816 play "CLICK" to player
4817 wait 3 ticks
4818 open chest with 3 rows named "&c" to player
4819 if size of {gamemodes::*} <= 0:
4820 format slot 13 of player with grass named "&eNo active scenarios." to be unstealable
4821 else:
4822 set {_gmslot} to 0
4823 if {absorptionless} is true:
4824 format slot {_gmslot} of player with golden apple named "&eAbsortionLess" to be unstealable
4825 add 1 to {_gmslot}
4826 if {backpack} is true:
4827 format slot {_gmslot} of player with chest named "&eBackPacks" to be unstealable
4828 add 1 to {_gmslot}
4829 if {barebones} is true:
4830 format slot {_gmslot} of player with gold ore named "&eBareBones" to be unstealable
4831 add 1 to {_gmslot}
4832 if {blockedp} is true:
4833 format slot {_gmslot} of player with diamond pickaxe named "&eBlocked" to be unstealable
4834 add 1 to {_gmslot}
4835 if {blooddiamond} is true:
4836 format slot {_gmslot} of player with diamond ore named "&eBloodDiamond" to be unstealable
4837 add 1 to {_gmslot}
4838 if {bloodenchant} is true:
4839 format slot {_gmslot} of player with enchantment table named "&eBloodEnchat" to be unstealable
4840 add 1 to {_gmslot}
4841 if {bloodgold} is true:
4842 format slot {_gmslot} of player with gold ore named "&eBloodGold" to be unstealable
4843 add 1 to {_gmslot}
4844 if {bloodlapis} is true:
4845 format slot {_gmslot} of player with lapis named "&eBloodLapis" to be unstealable
4846 add 1 to {_gmslot}
4847 if {bowless} is true:
4848 format slot {_gmslot} of player with bow named "&eBowLess" to be unstealable
4849 add 1 to {_gmslot}
4850 if {coalless} is true:
4851 format slot {_gmslot} of player with coal named "&eCoalLess" to be unstealable
4852 add 1 to {_gmslot}
4853 if {coldweapons} is true:
4854 format slot {_gmslot} of player with flint and steel named "&eColdWeapons" to be unstealable
4855 add 1 to {_gmslot}
4856 if {cutclean} is true:
4857 format slot {_gmslot} of player with ("61" parsed as item) named "&eCutClean" to be unstealable
4858 add 1 to {_gmslot}
4859 if {diamondless} is true:
4860 format slot {_gmslot} of player with diamond named "&eDiamondLess" to be unstealable
4861 add 1 to {_gmslot}
4862 if {doubleores} is true:
4863 format slot {_gmslot} of player with hopper named "&eDoubleOres" to be unstealable
4864 add 1 to {_gmslot}
4865 if {fireless} is true:
4866 format slot {_gmslot} of player with blaze powder named "&eFireLess" to be unstealable
4867 add 1 to {_gmslot}
4868 if {goldenhead} is true:
4869 format slot {_gmslot} of player with skull of player named "&eGoldenHead" to be unstealable
4870 add 1 to {_gmslot}
4871 if {goldless} is true:
4872 format slot {_gmslot} of player with gold ingot named "&eGoldLessG" to be unstealable
4873 add 1 to {_gmslot}
4874 if {horseless} is true:
4875 format slot {_gmslot} of player with saddle named "&eHorseLess" to be unstealable
4876 add 1 to {_gmslot}
4877 if {ironless} is true:
4878 format slot {_gmslot} of player with iron ore named "&eIronLess" to be unstealable
4879 add 1 to {_gmslot}
4880 if {longshots} is true:
4881 format slot {_gmslot} of player with arrow named "&eLongShots" to be unstealable
4882 add 1 to {_gmslot}
4883 if {luckyflowers} is true:
4884 format slot {_gmslot} of player with ("38" parsed as item) named "&eLuckyFlowers" to be unstealable
4885 add 1 to {_gmslot}
4886 if {luckyleaves} is true:
4887 format slot {_gmslot} of player with ("18" parsed as item) named "&eLuckyLeaves" to be unstealable
4888 add 1 to {_gmslot}
4889 if {nocleanup} is true:
4890 format slot {_gmslot} of player with potion:16421 named "&eNoCleanUp" to be unstealable
4891 add 1 to {_gmslot}
4892 if {noenchant} is true:
4893 format slot {_gmslot} of player with bookshelf named "&eNoEnchant" to be unstealable
4894 add 1 to {_gmslot}
4895 if {nofalldamage} is true:
4896 format slot {_gmslot} of player with water bucket named "&eNoFallDamage" to be unstealable
4897 add 1 to {_gmslot}
4898 if {orefrenzy} is true:
4899 format slot {_gmslot} of player with iron pickaxe named "&eOreFrenzy" to be unstealable
4900 add 1 to {_gmslot}
4901 if {rodless} is true:
4902 format slot {_gmslot} of player with fishing rod named "&eRodLess" to be unstealable
4903 add 1 to {_gmslot}
4904 if {soup} is true:
4905 format slot {_gmslot} of player with mushroom stew named "&eSoup" to be unstealable
4906 add 1 to {_gmslot}
4907 if {timebomb} is true:
4908 format slot {_gmslot} of player with tnt named "&eTimeBomb" to be unstealable
4909 add 1 to {_gmslot}
4910 if {tripleores} is true:
4911 format slot {_gmslot} of player with diamond block named "&eTripleOres" to be unstealable
4912 add 1 to {_gmslot}
4913 if {vanillaplus} is true:
4914 format slot {_gmslot} of player with grass named "&eVanilla+" to be unstealable
4915 add 1 to {_gmslot}
4916 if {webcage} is true:
4917 format slot {_gmslot} of player with cobweb named "&eWebCage" to be unstealable
4918 add 1 to {_gmslot}
4919 if {timber} is true:
4920 format slot {_gmslot} of player with log named "&eTimber" to be unstealable
4921 add 1 to {_gmslot}
4922
4923on death of player:
4924 {started} is true
4925 {webcage} is true
4926 set {_loc} to location of player
4927 loop blocks in radius 10 around {_loc}:
4928 set {_distance} to rounded down distance between {_loc} and loop-block
4929 {_distance} is 4
4930 loop-block is air
4931 set block at loop-block to cobweb
4932
4933on load:
4934 register new shapeless recipe for book item using air, air, enchanted book, enchanted book, air, air, air, air, air
4935
4936command /invsee [<player>]:
4937 permission: uhc.admin
4938 trigger:
4939 arg 1 is set
4940 open chest with 6 rows named "&b&n%arg-1%" for player
4941 wait 1 tick
4942 set {viewiv.da.%player%} to true
4943 add player to {invsee::*}
4944 add arg-1 to {inventoryseeing::*}
4945 delete {inv::%argument-1%::*}
4946 loop all items in argument-1's inventory:
4947 add loop-item to {inv::%argument-1%::*}
4948 loop 36 times:
4949 set slot (loop-number - 1) of player's current inventory to {inv::%argument-1%::%loop-number%}
4950 loop integers from 36 to 44:
4951 format slot loop-integer of player with black stained glass pane named " " to be unstealable
4952 if helmet slot of arg-player is not air:
4953 format slot 47 of player with helmet slot of arg-player to be unstealable
4954 else:
4955 format slot 47 of player with glass pane named "&aHelmet" to be unstealable
4956 if chestplate slot of arg-player is not air:
4957 format slot 48 of player with chestplate slot of arg-player to be unstealable
4958 else:
4959 format slot 48 of player with glass pane named "&aChestplate" to be unstealable
4960 if legging slot of arg-player is not air:
4961 format slot 50 of player with legging slot of arg-player to be unstealable
4962 else:
4963 format slot 50 of player with glass pane named "&aLeggings" to be unstealable
4964 if boots slot of arg-player is not air:
4965 format slot 51 of player with boots slot of arg-player to be unstealable
4966 else:
4967 format slot 51 of player with glass pane named "&aBoots" to be unstealable
4968 loop integers from 45 to 46:
4969 format slot loop-integer of player with black stained glass pane named " " to be unstealable
4970 format slot 52 of player with black stained glass pane named " " to be unstealable
4971 set {_food} to argument-1's food level
4972 set {_exp} to level of argument-1
4973 set {_location} to argument-1's location
4974 format slot 53 of player with book named "&cPlayer Status" with lore " &eHealth: &a%health of arg-1% || &eHunger: &a%{_food}% || &eLevels: &a%{_exp}% || &eLocation: &a%{_location}%" to be unstealable
4975
4976on inventory click:
4977 {viewiv.da.%player%} is true
4978 cancel event
4979
4980on inventory close:
4981 {viewiv.da.%player%} is true
4982 set {viewiv.da.%player%} to false