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