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