· 8 years ago · Jul 15, 2018, 10:06 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 loop all players in "uhcworld":
2558 loop-player is op
2559 make loop-player execute command "/worldborder center 0 0"
2560 set {_nextborder} to arg-1+arg-1
2561 make loop-player execute command "/worldborder set %{_nextborder}%"
2562 wait 2 seconds
2563 else:
2564 send "&c/setborder <size> <world>"
2565 else:
2566 send "&c/setborder <size> <world>"
2567
2568command /§setborder [<int>] [<text>]:
2569 permission: uhc.admin
2570 trigger:
2571 if arg-1 is set:
2572 if arg-2 is set:
2573 set {border} to "%arg-1%"
2574 Border(arg-1, arg-2)
2575 wait 2 seconds
2576 else:
2577 send "&c/setborder <size> <world>"
2578 else:
2579 send "&c/setborder <size> <world>"
2580
2581command /staff:
2582 permission: uhc.admin
2583 trigger:
2584 if {staffmode::%player%} is not set:
2585 delete {ingame::%player%}
2586 delete {staff.helmet.%player%}
2587 delete {staff.chestplate.%player%}
2588 delete {staff.leggings.%player%}
2589 delete {staff.boots.%player%}
2590 delete {staff.inventory.%player%}
2591 wait 1 tick
2592 set {staff.inventory.%player%} to serialized contents of player's inventory
2593 set {staff.helmet.%player%} to player's helmet
2594 set {staff.chestplate.%player%} to player's chestplate
2595 set {staff.leggings.%player%} to player's leggings
2596 set {staff.boots.%player%} to player's boots
2597 wait 1 tick
2598 clear player's inventory
2599 message "&8[&5Staff Mode&8] &7Staff Mode: &aEnabled"
2600 wait 1 tick
2601 hide player from all players
2602 equip player with chain leggings
2603 wait 1 tick
2604 enchant the player's leggings with unbreaking 3
2605 enchant the player's leggings with protection 1
2606 wait 1 tick
2607 set slot 2 of player to a music disc named "&aRandom TP"
2608 set slot 0 of player to redstone named "&eInv Opener"
2609 set slot 1 of player to ice named "&bFreeze"
2610 set slot 3 of player to player head named "&bTeleport To Last Helpop"
2611 set slot 4 of player to a light green dye named "&e&lVanish: &a&lON"
2612 set slot 5 of player to a lead named "&eFollower &7(Follow Players Around) "
2613 set slot 8 of player to a diamond sword named "&aTeleport to 0,0"
2614 set {staffmode::%player%} to true
2615 remove 1 from {uhc.left}
2616 add 1 to {uhc.spectators}
2617 delete {build::%player%}
2618 set player's gamemode to creative
2619 else:
2620 message "&8[&5Staff Mode&8] &7Staff Mode: &cDisabled"
2621 delete {staffmode::%player%}
2622 wait 1 tick
2623 clear player's inventory
2624 set player's gamemode to survival
2625 reveal player from all players
2626 clear inventory of player
2627 set player's inventory's serialized contents to {staff.inventory.%player%}
2628 set player's helmet to {staff.helmet.%player%}
2629 set player's chestplate to {staff.chestplate.%player%}
2630 set player's leggings to {staff.leggings.%player%}
2631 set player's boots to {staff.boots.%player%}
2632 set {build::%player%} to true
2633 remove 1 from {uhc.spectators}
2634 add 1 to {uhc.left}
2635
2636on teleport:
2637 {staffmode::%player%} is true
2638 wait 1.5 second
2639 set player's gamemode to creative
2640
2641on teleport:
2642 {spect::%player%} is true
2643 wait 1.5 second
2644 set player's gamemode to creative
2645
2646on right click:
2647 if player's tool is a diamond sword:
2648 if name of player's tool is "&aTeleport to 0,0":
2649 wait 5 ticks
2650 execute console command "/mv tp %player% uhcworld"
2651 stop
2652 if player's tool is a head:
2653 if name of player's tool is "&bTeleport To Last Helpop":
2654 if player has permission "uhc.admin":
2655 wait 5 ticks
2656 teleport player to {lastreport}
2657 stop
2658 if player is holding a music disc named "&aRandom TP":
2659 if player has permission "uhc.admin":
2660 set {_random} to a random player out of all players
2661 while {_random} is name of player:
2662 set {_random} to a random player out of all players
2663 wait 1 tick
2664 if {_random} is not name of player:
2665 teleport player 1 behind {_random}
2666 send " &5Staff Teleported to &c%{_random}%"
2667 else:
2668 message "&cNo Permission"
2669
2670command /vanish-on:
2671 trigger:
2672 if player has permission "uhc.admin":
2673 hide player from all players
2674 message "&eVanish: &aON" to player
2675 else:
2676 message "&cNo Permission" to player
2677
2678command /vanish-off:
2679 trigger:
2680 if player has permission "uhc.admin":
2681 reveal player to all players
2682 message "&eVanish: &cOFF" to player
2683 else:
2684 message "&cNo Permission" to player
2685
2686on rightclick with dye:
2687 if {staffmode::%player%} is true:
2688 if name of player's tool is "&e&lVanish: &c&lOFF":
2689 set slot 4 of player to light green dye named "&e&lVanish: &a&lON"
2690 make player execute command "/vanish-on"
2691 else if name of player's tool is "&e&lVanish: &a&lON":
2692 set slot 4 of player to gray dye named "&e&lVanish: &c&lOFF"
2693 make player execute command "/vanish-off"
2694 else:
2695 message "&c&cNo Permission"
2696
2697on right click with lead:
2698 if player is holding a lead named "&eFollower &7(Follow Players Around) ":
2699 if player has permission "uhc.admin":
2700 if entity's target is a player:
2701 set {_name} to "%target entity%" parsed as a player
2702 send "&8[&5Staff Mode&8] &7You now follow &9%{_name}%"
2703 make player ride {_name}
2704
2705on rightclick with ice:
2706 if {staffmode::%player%} is true:
2707 make player execute command "/freeze %player's targeted player%"
2708
2709on command "/mod":
2710 cancel event
2711 execute player command "/staff"
2712command /freeze [<player>]:
2713 trigger:
2714 set {_prefix} to "&3&lFreeze&b&l> &b"
2715 arg 1 is not set:
2716 message "&cWrong syntax! Usage: /freeze <player>"
2717 stop
2718 {frozen::%arg-1%} is not set:
2719 set {frozen::%arg-1%} to false
2720 player is arg 1:
2721 player does not have permission "uhc.admin":
2722 message "&cYou don't have permission to do that"
2723 stop
2724 not {frozen::%arg-1%}:
2725 player does not have permission "uhc.admin":
2726 message "&cYou don't have permission to do that"
2727 stop
2728 apply slowness 154 to arg-1 for 9999 seconds
2729 apply jump boost -15 to arg-1 for 9999 seconds
2730 set {frozen::%arg-1%} to true
2731 set {_templastused} to now
2732 subtract 1 hour from {_templastused}
2733 set {normalcoords.%arg-1%} to arg-1's location
2734 message "&eYou froze &f%arg 1%"
2735 message "&eYou have been frozen by &f%player%" to arg 1
2736 stop
2737 player does not have permission "uhc.admin":
2738 message "&cYou don't have permission to do that"
2739 stop
2740 set {frozen::%arg-1%} to false
2741 set {_templastused} to now
2742 subtract 1 hour from {_templastused}
2743 set {freeze.%arg 1%.lastused} to {_templastused}
2744 remove slowness from arg-1
2745 remove jump boost from arg-1
2746 message "&eYou unfroze &f%arg 1%"
2747 message "&eYou have been unfrozen by &f%player%" to arg 1
2748
2749every 3 seconds:
2750 loop all players:
2751 {frozen::%loop-player%} is true
2752 send "" to loop-player
2753 send "&7&m----------------------------" to loop-player
2754 send "&aYou are frozen, please enter to the Team Speak" to loop-player
2755 send "&aTo SS." to loop-player
2756 send "" to loop-player
2757 send "&c{@TS}" to loop-player
2758 send "&7&m----------------------------" to loop-player
2759 teleport loop-player to {normalcoords.%loop-player%}
2760
2761on break:
2762 {frozen::%player%} is true
2763 cancel event
2764
2765on quit:
2766 {frozen::%player%} is true
2767 delete {frozen::%player%}
2768 broadcast "&c%player% disconnected in SS."
2769
2770on command:
2771 command is not "/helpop"
2772 command is not "/freeze"
2773 command is not "/msg"
2774 command is not "/m"
2775 command is not "/w"
2776 command is not "/t"
2777 command is not "/tell"
2778 command is not "/whisper"
2779 command is not "/pm"
2780 {frozen::%player%} is true
2781 cancel event
2782 send "&cYou are frozen!"
2783
2784command /finalheal [<text>]:
2785 permission: uhc.admin
2786 trigger:
2787 arg 1 is "add":
2788 add 1 to {finalheal}
2789 send "&a+1 Minute To Final Heal = %{finalheal}% Minutes"
2790 arg 1 is "remove":
2791 remove 1 from {finalheal}
2792 send "&c-1 Minute To Final Heal = %{finalheal}% Minutes"
2793
2794command /meetup [<text>]:
2795 permission: uhc.admin
2796 trigger:
2797 arg 1 is "add":
2798 add 1 to {meetup}
2799 send "&a+1 Minute To Meetup = %{meetup}% Minutes"
2800 arg 1 is "remove":
2801 remove 1 from {meetup}
2802 send "&c-1 Minute To Meetup = %{meetup}% Minutes"
2803
2804command /§finalheal [<text>]:
2805 permission: uhc.admin
2806 trigger:
2807 arg 1 is "add":
2808 add 10 to {finalheal}
2809 send "&a+10 Minute To Final Heal = %{finalheal}% Minutes"
2810 arg 1 is "remove":
2811 remove 10 from {finalheal}
2812 send "&c-10 Minute To Final Heal = %{finalheal}% Minutes"
2813
2814command /§meetup [<text>]:
2815 permission: uhc.admin
2816 trigger:
2817 arg 1 is "add":
2818 add 10 to {meetup}
2819 send "&a+10 Minute To Meetup = %{meetup}% Minutes"
2820 arg 1 is "remove":
2821 remove 10 from {meetup}
2822 send "&c-10 Minute To Meetup = %{meetup}% Minutes"
2823
2824command /§r [<text>]:
2825 permission: uhc.admin
2826 trigger:
2827 arg 1 is "add":
2828 add 1 to {rates::apples}
2829 send "&a+1 to AppleRates = %{rates::apples}%"
2830 arg 1 is "remove":
2831 remove 1 from {rates::apples}
2832 send "&c-1 from AppleRates = %{rates::apples}%"
2833
2834command /§f [<text>]:
2835 permission: uhc.admin
2836 trigger:
2837 arg 1 is "add":
2838 add 1 to {rates::flint}
2839 send "&a+1 to FlintRates = %{rates::flint}%"
2840 arg 1 is "remove":
2841 remove 1 from {rates::flint}
2842 send "&c-1 from FlintRates = %{rates::flint}%"
2843
2844command /§r2 [<text>]:
2845 permission: uhc.admin
2846 trigger:
2847 arg 1 is "add":
2848 add 10 to {rates::apples}
2849 send "&a+10 to AppleRates = %{rates::apples}%"
2850 arg 1 is "remove":
2851 remove 10 from {rates::apples}
2852 send "&c-10 from AppleRates = %{rates::apples}%"
2853
2854command /§f2 [<text>]:
2855 permission: uhc.admin
2856 trigger:
2857 arg 1 is "add":
2858 add 10 to {rates::flint}
2859 send "&a+10 to FlintRates = %{rates::flint}%"
2860 arg 1 is "remove":
2861 remove 10 from {rates::flint}
2862 send "&c-10 from FlintRates = %{rates::flint}%"
2863
2864command /borderstart <number>:
2865 usage: /borderstart [values]
2866 trigger:
2867 if arg-1 is set:
2868 if arg-1 is smaller than 2001:
2869 set {borderstart} to arg-1
2870 message "&aBorder start set to %{borderstart}%"
2871 else:
2872 message "&cI can`t edge the limit of Border (2000 Max)"
2873
2874command /shrink1 <number>:
2875 usage: /shrink1 [values]
2876 trigger:
2877 if arg-1 is set:
2878 if arg-1 is smaller than 1501:
2879 set {shrink1} to arg-1
2880 message "&aThe Shrink1 set to %{shrink1}%"
2881 else:
2882 message "&cI can`t edge the limit of Border (1500 Max)"
2883
2884command /shrink2 <number>:
2885 usage: /shrink2 [values]
2886 trigger:
2887 if arg-1 is set:
2888 if arg-1 is smaller than 1001:
2889 set {shrink2} to arg-1
2890 message "&aThe Shrink2 set to %{shrink2}%"
2891 else:
2892 message "&cI can`t edge the limit of Border (1000 Max)"
2893
2894command /shrink3 <number>:
2895 usage: /shrink3 [values]
2896 trigger:
2897 if arg-1 is set:
2898 if arg-1 is smaller than 251:
2899 set {shrink3} to arg-1
2900 message "&aThe Shrink3 set to %{shrink3}%"
2901 else:
2902 message "&cI can`t edge the limit of Border (250 Max)"
2903
2904command /shrink4 <number>:
2905 usage: /shrink4 [values]
2906 trigger:
2907 if arg-1 is set:
2908 if arg-1 is smaller than 101:
2909 set {shrink4} to arg-1
2910 message "&aThe Shrink4 set to %{shrink4}%"
2911 else:
2912 message "&cI can`t edge the limit of Border (100 Max)"
2913
2914on command "/borderstart":
2915 player does not have permission "uhc.admin"
2916 cancel event
2917
2918on command "/shrink1":
2919 player does not have permission "uhc.admin"
2920 cancel event
2921
2922on command "/shrink2":
2923 player does not have permission "uhc.admin"
2924 cancel event
2925
2926on command "/shrink3":
2927 player does not have permission "uhc.admin"
2928 cancel event
2929
2930on command "/shrink4":
2931 player does not have permission "uhc.admin"
2932 cancel event
2933
2934command /helpop [<text>]:
2935 aliases: /adminchat
2936 trigger:
2937 if {helpop.cooldown.%player%} is not set:
2938 if arg-1 is not set:
2939 message "&8[&b&lHELPOP&8] &8» &cPlease use &7/helpop <message>"
2940 stop
2941 if arg-1 is set:
2942 message "&8[&b&lHELPOP&8] &8» &aYour request has been sent to all online staff."
2943 set {message} to arg-1
2944 set {lastreport} to player's location
2945 loop all players:
2946 loop-player has permission "uhc.admin":
2947 send "&8[&b&lHELPOP&8] &c&n%sender%&7 has requested help: &c%arg-1%" to loop-player
2948 set {helpop.cooldown.%player%} to true
2949 wait 30 seconds
2950 delete {helpop.cooldown.%player%}
2951 if {helpop.cooldown.%player%} is true:
2952 send "&cYou need wait &6&n30 seconds &cfor use again.!" to player
2953 stop
2954
2955command /mlg:
2956 trigger:
2957 {finished} is true
2958 push the player up at speed 20
2959 clear player's inventory
2960 give player 2304 water bucket named "&b&lMLG"
2961
2962command /§l:
2963 trigger:
2964 {backpack} is true
2965 loop all players:
2966 give 1 ender chest named "{@BackPack}" to loop-player
2967
2968on death of a player:
2969 {finished} is true
2970 clear drops
2971 clear dropped items
2972
2973every 1 second:
2974 if {started} is true:
2975 loop all players:
2976 if {spect::%loop-player%} is true:
2977 hide loop-player from all players
2978
2979command /heal <player>:
2980 permission: uhc.admin
2981 trigger:
2982 if arg-1 is not set:
2983 heal the player
2984 add 10 to player's hunger bar
2985 send "{@Prefix} &eHealed!"
2986 if arg-1 is set:
2987 heal argument 1
2988 add 10 to argument 1's hunger bar
2989 send "{@Prefix} &eHealed!"
2990 message "&6You have healed &c%argument 1%"
2991
2992command /toggledm:
2993 permission: uhc.admin
2994 trigger:
2995 if {deathmatch} is true:
2996 set {deathmatch} to false
2997 send "&eDeathmatch &cdisabled."
2998 else:
2999 set {deathmatch} to true
3000 send "&eDeathmatch &cenabled."
3001
3002command /unspec [<player>]:
3003 usage: /unspec [<player>]
3004 trigger:
3005 if {spect::%command sender%} is set:
3006 command "/unspec %command sender%"
3007 arg-1 is not set
3008 send "{@Prefix} You have unspec-ed yourself!"
3009 stop trigger
3010 if command sender does not have permission "uhc.admin":
3011 send "{@Prefix} You are not spectating, nor do you have permissions!"
3012 stop trigger
3013 if arg-1 is set:
3014 set {_player} to arg-1
3015 else:
3016 set {_player} to command sender
3017 if {spect::%{_player}%} is true:
3018 delete {spect::%{_player}%}
3019 set {_player}'s gamemode to survival
3020 clear the inventory of {_player}
3021 reveal {_player} to all players
3022 remove 1 from {uhc.spectators}
3023 wait 5 seconds
3024 set {_player}'s gamemode to survival
3025 else:
3026 send "{@Prefix} %{_player}% is not spectating!"
3027
3028command /spectator [<player>]:
3029 usage: /spectator [<player>]
3030 permission: uhc.admin
3031 trigger:
3032 if arg-1 is set:
3033 send arg-1 title "&c¡You are dead!" with subtitle "&eThanks for play." for 3 seconds
3034 set arg-1's gamemode to creative
3035 hide arg-1 to all players
3036 clear arg-1's inventory
3037 set {spect::%arg-1%} to true
3038 command "/mvtp %arg-1% uhcworld"
3039 clear inventory of arg-1
3040 set slot 0 of arg-1 to redstone named "&dInv Opener"
3041 set slot 2 of arg-1 to nether star named "&cNearby Players"
3042 set slot 4 of arg-1 to nether quartz named "&5Players in Nether"
3043 set slot 6 of arg-1 to player head named "&bTeleport to Random Player"
3044 set slot 8 of arg-1 to golden apple named "&aTeleport to 0,0"
3045 send "&a%arg-1% is already spectating."
3046 wait 3 seconds
3047 set arg-1's gamemode to creative
3048
3049on right click on player:
3050 {spect::%event-player%} is true
3051 name of event-player's tool is "&dInv Opener"
3052 execute player command "/invsee %clicked entity%"
3053
3054on right click on player:
3055 {staffmode::%event-player%} is true
3056 name of event-player's tool is "&eInv Opener"
3057 execute player command "/invsee %clicked entity%"
3058
3059on inventory click:
3060 if {staffmode::%player%} is true:
3061 cancel event
3062 if {spect::%player%} is true:
3063 cancel event
3064
3065on command "/staff":
3066 player has permission "uhc.admin"
3067 {spect::%player%} is true
3068 delete {spect::%player%}
3069
3070command /seespecs:
3071 trigger:
3072 if {spect::%command sender%} is not set:
3073 send "{@Prefix} You are not spectating!"
3074 stop trigger
3075 if {spect::*} is set:
3076 send "{@Prefix} Current Spectators:"
3077 loop {spect::*}:
3078 send " &f- &c%loop-index%"
3079 else:
3080 send "{@Prefix} No current spectators!"
3081
3082on rightclick holding nether quartz:
3083 name of player's tool is "&5Players in Nether"
3084 {spect::%player%} is true
3085 loop all players:
3086 loop-player's biome is hell
3087 {spect::%loop-player%} is not set
3088 add loop-player to {_Nether::*}
3089 if {_Nether::*} is not set:
3090 send "{@Prefix} No players in the nether."
3091 stop
3092 send "{@Prefix} Players in Nether: &c%{_Nether::*}%"
3093
3094on rightclick holding glass bottle:
3095 name of player's tool is "&fClear Potion Effects"
3096 {spect::%player%} is true
3097 command "/effect %player% clear"
3098 send "{@Prefix} Potion effects cleared."
3099
3100on rightclick holding sugar:
3101 {spect::%player%} is true
3102 name of player's tool is "&fSpeed 2"
3103 send "{@Prefix} Fly/Walk Speed 2 applied"
3104 command "/speed walking 2 %player%"
3105 command "/speed fly 2 %player%"
3106
3107on rightclick holding a spider eye:
3108 name of player's tool is "&fSpeed 1"
3109 {spect::%player%} is true
3110 send "{@Prefix} Fly/Walk Speed normalized"
3111 command "/speed walk 1 %player%"
3112 command "/speed fly 1 %player%"
3113
3114on rightclick holding player head:
3115 name of player's tool is "&bTeleport to Random Player"
3116 {spect::%player%} is true
3117 loop all players:
3118 {spect::%loop-player%} is not set
3119 add loop-player to {_tp::*}
3120 set {_player} to (a random element out of {_tp::*})
3121 teleport player to {_player}
3122 if {_player} is not set:
3123 send "{@Prefix} Nobody to teleport to."
3124 stop
3125 send "{@Prefix} Teleported to &c%{_player}%"
3126
3127on rightclick holding a golden apple:
3128 name of player's tool is "&aTeleport to 0,0"
3129 {spect::%player%} is true
3130 set {_pos} to (location at 0, 250, 0)
3131 while block at location 2 below {_pos} is air:
3132 set {_pos} to (location 2 below {_pos})
3133 teleport the command sender to (location 15 above {_pos})
3134 send "{@Prefix} Teleported to 0,0"
3135
3136on rightclick holding a nether star:
3137 name of player's tool is "&cNearby Players"
3138 {spect::%player%} is true
3139 loop players in radius 1000 around player:
3140 {spect::%loop-player%} is not set
3141 loop-player is not player
3142 add "&7%loop-player%&f(&c%round(distance between player and loop-player)%m&f)" to {_nearby::*}
3143 if {_nearby::*} is not set:
3144 send "{@Prefix} No Nearby Players"
3145 stop
3146 send "{@Prefix} Nearby Players: &c%{_nearby::*}%"
3147
3148on death of player:
3149 {started} is true
3150 {wb} is true
3151 set {_loc} to location of player
3152 loop blocks in radius 10 around {_loc}:
3153 set {_distance} to rounded down distance between {_loc} and loop-block
3154 {_distance} is 4
3155 loop-block is air
3156 set block at loop-block to cobweb
3157
3158command /respawn [<player>]:
3159 permission: uhc.admin
3160 trigger:
3161 {respawn::%arg-1%} is set
3162 send "&a%arg-1% respawned!"
3163 wait 1 second
3164 execute player command "/unspec %arg-1%"
3165 set {build::%arg-1%} to true
3166 set {ingame::%arg-1%} to true
3167 delete {staffmode::%arg-1%}
3168 delete {practice::%arg-1%}
3169 delete {frozen::%arg-1%}
3170 reveal arg-1 from all players
3171 set {build::%arg-1%} to true
3172 teleport arg-1 to {respawn::%arg-1%}
3173 make the player-arg execute command "/§showinv"
3174 set arg-1's flight mode to false
3175 execute player command "/wl add %arg-1%"
3176 remove 1 from {uhc.spectators}
3177 add 1 to {uhc.left}
3178
3179command /scatter [<player>]:
3180 permission: uhc.admin
3181 trigger:
3182 arg-1 is set
3183 send "&a%arg-1% scattered!"
3184 wait 1 second
3185 execute player command "/unspec %arg-1%"
3186 remove 10 from {borderstart}
3187 execute player command "/sca uhcworld %{borderstart}% %arg-1% 50"
3188 add 10 to {borderstart}
3189 clear arg-1's inventory
3190 remove resistance from the arg-1
3191 heal the arg-1
3192 set {build::%arg-1%} to true
3193 set {ingame::%arg-1%} to true
3194 delete {staffmode::%arg-1%}
3195 delete {practice::%arg-1%}
3196 delete {frozen::%arg-1%}
3197 reveal arg-1 from all players
3198 set {build::%arg-1%} to true
3199 clear arg-1's inventory
3200 set arg-1's flight mode to false
3201 execute player command "/wl add %arg-1%"
3202 restore inventory of player from {kit.uhc}
3203 set player's helmet to {helmet.uhc}
3204 set player's chestplate to {chestplate.uhc}
3205 set player's leggings to {leggings.uhc}
3206 set player's boots to {boots.uhc}
3207 add 1 to {uhc.left}
3208
3209on command "/scatter":
3210 {started} is false
3211 cancel event
3212 send "{@nostart}"
3213
3214on command "/respawn":
3215 {started} is false
3216 cancel event
3217 send "{@nostart}"
3218
3219on craft of golden apple:
3220 if item is golden apple item named "{@goldenhead}":
3221 {goldenhead} is not set
3222 cancel event
3223
3224command /starttime:
3225 permission: uhc.admin
3226 trigger:
3227 loop 18000 times:
3228 if {started} is set:
3229 wait 5 seconds
3230 add 5 to {Time1}
3231 if {Time1} is 10:
3232 set {Time1} to 0
3233 add 1 to {Time2}
3234 if {Time2} is 6:
3235 set {Time2} to 0
3236 add 1 to {Time3}
3237 if {Time3} is 10:
3238 set {Time3} to 0
3239 add 1 to {Time4}
3240 if {Time4} is 6:
3241 set {Time4} to 0
3242 add 1 to {Time5}
3243
3244on command "/me":
3245 cancel event
3246 send "&cCommand blocked!"
3247
3248on command "/say":
3249 cancel event
3250 send "&cCommand blocked!"
3251
3252on command "/minecraft:me":
3253 cancel event
3254 send "&cCommand blocked!"
3255
3256on command "/minecraft:say":
3257 cancel event
3258 send "&cCommand blocked!"
3259
3260command /teamlist [<text>]:
3261 trigger:
3262 if arg-1 is not set:
3263 if {Teams::*} is not set:
3264 send "{@Prefix} &c No teams set."
3265 else:
3266 loop {Teams::*}:
3267 if size of {Team.%loop-value%::*} is not 0:
3268 send "{@Prefix} &r Team &b%loop-value%&r: %{Team.%loop-value%::*}%"
3269 else:
3270 add 1 to {_0}
3271 if {_0} is size of {Teams::*}:
3272 send "{@Prefix} &cNo teams set."
3273
3274command /tl [<text>]:
3275 trigger:
3276 if arg-1 is not set:
3277 if {Teams::*} is not set:
3278 send "{@Prefix} &c No teams set."
3279 else:
3280 loop {Teams::*}:
3281 if size of {Team.%loop-value%::*} is not 0:
3282 send "{@Prefix} &r Team &b%loop-value%&r: %{Team.%loop-value%::*}%"
3283 else:
3284 add 1 to {_0}
3285 if {_0} is size of {Teams::*}:
3286 send "{@Prefix} &cNo teams set."
3287
3288on portal create:
3289 {nether.status} is "OFF"
3290 cancel event
3291
3292on right click:
3293 if {soup} is true:
3294 {started} is true
3295 if player is holding Mushroom stew:
3296 remove 1 mushroom stew from player
3297 heal player by 2
3298
3299on 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:
3300 {nopotions} is "OFF"
3301 cancel event
3302 send "&cPotions disabled in GAME!"
3303
3304on quit:
3305 {combatlog::%player%} is true
3306 kill the player
3307
3308command /§showinv:
3309 trigger:
3310 restore inventory of player from {Stuff::%player%}
3311 set player's helmet to {uhc.helmet.%player%}
3312 set player's chestplate to {uhc.chestplate.%player%}
3313 set player's leggings to {uhc.leggings.%player%}
3314 set player's boots to {uhc.boots.%player%}
3315
3316command /§saveinv:
3317 trigger:
3318 set {Stuff::%player%} to player's serialized inventory
3319 set {uhc.helmet.%player%} to player's helmet
3320 set {uhc.chestplate.%player%} to player's chestplate
3321 set {uhc.leggings.%player%} to player's leggings
3322 set {uhc.boots.%player%} to player's boots
3323
3324on damage of player:
3325 wait 1 tick
3326 attacker is a player:
3327 projectile exists
3328 if projectile is arrow:
3329 wait 1 tick
3330 victim is not dead:
3331 message "{@bowhealth}" to the attacker
3332
3333command /postuhc:
3334 permission: uhc.admin
3335 trigger:
3336 open chest with 1 rows named "&b&nPost UHC on Twitter." to player
3337 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"]
3338 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
3339 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"]
3340
3341on command "/§postontwitter":
3342 cancel event
3343 {started} is false
3344 # Official Twitter Connector #
3345 twitter debug connect with consumer key "{@ConsumerKey}", consumer secret "{@ConsumerSecret}", access token "{@AccessToken}" and secret token "{@SecretToken}"
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 seconds
3349 # GamePost Connector #
3350 twitter debug connect with consumer key "1y5rFsnUllfYvWstYxEjrvijB", consumer secret "OqB77cHwAnR1meS7m0B7XjMwkJacnJBpzOECdlCwugwE2mGLaB", access token "929476307423039488-VGz6jt88ufa3Jg3nzWDTzUhHkHNDrSE" and secret token "JjWMh8qZ8NSWCZG8x67lFcgl8w8xJrP4wZGT8xm21xeYR"
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 # Despost Connector #
3355 twitter debug connect with consumer key "B64FCyfZ78zUu23o4wD8yx4sz", consumer secret "NkSkP0ttXtwUJ1YUDZ5cGR6bAvJklPEz5dpDZkcu5fnpJg9rVE", access token "3308687965-DIi3SWETmk6XSY6UrGOTBwgPXxF1G8AwdoOr4U5" and secret token "MZbBB065YTReo8mIcHa03LVAW8T5WMUTPGUr3mxMYBKNU"
3356 wait 1 seconds
3357 tweet "{@ServerName}%nl%- %{Teams.LimitTwo}%%{Teams.Limit}% %{gamemodes::*}%%nl%{@Host}: %{host}%%nl%{@WL-OFF}: %{wlofftime}%%nl%IP: {@ServerIP}"
3358 wait 1 second
3359 # RealPost Connector #
3360 twitter debug connect with consumer key "aN2fY9kAtlK1rgMEHwZAoT8jc", consumer secret "eJT8bCRX8OGGN4Nf0taj4xATmq7KSloUnxgZ7UmDfKsXSnPZ0e", access token "843785241659695104-SgLBGL34EXah87jXoF59XZltZK15V0i" and secret token "Wh8cwnLflCcz47xGJkTuBmJiWVINfGqIop77V3qAu9FgM"
3361 wait 1 seconds
3362 tweet "{@ServerName}%nl%- %{Teams.LimitTwo}%%{Teams.Limit}% %{gamemodes::*}%%nl%{@Host}: %{host}%%nl%{@WL-OFF}: %{wlofftime}%%nl%IP: {@ServerIP}"
3363 # SwordNetwork Connector #
3364 twitter debug connect with consumer key "pnfXmpNDeJJTz5TnO7ica2l1v", consumer secret "RYFUcOd1e54CkONSEK2XcOm11czsfLCS8oGZLqgKfDbxlsOWfo", access token "951592868442976256-vvMRbP4am2OWh5uDBB2jtpnGtBXhrti" and secret token "Gsb5mR3UPmtTrR9JFPemiusqRo9v36MqvxM1sKG3sGHbP"
3365 wait 1 seconds
3366 tweet "{@ServerName}%nl%- %{Teams.LimitTwo}%%{Teams.Limit}% %{gamemodes::*}%%nl%{@Host}: %{host}%%nl%{@WL-OFF}: %{wlofftime}%%nl%IP: {@ServerIP}"
3367 wait 1 seconds
3368 twitter debug connect with consumer key "{@ConsumerKey}", consumer secret "{@ConsumerSecret}", access token "{@AccessToken}" and secret token "{@SecretToken}"
3369
3370on command "/§setwloff":
3371 cancel event
3372 {started} is false
3373 set {wloff.time.%player%} to true
3374 send "&aPut the WL OFF time in the chat."
3375 send ""
3376 send "&aExample: 17:04 [time.is/Peru]"
3377
3378on chat:
3379 {wloff.time.%player%} is true
3380 cancel event
3381 set {wlofftime} to "%message%"
3382 send "&bWl OFF set to: &6%{wlofftime}%"
3383 set {wloff.time.%player%} to false
3384
3385command /escenarios [<text>] [<text>]:
3386 permission: uhc.admin
3387 permission message: &cNo Permission.
3388 trigger:
3389 if arg 1 is "menu":
3390 play "CLICK" to player
3391 open chest with 6 rows named "&c" to player
3392 wait 3 ticks
3393 format slot 0 of player with chest named "&eBackPacks" to run [make player execute command "/escenarios BackPack"]
3394 format slot 1 of player with log named "&eTimber" to run [make player execute command "/escenarios Timber"]
3395 format slot 2 of player with iron ore named "&eBareBones" to run [make player execute command "/escenarios BareBones"]
3396 format slot 3 of player with diamond pickaxe named "&eBlocked" to run [make player execute command "/escenarios Blocked"]
3397 format slot 4 of player with diamond ore named "&eBloodDiamond" to run [make player execute command "/escenarios BloodDiamond"]
3398 format slot 5 of player with enchantment table named "&eBloodEnchat" to run [make player execute command "/escenarios BloodEnchant"]
3399 format slot 6 of player with gold ore named "&eBloodGold" to run [make player execute command "/escenarios BloodGold"]
3400 format slot 7 of player with lapis named "&eBloodLapis" to run [make player execute command "/escenarios BloodLapis"]
3401 format slot 8 of player with bow named "&eBowLess" to run [make player execute command "/escenarios BowLess"]
3402 format slot 9 of player with coal named "&eCoalLess" to run [make player execute command "/escenarios CoalLess"]
3403 format slot 10 of player with iron ingot named "&eCutClean" to run [make player execute command "/escenarios CutClean"]
3404 format slot 11 of player with packed ice named "&eColdWeapons" to run [make player execute command "/escenarios ColdWeapons"]
3405 format slot 12 of player with diamond named "&eDiamondLess" to run [make player execute command "/escenarios DiamondLess"]
3406 format slot 13 of player with gold nugget named "&eDoubleOres" to run [make player execute command "/escenarios DoubleOres"]
3407 format slot 14 of player with blaze powder named "&eFireLess" to run [make player execute command "/escenarios FireLess"]
3408 format slot 15 of player with skull of player named "&eGoldenHead" to run [make player execute command "/escenarios GoldenHead"]
3409 format slot 16 of player with gold ingot named "&eGoldLess" to run [make player execute command "/escenarios GoldLess"]
3410 format slot 17 of player with golden apple named "&eAbsorptionLess" to run [make player execute command "/escenarios Absorptionless"]
3411 format slot 18 of player with saddle named "&eHorseLess" to run [make player execute command "/escenarios Horseless"]
3412 format slot 19 of player with iron ingot named "&eIronLess" to run [make player execute command "/escenarios IronLess"]
3413 format slot 20 of player with arrow named "&eLongShots" to run [make player execute command "/escenarios LongShot"]
3414 format slot 21 of player with ("38" parsed as item) named "&eLuckyFlowers" to run [make player execute command "/escenarios LuckyFlowers"]
3415 format slot 22 of player with ("18" parsed as item) named "&eLuckyLeaves" to run [make player execute command "/escenarios LuckyLeaves"]
3416 format slot 23 of player with ("276" parsed as item) named "&eNoClean" to run [make player execute command "/escenarios NoClean"]
3417 format slot 24 of player with bookshelf named "&eNoEnchant" to run [make player execute command "/escenarios NoEnchant"]
3418 format slot 25 of player with diamond boots named "&eNoFallDamage" to run [make player execute command "/escenarios NoFallDamage"]
3419 format slot 26 of player with iron pickaxe named "&eOreFrenzy" to run [make player execute command "/escenarios OreFrenzy"]
3420 format slot 27 of player with fishing rod named "&eRodLess" to run [make player execute command "/escenarios RodLess"]
3421 format slot 28 of player with tnt named "&eTimeBomb" to run [make player execute command "/escenarios TimeBomb"]
3422 format slot 29 of player with emerald named "&eTripleOres" to run [make player execute command "/escenarios TripleOres"]
3423 format slot 30 of player with mushroom stew named "&eSoup" to run [make player execute command "/escenarios Soup"]
3424 format slot 31 of player with apple named "&eVanilla+" to run [make player execute command "/escenarios Vanilla+"]
3425 format slot 32 of player with cobweb named "&eWebCage" to run [make player execute command "/escenarios WebCage"]
3426 format slot 33 of player with lava bucket named "&eBuildUHC" to run [make player execute command "/escenarios BuildUHC"]
3427 format slot 34 of player with iron axe named "&eRush" to run [make player execute command "/escenarios Rush"]
3428
3429 if arg 1 is "gamemodes":
3430 if arg 2 is "menu":
3431 play "CLICK" to player
3432 wait 3 ticks
3433 open chest with 3 rows named "&c" to player
3434 if size of {gamemodes::*} <= 0:
3435 format slot 13 of player with grass named "&eNo active scenarios." to be unstealable
3436 format slot 26 of player with arrow named "&7Back" with lore "" to run [make player execute command "/escenarios menu"]
3437 else:
3438 set {_gmslot} to 0
3439 if {absorptionless} is true:
3440 format slot {_gmslot} of player with golden apple named "&eAbsortionLess" to be unstealable
3441 add 1 to {_gmslot}
3442 if {backpack} is true:
3443 format slot {_gmslot} of player with chest named "&eBackPacks" to be unstealable
3444 add 1 to {_gmslot}
3445 if {barebones} is true:
3446 format slot {_gmslot} of player with gold ore named "&eBareBones" to be unstealable
3447 add 1 to {_gmslot}
3448 if {blockedp} is true:
3449 format slot {_gmslot} of player with diamond pickaxe named "&eBlocked" to be unstealable
3450 add 1 to {_gmslot}
3451 if {blooddiamond} is true:
3452 format slot {_gmslot} of player with diamond ore named "&eBloodDiamond" to be unstealable
3453 add 1 to {_gmslot}
3454 if {bloodenchant} is true:
3455 format slot {_gmslot} of player with enchantment table named "&eBloodEnchat" to be unstealable
3456 add 1 to {_gmslot}
3457 if {bloodgold} is true:
3458 format slot {_gmslot} of player with gold ore named "&eBloodGold" to be unstealable
3459 add 1 to {_gmslot}
3460 if {bloodlapis} is true:
3461 format slot {_gmslot} of player with lapis named "&eBloodLapis" to be unstealable
3462 add 1 to {_gmslot}
3463 if {bowless} is true:
3464 format slot {_gmslot} of player with bow named "&eBowLess" to be unstealable
3465 add 1 to {_gmslot}
3466 if {coalless} is true:
3467 format slot {_gmslot} of player with coal named "&eCoalLess" to be unstealable
3468 add 1 to {_gmslot}
3469 if {coldweapons} is true:
3470 format slot {_gmslot} of player with flint and steel named "&eColdWeapons" to be unstealable
3471 add 1 to {_gmslot}
3472 if {cutclean} is true:
3473 format slot {_gmslot} of player with ("61" parsed as item) named "&eCutClean" to be unstealable
3474 add 1 to {_gmslot}
3475 if {diamondless} is true:
3476 format slot {_gmslot} of player with diamond named "&eDiamondLess" to be unstealable
3477 add 1 to {_gmslot}
3478 if {doubleores} is true:
3479 format slot {_gmslot} of player with hopper named "&eDoubleOres" to be unstealable
3480 add 1 to {_gmslot}
3481 if {fireless} is true:
3482 format slot {_gmslot} of player with blaze powder named "&eFireLess" to be unstealable
3483 add 1 to {_gmslot}
3484 if {goldenhead} is true:
3485 format slot {_gmslot} of player with skull of player named "&eGoldenHead" to be unstealable
3486 add 1 to {_gmslot}
3487 if {goldless} is true:
3488 format slot {_gmslot} of player with gold ingot named "&eGoldLessG" to be unstealable
3489 add 1 to {_gmslot}
3490 if {horseless} is true:
3491 format slot {_gmslot} of player with saddle named "&eHorseLess" to be unstealable
3492 add 1 to {_gmslot}
3493 if {ironless} is true:
3494 format slot {_gmslot} of player with iron ore named "&eIronLess" to be unstealable
3495 add 1 to {_gmslot}
3496 if {longshots} is true:
3497 format slot {_gmslot} of player with arrow named "&eLongShots" to be unstealable
3498 add 1 to {_gmslot}
3499 if {luckyflowers} is true:
3500 format slot {_gmslot} of player with ("38" parsed as item) named "&eLuckyFlowers" to be unstealable
3501 add 1 to {_gmslot}
3502 if {luckyleaves} is true:
3503 format slot {_gmslot} of player with ("18" parsed as item) named "&eLuckyLeaves" to be unstealable
3504 add 1 to {_gmslot}
3505 if {NoClean} is true:
3506 format slot {_gmslot} of player with potion:16421 named "&eNoClean" to be unstealable
3507 add 1 to {_gmslot}
3508 if {noenchant} is true:
3509 format slot {_gmslot} of player with bookshelf named "&eNoEnchant" to be unstealable
3510 add 1 to {_gmslot}
3511 if {nofalldamage} is true:
3512 format slot {_gmslot} of player with water bucket named "&eNoFallDamage" to be unstealable
3513 add 1 to {_gmslot}
3514 if {orefrenzy} is true:
3515 format slot {_gmslot} of player with iron pickaxe named "&eOreFrenzy" to be unstealable
3516 add 1 to {_gmslot}
3517 if {rodless} is true:
3518 format slot {_gmslot} of player with fishing rod named "&eRodLess" to be unstealable
3519 add 1 to {_gmslot}
3520 if {soup} is true:
3521 format slot {_gmslot} of player with mushroom stew named "&eSoup" to be unstealable
3522 add 1 to {_gmslot}
3523 if {timebomb} is true:
3524 format slot {_gmslot} of player with tnt named "&eTimeBomb" to be unstealable
3525 add 1 to {_gmslot}
3526 if {tripleores} is true:
3527 format slot {_gmslot} of player with diamond block named "&eTripleOres" to be unstealable
3528 add 1 to {_gmslot}
3529 if {vanillaplus} is true:
3530 format slot {_gmslot} of player with grass named "&eVanilla+" to be unstealable
3531 add 1 to {_gmslot}
3532 if {webcage} is true:
3533 format slot {_gmslot} of player with cobweb named "&eWebCage" to be unstealable
3534 add 1 to {_gmslot}
3535 if {builduhc} is true:
3536 format slot {_gmslot} of player with lava bucket named "&eBuildUHC" to be unstealable
3537 add 1 to {_gmslot}
3538 if {rush} is true:
3539 format slot {_gmslot} of player with iron axe named "&eRush" to be unstealable
3540 add 1 to {_gmslot}
3541 format slot 26 of player with arrow named "&7Back" with lore "" to run [make player execute command "/escenarios menu"]
3542
3543 if arg 1 is "AbsorptionLess":
3544 if {absorptionless} is not set:
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 false:
3550 play "CLICK" to player
3551 set {absorptionless} to true
3552 add arg-1 to {gamemodes::*}
3553 send "{@Prefix} &cAbsorptionless &cdisable"
3554 else if {absorptionless} is true:
3555 play "CLICK" to player
3556 set {absorptionless} to false
3557 remove arg-1 from {gamemodes::*}
3558 send "{@Prefix} &cAbsorptionless &cdisable"
3559
3560 if arg 1 is "BuildUHC":
3561 if {builduhc} is not set:
3562 play "CLICK" to player
3563 set {builduhc} to true
3564 add arg-1 to {gamemodes::*}
3565 send "{@Prefix} &aBuildUHC &aenable"
3566 execute player command "/borderstart 500"
3567 execute player command "/shrink1 100"
3568 execute player command "/shrink2 50"
3569 execute player command "/shrink3 25"
3570 execute player command "/shrink4 15"
3571 set {meetup} to 2
3572 set {finalheal} to 1
3573 send "&ePvP set to %{finalheal}%"
3574 send "&eMeetup set to %{meetup}%"
3575 execute player command "/§startinv"
3576 else if {builduhc} is false:
3577 play "CLICK" to player
3578 set {builduhc} to true
3579 add arg-1 to {gamemodes::*}
3580 send "{@Prefix} &aBuildUHC &aenable"
3581 execute player command "/borderstart 500"
3582 execute player command "/shrink1 100"
3583 execute player command "/shrink2 50"
3584 execute player command "/shrink3 25"
3585 execute player command "/shrink4 15"
3586 set {meetup} to 2
3587 set {finalheal} to 1
3588 send "&ePvP set to %{finalheal}%"
3589 send "&eMeetup set to %{meetup}%"
3590 execute player command "/§startinv"
3591 else if {builduhc} is true:
3592 play "CLICK" to player
3593 set {builduhc} to false
3594 remove arg-1 from {gamemodes::*}
3595 send "{@Prefix} &cBuildUHC &cdisable"
3596 execute player command "/borderstart 1000"
3597 execute player command "/shrink1 500"
3598 execute player command "/shrink2 100"
3599 execute player command "/shrink3 50"
3600 execute player command "/shrink4 25"
3601 set {meetup} to 50
3602 set {finalheal} to 10
3603 send "&ePvP set to %{finalheal}%"
3604 send "&eMeetup set to %{meetup}%"
3605
3606 if arg 1 is "Rush":
3607 if {rush} is not set:
3608 play "CLICK" to player
3609 set {rush} to true
3610 add arg-1 to {gamemodes::*}
3611 send "{@Prefix} &aRush &aenable"
3612 execute player command "/borderstart 1000"
3613 execute player command "/shrink1 500"
3614 execute player command "/shrink2 100"
3615 execute player command "/shrink3 50"
3616 execute player command "/shrink4 25"
3617 set {meetup} to 25
3618 set {finalheal} to 10
3619 send "&ePvP set to %{finalheal}%"
3620 send "&eMeetup set to %{meetup}%"
3621 else if {rush} is false:
3622 play "CLICK" to player
3623 set {rush} to true
3624 add arg-1 to {gamemodes::*}
3625 send "{@Prefix} &aRush &aenable"
3626 execute player command "/borderstart 1000"
3627 execute player command "/shrink1 500"
3628 execute player command "/shrink2 100"
3629 execute player command "/shrink3 50"
3630 execute player command "/shrink4 25"
3631 set {meetup} to 25
3632 set {finalheal} to 10
3633 send "&ePvP set to %{finalheal}%"
3634 send "&eMeetup set to %{meetup}%"
3635 else if {rush} is true:
3636 play "CLICK" to player
3637 set {rush} to false
3638 remove arg-1 from {gamemodes::*}
3639 send "{@Prefix} &cRush &cdisable"
3640 execute player command "/borderstart 1000"
3641 execute player command "/shrink1 500"
3642 execute player command "/shrink2 100"
3643 execute player command "/shrink3 50"
3644 execute player command "/shrink4 25"
3645 set {meetup} to 50
3646 set {finalheal} to 10
3647 send "&ePvP set to %{finalheal}%"
3648 send "&eMeetup set to %{meetup}%"
3649
3650 if arg 1 is "35" or "nton":
3651 set {nether.status} to "ON"
3652 broadcast "{@Prefix} &aNether &aenable"
3653 if arg 1 is "36" or "ntoff":
3654 set {nether.status} to "OFF"
3655 broadcast "{@Prefix} &cNether &cdisable"
3656
3657 if arg 1 is "43" or "hhon":
3658 set {horsehealing} to "ON"
3659 broadcast "{@Prefix} &aHorsehealing &aenable"
3660 if arg 1 is "44" or "hhoff":
3661 set {horsehealing} to "OFF"
3662 broadcast "{@Prefix} &cHorsehealing &cdisable"
3663 if arg 1 is "45" or "npon":
3664 set {nopotions} to "ON"
3665 broadcast "{@Prefix} &aPotions &aenable"
3666 if arg 1 is "46" or "npoff":
3667 set {nopotions} to "OFF"
3668 broadcast "{@Prefix} &cPotions &cdisable"
3669
3670
3671 if arg 1 is "BareBones":
3672 if {barebones} is not set:
3673 play "CLICK" to player
3674 set {barebones} to true
3675 set {nether} to false
3676 add arg-1 to {gamemodes::*}
3677 send "{@Prefix} &aBareBones &aenable"
3678 else if {barebones} is false:
3679 play "CLICK" to player
3680 set {barebones} to true
3681 set {nether} to false
3682 add arg-1 to {gamemodes::*}
3683 send "{@Prefix} &aBareBones &aenable"
3684 else if {barebones} is true:
3685 play "CLICK" to player
3686 set {barebones} to false
3687 set {nether} to true
3688 remove arg-1 from {gamemodes::*}
3689 send "{@Prefix} &cBareBones &cdisable"
3690
3691 if arg 1 is "Blocked":
3692 if {blockedp} is not set:
3693 play "CLICK" to player
3694 set {blockedp} to true
3695 loop all players:
3696 delete {blockedplaced.%loop-player%::*}
3697 add arg-1 to {gamemodes::*}
3698 send "{@Prefix} &aBlocked &aenable"
3699 else if {blockedp} is false:
3700 play "CLICK" to player
3701 set {blockedp} to true
3702 loop all players:
3703 delete {blockedplaced.%loop-player%::*}
3704 add arg-1 to {gamemodes::*}
3705 send "{@Prefix} &aBlocked &aenable"
3706 else if {blockedp} is true:
3707 play "CLICK" to player
3708 set {blockedp} to false
3709 loop all players:
3710 delete {blockedplaced.%loop-player%::*}
3711 remove arg-1 from {gamemodes::*}
3712 send "{@Prefix} &cBlocked &cdisable"
3713
3714 if arg 1 is "BloodDiamond":
3715 if {blooddiamond} is not set:
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 false:
3721 play "CLICK" to player
3722 set {blooddiamond} to true
3723 add arg-1 to {gamemodes::*}
3724 send "{@Prefix} &aBloodDiamond &aenable"
3725 else if {blooddiamond} is true:
3726 play "CLICK" to player
3727 set {blooddiamond} to false
3728 remove arg-1 from {gamemodes::*}
3729 send "{@Prefix} &cBloodDiamond &cdisable"
3730
3731 if arg 1 is "BloodEnchant":
3732 if {bloodenchant} is not set:
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 false:
3738 play "CLICK" to player
3739 set {bloodenchant} to true
3740 add arg-1 to {gamemodes::*}
3741 send "{@Prefix} &aBloodEnchant &aenable"
3742 else if {bloodenchant} is true:
3743 play "CLICK" to player
3744 set {bloodenchant} to false
3745 remove arg-1 from {gamemodes::*}
3746 send "{@Prefix} &cBloodEnchant &cdisable"
3747
3748 if arg 1 is "BloodGold":
3749 if {bloodgold} is not set:
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 false:
3755 play "CLICK" to player
3756 set {bloodgold} to true
3757 add arg-1 to {gamemodes::*}
3758 send "{@Prefix} &aBloodGold &aenable"
3759 else if {bloodgold} is true:
3760 play "CLICK" to player
3761 set {bloodgold} to false
3762 remove arg-1 from {gamemodes::*}
3763 send "{@Prefix} &cBloodGold &cdisable"
3764
3765 if arg 1 is "BloodLapis":
3766 if {bloodlapis} is not set:
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 false:
3772 play "CLICK" to player
3773 set {bloodlapis} to true
3774 add arg-1 to {gamemodes::*}
3775 send "{@Prefix} &aBloodLapis &aenable"
3776 else if {bloodlapis} is true:
3777 play "CLICK" to player
3778 set {bloodlapis} to false
3779 remove arg-1 from {gamemodes::*}
3780 send "{@Prefix} &cBloodLapis &cdisable"
3781
3782 if arg 1 is "BowLess":
3783 if {bowless} is not set:
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 false:
3789 play "CLICK" to player
3790 set {bowless} to true
3791 add arg-1 to {gamemodes::*}
3792 send "{@Prefix} &aBowLess &aenable"
3793 else if {bowless} is true:
3794 play "CLICK" to player
3795 set {bowless} to false
3796 remove arg-1 from {gamemodes::*}
3797 send "{@Prefix} &cBowLess &cdisable"
3798
3799 if arg 1 is "CoalLess":
3800 if {coalless} is not set:
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 false:
3806 play "CLICK" to player
3807 set {coalless} to true
3808 add arg-1 to {gamemodes::*}
3809 send "{@Prefix} &aCoalLess &aenable"
3810 else if {coalless} is true:
3811 play "CLICK" to player
3812 set {coalless} to false
3813 remove arg-1 from {gamemodes::*}
3814 send "{@Prefix} &cCoalLess &cdisable"
3815
3816 if arg 1 is "ColdWeapons":
3817 if {coldweapons} is not set:
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 false:
3823 play "CLICK" to player
3824 set {coldweapons} to true
3825 add arg-1 to {gamemodes::*}
3826 send "{@Prefix} &aColdWeapons &aenable"
3827 else if {coldweapons} is true:
3828 play "CLICK" to player
3829 set {coldweapons} to false
3830 remove arg-1 from {gamemodes::*}
3831 send "{@Prefix} &cColdWeapons &cdisable"
3832
3833 if arg 1 is "CutClean":
3834 if {cutclean} is not set:
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 false:
3840 play "CLICK" to player
3841 set {cutclean} to true
3842 add arg-1 to {gamemodes::*}
3843 send "{@Prefix} &aCutClean &aenable"
3844 else if {cutclean} is true:
3845 play "CLICK" to player
3846 set {cutclean} to false
3847 remove arg-1 from {gamemodes::*}
3848 send "{@Prefix} &cCutClean &cdisable"
3849
3850 if arg 1 is "DiamondLess":
3851 if {diamondless} is not set:
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 false:
3857 play "CLICK" to player
3858 set {diamondless} to true
3859 add arg-1 to {gamemodes::*}
3860 send "{@Prefix} &aDiamondLess &aenable"
3861 else if {diamondless} is true:
3862 play "CLICK" to player
3863 set {diamondless} to false
3864 remove arg-1 from {gamemodes::*}
3865 send "{@Prefix} &cDiamondLess &cdisable"
3866
3867 if arg 1 is "DoubleOres":
3868 if {doubleores} is not set:
3869 play "CLICK" to player
3870 set {doubleores} to true
3871 set {tripleores} to false
3872 add arg-1 to {gamemodes::*}
3873 remove "TripleOres" from {gamemodes::*}
3874 send "{@Prefix} &aDoubleOres &aenable"
3875 else if {doubleores} is false:
3876 play "CLICK" to player
3877 set {doubleores} to true
3878 set {tripleores} to false
3879 add arg-1 to {gamemodes::*}
3880 remove "TripleOres" from {gamemodes::*}
3881 send "{@Prefix} &aDoubleOres &aenable"
3882 else if {doubleores} is true:
3883 play "CLICK" to player
3884 set {doubleores} to false
3885 remove arg-1 from {gamemodes::*}
3886 send "{@Prefix} &cDoubleOres &cdisable"
3887
3888 if arg 1 is "FireLess":
3889 if {fireless} is not set:
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 false:
3895 play "CLICK" to player
3896 set {fireless} to true
3897 add arg-1 to {gamemodes::*}
3898 send "{@Prefix} &aFireLess &aenable"
3899 else if {fireless} is true:
3900 play "CLICK" to player
3901 set {fireless} to false
3902 remove arg-1 from {gamemodes::*}
3903 send "{@Prefix} &cFireLess &cdisable"
3904
3905 if arg 1 is "GoldenHead":
3906 if {goldenhead} is not set:
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 false:
3912 play "CLICK" to player
3913 set {goldenhead} to true
3914 add arg-1 to {gamemodes::*}
3915 send "{@Prefix} &aGoldenHead &aenable"
3916 else if {goldenhead} is true:
3917 play "CLICK" to player
3918 set {goldenhead} to false
3919 remove arg-1 from {gamemodes::*}
3920 send "{@Prefix} &cGoldenHead &cdisable"
3921
3922 if arg 1 is "GoldLess":
3923 if {goldless} is not set:
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 false:
3929 play "CLICK" to player
3930 set {goldless} to true
3931 add arg-1 to {gamemodes::*}
3932 send "{@Prefix} &aGoldLess &aenable"
3933 else if {goldless} is true:
3934 play "CLICK" to player
3935 set {goldless} to false
3936 remove arg-1 from {gamemodes::*}
3937 send "{@Prefix} &cGoldLess &cdisable"
3938
3939
3940
3941 if arg 1 is "IronLess":
3942 if {ironless} is not set:
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 false:
3948 play "CLICK" to player
3949 set {ironless} to true
3950 add arg-1 to {gamemodes::*}
3951 send "{@Prefix} &aIronLess &aenable"
3952 else if {ironless} is true:
3953 play "CLICK" to player
3954 set {ironless} to false
3955 remove arg-1 from {gamemodes::*}
3956 send "{@Prefix} &cIronLess &cdisable"
3957
3958 if arg 1 is "LongShots":
3959 if {longshots} is not set:
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 false:
3965 play "CLICK" to player
3966 set {longshots} to true
3967 add arg-1 to {gamemodes::*}
3968 send "{@Prefix} &aLongShots &aenable"
3969 else if {longshots} is true:
3970 play "CLICK" to player
3971 set {longshots} to false
3972 remove arg-1 from {gamemodes::*}
3973 send "{@Prefix} &cLongShots &cdisable"
3974
3975 if arg 1 is "LuckyFlowers":
3976 if {luckyflowers} is not set:
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 false:
3982 play "CLICK" to player
3983 set {luckyflowers} to true
3984 add arg-1 to {gamemodes::*}
3985 send "{@Prefix} &aLuckyFlowers &aenable"
3986 else if {luckyflowers} is true:
3987 play "CLICK" to player
3988 set {luckyflowers} to false
3989 remove arg-1 from {gamemodes::*}
3990 send "{@Prefix} &cLuckyFlowers &cdisable"
3991
3992 if arg 1 is "LuckyLeaves":
3993 if {luckyleaves} is not set:
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 false:
3999 play "CLICK" to player
4000 set {luckyleaves} to true
4001 add arg-1 to {gamemodes::*}
4002 send "{@Prefix} &aLuckyLeaves &aenable"
4003 else if {luckyleaves} is true:
4004 play "CLICK" to player
4005 set {luckyleaves} to false
4006 remove arg-1 from {gamemodes::*}
4007 send "{@Prefix} &cLuckyLeaves &cdisable"
4008
4009 if arg 1 is "NoClean":
4010 if {NoClean} is not set:
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 false:
4016 play "CLICK" to player
4017 set {NoClean} to true
4018 add arg-1 to {gamemodes::*}
4019 send "{@Prefix} &aNoClean &aenable"
4020 else if {NoClean} is true:
4021 play "CLICK" to player
4022 set {NoClean} to false
4023 remove arg-1 from {gamemodes::*}
4024 send "{@Prefix} &cNoClean &cdisable"
4025
4026 if arg 1 is "NoEnchant":
4027 if {noenchant} is not set:
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 false:
4033 play "CLICK" to player
4034 set {noenchant} to true
4035 add arg-1 to {gamemodes::*}
4036 send "{@Prefix} &aNoEnchant &aenable"
4037 else if {noenchant} is true:
4038 play "CLICK" to player
4039 set {noenchant} to false
4040 remove arg-1 from {gamemodes::*}
4041 send "{@Prefix} &cNoEnchant &cdisable"
4042
4043 if arg 1 is "NoFallDamage":
4044 if {nofalldamage} is not set:
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 false:
4050 play "CLICK" to player
4051 set {nofalldamage} to true
4052 add arg-1 to {gamemodes::*}
4053 send "{@Prefix} &aNoFallDamage &aenable"
4054 else if {nofalldamage} is true:
4055 play "CLICK" to player
4056 set {nofalldamage} to false
4057 remove arg-1 from {gamemodes::*}
4058 send "{@Prefix} &cNoFallDamage &cdisable"
4059
4060 if arg 1 is "OreFrenzy":
4061 if {orefrenzy} is not set:
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 false:
4067 play "CLICK" to player
4068 set {orefrenzy} to true
4069 add arg-1 to {gamemodes::*}
4070 send "{@Prefix} &aOreFrenzy &aenable"
4071 else if {orefrenzy} is true:
4072 play "CLICK" to player
4073 set {orefrenzy} to false
4074 remove arg-1 from {gamemodes::*}
4075 send "{@Prefix} &cOreFrenzy &cdisable"
4076
4077 if arg 1 is "RodLess":
4078 if {rodless} is not set:
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 false:
4084 play "CLICK" to player
4085 set {rodless} to true
4086 add arg-1 to {gamemodes::*}
4087 send "{@Prefix} &aRodLess &aenable"
4088 else if {rodless} is true:
4089 play "CLICK" to player
4090 set {rodless} to false
4091 remove arg-1 from {gamemodes::*}
4092 send "{@Prefix} &cRodLess &cdisable"
4093
4094 if arg 1 is "Soup":
4095 if {soup} is not set:
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 false:
4101 play "CLICK" to player
4102 set {soup} to true
4103 add arg-1 to {gamemodes::*}
4104 send "{@Prefix} &aSoup &aenable"
4105 else if {soup} is true:
4106 play "CLICK" to player
4107 set {soup} to false
4108 remove arg-1 from {gamemodes::*}
4109 send "{@Prefix} &cSoup &cdisable"
4110
4111 if arg 1 is "TimeBomb":
4112 if {timebomb} is not set:
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 false:
4118 play "CLICK" to player
4119 set {timebomb} to true
4120 add arg-1 to {gamemodes::*}
4121 send "{@Prefix} &aTimeBomb &aenable"
4122 else if {timebomb} is true:
4123 play "CLICK" to player
4124 set {timebomb} to false
4125 remove arg-1 from {gamemodes::*}
4126 send "{@Prefix} &cTimeBomb &cdisable"
4127
4128 if arg 1 is "backpack":
4129 if {backpack} is not set:
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 false:
4135 play "CLICK" to player
4136 set {backpack} to true
4137 add arg-1 to {gamemodes::*}
4138 send "{@Prefix} &aBackpack &aenable"
4139 else if {backpack} is true:
4140 play "CLICK" to player
4141 set {backpack} to false
4142 send "{@Prefix} &cBackpack &cdisable"
4143 remove arg-1 from {gamemodes::*}
4144
4145 if arg 1 is "horseless":
4146 if {horseless} is not set:
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 false:
4152 play "CLICK" to player
4153 set {horseless} to true
4154 add arg-1 to {gamemodes::*}
4155 send "{@Prefix} &aHorseless &aenable"
4156 else if {horseless} is true:
4157 play "CLICK" to player
4158 set {horseless} to false
4159 remove arg-1 from {gamemodes::*}
4160 send "{@Prefix} &cHorseless &cdisable"
4161
4162 if arg 1 is "timber":
4163 if {timber} is not set:
4164 play "CLICK" to player
4165 set {timber} to true
4166 add arg-1 to {gamemodes::*}
4167 set {timber} to true
4168 send "{@Prefix} &aTimber &aenable"
4169 else if {timber} is false:
4170 play "CLICK" to player
4171 set {timber} to true
4172 add arg-1 to {gamemodes::*}
4173 send "{@Prefix} &aTimber &aenable"
4174 else if {timber} is true:
4175 play "CLICK" to player
4176 set {timber} to false
4177 send "{@Prefix} &cTimber &cdisable"
4178 remove arg-1 from {gamemodes::*}
4179
4180 if arg 1 is "TripleOres":
4181 if {tripleores} is not set:
4182 play "CLICK" to player
4183 set {tripleores} to true
4184 set {doubleores} to false
4185 add arg-1 to {gamemodes::*}
4186 remove "DoubleOres" from {gamemodes::*}
4187 send "{@Prefix} &aTripleOres &aenable"
4188 else if {tripleores} is false:
4189 play "CLICK" to player
4190 set {tripleores} to true
4191 set {doubleores} to false
4192 add arg-1 to {gamemodes::*}
4193 remove "DoubleOres" from {gamemodes::*}
4194 send "{@Prefix} &aTripleOres &aenable"
4195 else if {tripleores} is true:
4196 play "CLICK" to player
4197 set {tripleores} to false
4198 remove arg-1 from {gamemodes::*}
4199 send "{@Prefix} &cTripleOres &cdisable"
4200
4201 if arg 1 is "Vanilla+":
4202 if {vanillaplus} is not set:
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 false:
4208 play "CLICK" to player
4209 set {vanillaplus} to true
4210 add arg-1 to {gamemodes::*}
4211 send "{@Prefix} &aVanilla+ &aenable"
4212 else if {vanillaplus} is true:
4213 play "CLICK" to player
4214 set {vanillaplus} to false
4215 remove arg-1 from {gamemodes::*}
4216 send "{@Prefix} &cVanilla+ &cdisable"
4217
4218 if arg 1 is "WebCage":
4219 if {webcage} is not set:
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 false:
4225 play "CLICK" to player
4226 set {webcage} to true
4227 add arg-1 to {gamemodes::*}
4228 send "{@Prefix} &aWebCage &aenable"
4229 else if {webcage} is true:
4230 play "CLICK" to player
4231 set {webcage} to false
4232 remove arg-1 from {gamemodes::*}
4233 send "{@Prefix} &cWebCage &cdisable"
4234
4235 if arg 1 is "Vanilla":
4236 if {vanilla} is set:
4237 play "CLICK" to player
4238 delete {gamemodes::*}
4239 set {absorptionless} to false
4240 set {barebones} to false
4241 set {blockedp} to false
4242 set {blooddiamond} to false
4243 set {bloodenchant} to false
4244 set {bloodgold} to false
4245 set {bloodlapis} to false
4246 set {bowless} to false
4247 set {timber} to false
4248 set {coalless} to false
4249 set {coldweapons} to false
4250 set {cutclean} to false
4251 set {diamondless} to false
4252 set {doubleores} to false
4253 set {fireless} to false
4254 set {goldenhead} to false
4255 set {goldless} to false
4256 set {horseless} to false
4257 set {ironless} to false
4258 set {longshots} to false
4259 set {luckyflowers} to false
4260 set {luckyleaves} to false
4261 set {NoClean} to false
4262 set {noenchant} to false
4263 set {nofalldamage} to false
4264 set {orefrenzy} to false
4265 set {rodless} to false
4266 set {soup} to false
4267 set {timebomb} to false
4268 set {tripleores} to false
4269 set {vanillaplus} to false
4270 set {webcage} to false
4271 send "{@Prefix} &cAll scenarios desactivated"
4272
4273
4274
4275on death:
4276 if {barebones} is true:
4277 if victim is a player:
4278 {started} is true
4279 drop 1 diamond at location of victim
4280 drop 1 golden apple at location of victim
4281 drop 32 arrow at location of victim
4282 drop 2 string at location of victim
4283 if {bowless} is true:
4284 if victim is a skeleton:
4285 clear drops
4286 if {cutclean} is true:
4287 if victim is a pig:
4288 clear drops
4289 drop 1 cooked porkchop at location of victim
4290 if victim is a sheep:
4291 clear drops
4292 drop 1 cooked porkchop at location of victim
4293 drop 1 string at location of victim
4294 if victim is a cow:
4295 clear drops
4296 drop 1 cooked beef at location of victim
4297 drop 1 leather at location of victim
4298 if victim is a mooshroom:
4299 clear drops
4300 drop 1 cooked beef at location of victim
4301 drop 1 leather at location of victim
4302 if victim is a rabbit:
4303 clear drops
4304 drop 1 cooked beef at location of victim
4305 if victim is a chicken:
4306 clear drops
4307 drop 1 feather at location of victim
4308 drop 1 cooked chicken at location of victim
4309 if {diamondless} is true:
4310 if victim is a player:
4311 {started} is true
4312 drop 1 diamond at location of victim
4313 if {goldless} is true:
4314 if victim is a player:
4315 {started} is true
4316 give golden apple to attacker
4317 drop 16 gold ingot at location of victim
4318 if {ironless} is true:
4319 if victim is a player:
4320 {started} is true
4321 drop 8 iron ingot at location of victim
4322 if {NoClean} is true:
4323 if victim is a player:
4324 {started} is true
4325 apply regeneration 2 to the attacker for 10 seconds
4326 apply resistance 100 to the attacker for 3 seconds
4327 set {NoClean.%attacker%.cooldown} to true
4328 wait {@Cooldown-NoClean} seconds
4329 {NoClean.%attacker%.cooldown} is true
4330 send "&cYou lost the invencibility!" to attacker
4331 set {NoClean.%attacker%.cooldown} to false
4332
4333on death of player:
4334 if {timebomb} is true:
4335 {started} is true
4336 clear drops
4337 set block at location of victim to chest
4338 set block west of block at location of victim to chest
4339 set {deathchest::%block at location of victim%} to victim
4340 set {_deathchest} to block at location of victim
4341 add inventory of victim to {_deathchest}
4342 add helmet of victim to {_deathchest}
4343 add chestplate of victim to {_deathchest}
4344 add leggings of victim to {_deathchest}
4345 add boots of victim to {_deathchest}
4346 if {goldenhead} is true:
4347 add 1 golden apple named "{@goldenhead}" to {_deathchest}
4348 if {barebones} is true:
4349 add 1 diamond to {_deathchest}
4350 add 1 golden apple to {_deathchest}
4351 add 32 arrow to {_deathchest}
4352 add 2 string to {_deathchest}
4353 if {coalless} is true:
4354 add 2 coal to {_deathchest}
4355 if {diamondless} is true:
4356 add 1 diamond to {_deathchest}
4357 if {goldless} is true:
4358 add 1 golden apple named "{@goldenhead}" to {_deathchest}
4359 add 16 gold ingot to {_deathchest}
4360 if {ironless} is true:
4361 add 8 iron ingot to {_deathchest}
4362 wait 30 seconds
4363 broadcast "{@timebomb}"
4364 set block at location of victim to air
4365 set block west of block at location of victim to air
4366 create an explosion of force 4.5 at {_deathchest}
4367 create a safe explosion of force 4.5 at {_deathchest}
4368 strike lightning effect at {_deathchest}
4369 clear dropped items
4370 if {timebomb} is false:
4371 {goldenhead} is true
4372 {started} is true
4373 {spect::%victim%} is not set
4374 {staffmode::%victim%} is not set
4375 {ingame::%victim%} is true
4376 drop 1 player head named "{@HeadName}" at victim
4377
4378on damage of player:
4379 if {longshots} is true:
4380 damage was caused by projectile
4381 set {_longshot} to the distance between the attacker and victim
4382 if {_longshot} is greater than 45:
4383 broadcast "&a%attacker% &epierced to &c%victim% &ewith an arrow from &6%{_longshot}% &eblocks!"
4384 add 1 to attacker's health
4385 damage attacker by 0.5 hearts
4386 if {NoClean} is true:
4387 if {NoClean.%victim%.cooldown} is true:
4388 cancel event
4389 if {NoClean.%attacker%.cooldown} is true:
4390 set {NoClean.%attacker%.cooldown} to false
4391 send "&cYou lost the invencibility!" to attacker
4392 stop
4393
4394on damage:
4395 if {started} is true:
4396 {fireless} is true
4397 if victim is a player:
4398 damage is caused by burning or lava or fire
4399 cancel event
4400 if {started} is false:
4401 if victim is a player:
4402 damage is caused by fall
4403 cancel event
4404 if {started} is true:
4405 {nofalldamage} is true
4406 if victim is a player:
4407 damage is caused by fall
4408 cancel event
4409 if {staffmode::%attacker%} is true:
4410 cancel event
4411 if {staffmode::%victim%} is true:
4412 cancel event
4413 if {frozen::%victim%} is true:
4414 cancel event
4415 if {frozen::%attacker%} is true:
4416 cancel event
4417 if {spect::%attacker%} is true:
4418 cancel event
4419 if {spect::%victim%} is true:
4420 cancel event
4421 if {started} is true:
4422 set {combatlog::%attacker%} to true
4423 set {combatlog::%victim%} to true
4424 wait 30 seconds
4425 delete {combatlog::%attacker%}
4426 delete {combatlog::%victim%}
4427 if {Scatter.Scattering::%victim%} is set:
4428 cancel event
4429
4430on craft of golden apple:
4431 if {barebones} is true:
4432 cancel event
4433on craft of enchantment table:
4434 if {barebones} is true:
4435 cancel event
4436on craft of anvil:
4437 if {barebones} is true:
4438 cancel event
4439on craft of bow:
4440 if {bowless} is true:
4441 cancel event
4442on craft of fishing rod:
4443 if {rodless} is true:
4444 cancel event
4445on enchant:
4446 if {bloodenchant} is true:
4447 damage player by 0.5 hearts
4448 if {noenchant} is true:
4449 cancel event
4450
4451on damage of a player:
4452 if {coldweapons} is true:
4453 attacker is a player:
4454 wait 1 tick
4455 extinguish victim
4456
4457on break of coal ore:
4458 if {coalless} is true:
4459 cancel event
4460 set block to air
4461 stop
4462
4463on break of iron ore:
4464 if {ironless} is true:
4465 cancel event
4466 set block to air
4467 stop
4468
4469on break of gold ore:
4470 if {goldless} is true:
4471 cancel event
4472 set block to air
4473 stop
4474
4475on break of leaves:
4476 if {vanillaplus} is true:
4477 chance of 100%
4478 drop apple
4479 if {luckyleaves} is true:
4480 chance of 0.3%
4481 drop golden apple
4482
4483on break of gravel:
4484 if {vanillaplus} is true:
4485 chance of 100%
4486 drop flint
4487
4488on leaves decay:
4489 if {vanillaplus} is true:
4490 chance of 100%
4491 drop apple
4492
4493on mine of coal ore:
4494 if {coalless} is true:
4495 cancel event
4496 set block to air
4497 stop
4498 if {cutclean} is true:
4499 set block to air
4500 drop 3 torch
4501 drop 5 experience
4502 cancel event
4503
4504on mine of iron ore:
4505 if {barebones} is false:
4506 if {cutclean} is false:
4507 if {doubleores} is true:
4508 set {tripleores} to false
4509 set block to air
4510 give 2 iron ore to player
4511 cancel event
4512 if {tripleores} is true:
4513 set {doubleores} to false
4514 set block to air
4515 drop 3 iron ore
4516 cancel event
4517 if {barebones} is true:
4518 set block to air
4519 give 1 iron ingot to player
4520 cancel event
4521 if {doubleores} is true:
4522 set block to air
4523 give 2 iron ingot to player
4524 cancel event
4525 if {tripleores} is true:
4526 set block to air
4527 give 3 iron ingot to player
4528 cancel event
4529 if {cutclean} is true:
4530 set block to air
4531 give 1 iron ingot to player
4532 drop 6 experience
4533 cancel event
4534 if {doubleores} is true:
4535 set block to air
4536 give 1 iron ingot to player
4537 drop 6 experience
4538 cancel event
4539 if {tripleores} is true:
4540 set block to air
4541 give 2 iron ingot to player
4542 drop 6 experience
4543 cancel event
4544 if {ironless} is true:
4545 cancel event
4546 set block to air
4547 stop
4548
4549on mine of diamond ore:
4550 if {barebones} is false:
4551 if {cutclean} is false:
4552 if {doubleores} is true:
4553 set {tripleores} to false
4554 set block to air
4555 give 2 diamond to player
4556 drop 1 experience
4557 cancel event
4558 if {tripleores} is true:
4559 set {doubleores} to false
4560 set block to air
4561 give 3 diamond to player
4562 drop 1 experience
4563 cancel event
4564 if {barebones} is true:
4565 set block to air
4566 give 1 iron ingot to player
4567 cancel event
4568 if {doubleores} is true:
4569 set block to air
4570 give 2 iron ingot to player
4571 cancel event
4572 if {tripleores} is true:
4573 set block to air
4574 give 3 iron ingot to player
4575 cancel event
4576 if {blooddiamond} is true:
4577 damage player by 0.5 hearts
4578 if {cutclean} is true:
4579 set block to air
4580 give 1 diamond to player
4581 drop 6 experience
4582 cancel event
4583 if {doubleores} is true:
4584 set block to air
4585 give 1 diamond to player
4586 drop 6 experience
4587 cancel event
4588 if {tripleores} is true:
4589 set block to air
4590 give 2 diamond to player
4591 drop 6 experience
4592 cancel event
4593 if {diamondless} is true:
4594 cancel event
4595 set block to air
4596 stop
4597 if {orefrenzy} is true:
4598 set block to air
4599 give 1 diamond to player
4600 drop 4 experience bottle
4601 drop 1 experience
4602 cancel event
4603
4604on mine of gold ore:
4605 if {barebones} is false:
4606 if {cutclean} is false:
4607 if {doubleores} is true:
4608 set {tripleores} to false
4609 set block to air
4610 give 2 gold ore to player
4611 cancel event
4612 if {tripleores} is true:
4613 set {doubleores} to false
4614 set block to air
4615 give 3 gold ore to player
4616 cancel event
4617 if {barebones} is true:
4618 set block to air
4619 give 1 iron ingot to player
4620 cancel event
4621 if {doubleores} is true:
4622 set block to air
4623 give 2 iron ingot to player
4624 cancel event
4625 if {tripleores} is true:
4626 set block to air
4627 give 3 iron ingot to player
4628 cancel event
4629 if {cutclean} is true:
4630 set block to air
4631 give 1 gold ingot to player
4632 drop 1 experience
4633 cancel event
4634 if {doubleores} is true:
4635 set block to air
4636 give 1 gold ingot to player
4637 drop 1 experience
4638 cancel event
4639 if {tripleores} is true:
4640 set block to air
4641 give 2 gold ingot to player
4642 drop 1 experience
4643 cancel event
4644 if {goldless} is true:
4645 cancel event
4646 if {bloodgold} is true:
4647 damage player by 0.5 hearts
4648
4649on mine of lapis ore:
4650 if {barebones} is true:
4651 set block to air
4652 give 1 iron ingot to player
4653 cancel event
4654 if {doubleores} is true:
4655 set block to air
4656 give 2 iron ingot to player
4657 cancel event
4658 if {tripleores} is true:
4659 set block to air
4660 give 3 iron ingot to player
4661 cancel event
4662 if {orefrenzy} is true:
4663 set block to air
4664 drop 1 splash potion of health
4665 drop 4 experience
4666 cancel event
4667 if {bloodlapis} is true:
4668 damage player by 1.0 hearts
4669
4670on mine of redstone ore:
4671 if {barebones} is true:
4672 set block to air
4673 give 1 iron ingot to player
4674 cancel event
4675 if {doubleores} is true:
4676 set block to air
4677 give 1 iron ingot to player
4678 cancel event
4679 if {tripleores} is true:
4680 set block to air
4681 give 3 iron ingot to player
4682 cancel event
4683 if {cutclean} is true:
4684 set block to air
4685 give 1 redstone to player
4686 drop 6 experience
4687 cancel event
4688 if {doubleores} is true:
4689 set block to air
4690 give 1 redstone to player
4691 drop 6 experience
4692 cancel event
4693 if {tripleores} is true:
4694 set block to air
4695 give 2 redstone to player
4696 drop 6 experience
4697 cancel event
4698 if {orefrenzy} is true:
4699 set block to air
4700 drop 1 book
4701 drop 6 experience
4702 cancel event
4703
4704on mine of emerald ore:
4705 if {doubleores} is true:
4706 set block to air
4707 give 2 emerald to player
4708 drop 1 experience
4709 cancel event
4710 if {tripleores} is true:
4711 set block to air
4712 give 3 emerald to player
4713 drop 1 experience
4714 cancel event
4715 if {barebones} is true:
4716 set block to air
4717 give 1 iron ingot to player
4718 cancel event
4719 if {doubleores} is true:
4720 set block to air
4721 give 2 iron ingot to player
4722 cancel event
4723 if {tripleores} is true:
4724 set block to air
4725 give 3 iron ingot to player
4726 cancel event
4727 if {cutclean} is true:
4728 set block to air
4729 give 1 emerald to player
4730 drop 6 experience
4731 cancel event
4732 if {doubleores} is true:
4733 set block to air
4734 give 1 emerald to player
4735 drop 6 experience
4736 cancel event
4737 if {tripleores} is true:
4738 set block to air
4739 give 2 emerald to player
4740 drop 6 experience
4741 cancel event
4742 if {orefrenzy} is true:
4743 set block to air
4744 drop 32 arrow
4745 drop 6 experience
4746 cancel event
4747
4748on mine of quartz ore:
4749 if {barebones} is true:
4750 set block to air
4751 give 1 iron ingot to player
4752 cancel event
4753 if {doubleores} is true:
4754 set block to air
4755 give 2 iron ingot to player
4756 cancel event
4757 if {tripleores} is true:
4758 set block to air
4759 give 3 iron ingot to player
4760 cancel event
4761 if {orefrenzy} is true:
4762 set block to air
4763 drop 1 tnt
4764 drop 5 experience
4765 cancel event
4766
4767on item spawning of all flowers:
4768 if {luckyflowers} is true:
4769 cancel the event
4770 set {items.random} to random number between 0 and 100
4771 if {items.random} is less than or equal to {@LuckyFlowers-Percentage}:
4772 drop (random number between 1 and 2) of random item out of all items
4773
4774on mine:
4775 if {blockedp} is true:
4776 if {blockedplaced.%player%::%event-block%} is true:
4777 cancel event
4778on place:
4779 if {blockedp} is true:
4780 set {blockedplaced.%player%::%event-block%} to true
4781
4782on rightclick on horse:
4783 if {horseless} is true:
4784 cancel event
4785
4786on rightclick on donkey:
4787 if {horseless} is true:
4788 cancel event
4789
4790on rightclick holding a mushroom soup:
4791 if {soup} is true:
4792 if player's health = 10:
4793 cancel event
4794 else if player's health < 10:
4795 remove 1 mushroom soup from the player's tool
4796 set the player's tool to bowl
4797 heal player by 2
4798 stop
4799
4800
4801on load:
4802 loop all players:
4803 clear loop-player's ender chest
4804 delete {gamemodes::*}
4805 set {absorptionless} to false
4806 set {barebones} to false
4807 set {blockedp} to false
4808 set {builduhc} to false
4809 set {rush} to false
4810 set {blooddiamond} to false
4811 set {bloodenchant} to false
4812 set {bloodgold} to false
4813 set {bloodlapis} to false
4814 set {bowless} to false
4815 set {timber} to false
4816 set {coalless} to false
4817 set {cutclean} to false
4818 set {coldweapons} to false
4819 set {diamondless} to false
4820 set {doubleores} to false
4821 set {fireless} to false
4822 set {goldenhead} to false
4823 set {goldless} to false
4824 set {horseless} to false
4825 set {backpack} to false
4826 set {ironless} to false
4827 set {longshots} to false
4828 set {luckyflowers} to false
4829 set {luckyleaves} to false
4830 set {NoClean} to false
4831 set {noenchant} to false
4832 set {nofalldamage} to false
4833 set {orefrenzy} to false
4834 set {rodless} to false
4835 set {timebomb} to false
4836 set {tripleores} to false
4837 set {soup} to false
4838 set {vanillaplus} to false
4839 set {webcage} to false
4840
4841command /scenarios [<text>] [<text>]:
4842 trigger:
4843 if arg 1 is not set:
4844 if arg 2 is not set:
4845 play "CLICK" to player
4846 wait 3 ticks
4847 open chest with 3 rows named "&c" to player
4848 if size of {gamemodes::*} <= 0:
4849 format slot 13 of player with grass named "&eNo active scenarios." to be unstealable
4850 else:
4851 set {_gmslot} to 0
4852 if {absorptionless} is true:
4853 format slot {_gmslot} of player with golden apple named "&eAbsortionLess" to be unstealable
4854 add 1 to {_gmslot}
4855 if {backpack} is true:
4856 format slot {_gmslot} of player with chest named "&eBackPacks" to be unstealable
4857 add 1 to {_gmslot}
4858 if {barebones} is true:
4859 format slot {_gmslot} of player with gold ore named "&eBareBones" to be unstealable
4860 add 1 to {_gmslot}
4861 if {blockedp} is true:
4862 format slot {_gmslot} of player with diamond pickaxe named "&eBlocked" to be unstealable
4863 add 1 to {_gmslot}
4864 if {blooddiamond} is true:
4865 format slot {_gmslot} of player with diamond ore named "&eBloodDiamond" to be unstealable
4866 add 1 to {_gmslot}
4867 if {bloodenchant} is true:
4868 format slot {_gmslot} of player with enchantment table named "&eBloodEnchat" to be unstealable
4869 add 1 to {_gmslot}
4870 if {bloodgold} is true:
4871 format slot {_gmslot} of player with gold ore named "&eBloodGold" to be unstealable
4872 add 1 to {_gmslot}
4873 if {bloodlapis} is true:
4874 format slot {_gmslot} of player with lapis named "&eBloodLapis" to be unstealable
4875 add 1 to {_gmslot}
4876 if {bowless} is true:
4877 format slot {_gmslot} of player with bow named "&eBowLess" to be unstealable
4878 add 1 to {_gmslot}
4879 if {coalless} is true:
4880 format slot {_gmslot} of player with coal named "&eCoalLess" to be unstealable
4881 add 1 to {_gmslot}
4882 if {coldweapons} is true:
4883 format slot {_gmslot} of player with flint and steel named "&eColdWeapons" to be unstealable
4884 add 1 to {_gmslot}
4885 if {cutclean} is true:
4886 format slot {_gmslot} of player with ("61" parsed as item) named "&eCutClean" to be unstealable
4887 add 1 to {_gmslot}
4888 if {diamondless} is true:
4889 format slot {_gmslot} of player with diamond named "&eDiamondLess" to be unstealable
4890 add 1 to {_gmslot}
4891 if {doubleores} is true:
4892 format slot {_gmslot} of player with hopper named "&eDoubleOres" to be unstealable
4893 add 1 to {_gmslot}
4894 if {fireless} is true:
4895 format slot {_gmslot} of player with blaze powder named "&eFireLess" to be unstealable
4896 add 1 to {_gmslot}
4897 if {goldenhead} is true:
4898 format slot {_gmslot} of player with skull of player named "&eGoldenHead" to be unstealable
4899 add 1 to {_gmslot}
4900 if {goldless} is true:
4901 format slot {_gmslot} of player with gold ingot named "&eGoldLessG" to be unstealable
4902 add 1 to {_gmslot}
4903 if {horseless} is true:
4904 format slot {_gmslot} of player with saddle named "&eHorseLess" to be unstealable
4905 add 1 to {_gmslot}
4906 if {ironless} is true:
4907 format slot {_gmslot} of player with iron ore named "&eIronLess" to be unstealable
4908 add 1 to {_gmslot}
4909 if {longshots} is true:
4910 format slot {_gmslot} of player with arrow named "&eLongShots" to be unstealable
4911 add 1 to {_gmslot}
4912 if {luckyflowers} is true:
4913 format slot {_gmslot} of player with ("38" parsed as item) named "&eLuckyFlowers" to be unstealable
4914 add 1 to {_gmslot}
4915 if {luckyleaves} is true:
4916 format slot {_gmslot} of player with ("18" parsed as item) named "&eLuckyLeaves" to be unstealable
4917 add 1 to {_gmslot}
4918 if {NoClean} is true:
4919 format slot {_gmslot} of player with potion:16421 named "&eNoClean" to be unstealable
4920 add 1 to {_gmslot}
4921 if {noenchant} is true:
4922 format slot {_gmslot} of player with bookshelf named "&eNoEnchant" to be unstealable
4923 add 1 to {_gmslot}
4924 if {nofalldamage} is true:
4925 format slot {_gmslot} of player with water bucket named "&eNoFallDamage" to be unstealable
4926 add 1 to {_gmslot}
4927 if {orefrenzy} is true:
4928 format slot {_gmslot} of player with iron pickaxe named "&eOreFrenzy" to be unstealable
4929 add 1 to {_gmslot}
4930 if {rodless} is true:
4931 format slot {_gmslot} of player with fishing rod named "&eRodLess" to be unstealable
4932 add 1 to {_gmslot}
4933 if {soup} is true:
4934 format slot {_gmslot} of player with mushroom stew named "&eSoup" to be unstealable
4935 add 1 to {_gmslot}
4936 if {timebomb} is true:
4937 format slot {_gmslot} of player with tnt named "&eTimeBomb" to be unstealable
4938 add 1 to {_gmslot}
4939 if {tripleores} is true:
4940 format slot {_gmslot} of player with diamond block named "&eTripleOres" to be unstealable
4941 add 1 to {_gmslot}
4942 if {vanillaplus} is true:
4943 format slot {_gmslot} of player with grass named "&eVanilla+" to be unstealable
4944 add 1 to {_gmslot}
4945 if {webcage} is true:
4946 format slot {_gmslot} of player with cobweb named "&eWebCage" to be unstealable
4947 add 1 to {_gmslot}
4948 if {timber} is true:
4949 format slot {_gmslot} of player with log named "&eTimber" to be unstealable
4950 add 1 to {_gmslot}
4951 if {builduhc} is true:
4952 format slot {_gmslot} of player with lava bucket named "&eBuildUHC" to be unstealable
4953 add 1 to {_gmslot}
4954 if {rush} is true:
4955 format slot {_gmslot} of player with iron axe named "&eRush" to be unstealable
4956 add 1 to {_gmslot}
4957
4958command /explain [<text>] [<text>]:
4959 trigger:
4960 if arg 1 is not set:
4961 if arg 2 is not set:
4962 play "CLICK" to player
4963 wait 3 ticks
4964 open chest with 3 rows named "&c" to player
4965 if size of {gamemodes::*} <= 0:
4966 format slot 13 of player with grass named "&eNo active scenarios." to be unstealable
4967 else:
4968 set {_gmslot} to 0
4969 if {absorptionless} is true:
4970 format slot {_gmslot} of player with golden apple named "&eAbsortionLess" to be unstealable
4971 add 1 to {_gmslot}
4972 if {backpack} is true:
4973 format slot {_gmslot} of player with chest named "&eBackPacks" to be unstealable
4974 add 1 to {_gmslot}
4975 if {barebones} is true:
4976 format slot {_gmslot} of player with gold ore named "&eBareBones" to be unstealable
4977 add 1 to {_gmslot}
4978 if {blockedp} is true:
4979 format slot {_gmslot} of player with diamond pickaxe named "&eBlocked" to be unstealable
4980 add 1 to {_gmslot}
4981 if {blooddiamond} is true:
4982 format slot {_gmslot} of player with diamond ore named "&eBloodDiamond" to be unstealable
4983 add 1 to {_gmslot}
4984 if {bloodenchant} is true:
4985 format slot {_gmslot} of player with enchantment table named "&eBloodEnchat" to be unstealable
4986 add 1 to {_gmslot}
4987 if {bloodgold} is true:
4988 format slot {_gmslot} of player with gold ore named "&eBloodGold" to be unstealable
4989 add 1 to {_gmslot}
4990 if {bloodlapis} is true:
4991 format slot {_gmslot} of player with lapis named "&eBloodLapis" to be unstealable
4992 add 1 to {_gmslot}
4993 if {bowless} is true:
4994 format slot {_gmslot} of player with bow named "&eBowLess" to be unstealable
4995 add 1 to {_gmslot}
4996 if {coalless} is true:
4997 format slot {_gmslot} of player with coal named "&eCoalLess" to be unstealable
4998 add 1 to {_gmslot}
4999 if {coldweapons} is true:
5000 format slot {_gmslot} of player with flint and steel named "&eColdWeapons" to be unstealable
5001 add 1 to {_gmslot}
5002 if {cutclean} is true:
5003 format slot {_gmslot} of player with ("61" parsed as item) named "&eCutClean" to be unstealable
5004 add 1 to {_gmslot}
5005 if {diamondless} is true:
5006 format slot {_gmslot} of player with diamond named "&eDiamondLess" to be unstealable
5007 add 1 to {_gmslot}
5008 if {doubleores} is true:
5009 format slot {_gmslot} of player with hopper named "&eDoubleOres" to be unstealable
5010 add 1 to {_gmslot}
5011 if {fireless} is true:
5012 format slot {_gmslot} of player with blaze powder named "&eFireLess" to be unstealable
5013 add 1 to {_gmslot}
5014 if {goldenhead} is true:
5015 format slot {_gmslot} of player with skull of player named "&eGoldenHead" to be unstealable
5016 add 1 to {_gmslot}
5017 if {goldless} is true:
5018 format slot {_gmslot} of player with gold ingot named "&eGoldLess" to be unstealable
5019 add 1 to {_gmslot}
5020 if {horseless} is true:
5021 format slot {_gmslot} of player with saddle named "&eHorseLess" to be unstealable
5022 add 1 to {_gmslot}
5023 if {ironless} is true:
5024 format slot {_gmslot} of player with iron ore named "&eIronLess" to be unstealable
5025 add 1 to {_gmslot}
5026 if {longshots} is true:
5027 format slot {_gmslot} of player with arrow named "&eLongShots" to be unstealable
5028 add 1 to {_gmslot}
5029 if {luckyflowers} is true:
5030 format slot {_gmslot} of player with ("38" parsed as item) named "&eLuckyFlowers" to be unstealable
5031 add 1 to {_gmslot}
5032 if {luckyleaves} is true:
5033 format slot {_gmslot} of player with ("18" parsed as item) named "&eLuckyLeaves" to be unstealable
5034 add 1 to {_gmslot}
5035 if {NoClean} is true:
5036 format slot {_gmslot} of player with potion:16421 named "&eNoClean" to be unstealable
5037 add 1 to {_gmslot}
5038 if {noenchant} is true:
5039 format slot {_gmslot} of player with bookshelf named "&eNoEnchant" to be unstealable
5040 add 1 to {_gmslot}
5041 if {nofalldamage} is true:
5042 format slot {_gmslot} of player with water bucket named "&eNoFallDamage" to be unstealable
5043 add 1 to {_gmslot}
5044 if {orefrenzy} is true:
5045 format slot {_gmslot} of player with iron pickaxe named "&eOreFrenzy" to be unstealable
5046 add 1 to {_gmslot}
5047 if {rodless} is true:
5048 format slot {_gmslot} of player with fishing rod named "&eRodLess" to be unstealable
5049 add 1 to {_gmslot}
5050 if {soup} is true:
5051 format slot {_gmslot} of player with mushroom stew named "&eSoup" to be unstealable
5052 add 1 to {_gmslot}
5053 if {timebomb} is true:
5054 format slot {_gmslot} of player with tnt named "&eTimeBomb" to be unstealable
5055 add 1 to {_gmslot}
5056 if {tripleores} is true:
5057 format slot {_gmslot} of player with diamond block named "&eTripleOres" to be unstealable
5058 add 1 to {_gmslot}
5059 if {vanillaplus} is true:
5060 format slot {_gmslot} of player with grass named "&eVanilla+" to be unstealable
5061 add 1 to {_gmslot}
5062 if {webcage} is true:
5063 format slot {_gmslot} of player with cobweb named "&eWebCage" to be unstealable
5064 add 1 to {_gmslot}
5065 if {timber} is true:
5066 format slot {_gmslot} of player with log named "&eTimber" to be unstealable
5067 add 1 to {_gmslot}
5068 if {builduhc} is true:
5069 format slot {_gmslot} of player with lava bucket named "&eBuildUHC" to be unstealable
5070 add 1 to {_gmslot}
5071 if {rush} is true:
5072 format slot {_gmslot} of player with iron axe named "&eRush" to be unstealable
5073 add 1 to {_gmslot}
5074
5075on death of player:
5076 {started} is true
5077 {webcage} is true
5078 set {_loc} to location of player
5079 loop blocks in radius 10 around {_loc}:
5080 set {_distance} to rounded down distance between {_loc} and loop-block
5081 {_distance} is 4
5082 loop-block is air
5083 set block at loop-block to cobweb
5084
5085command /invsee [<player>]:
5086 permission: uhc.admin
5087 trigger:
5088 arg 1 is set
5089 open chest with 6 rows named "&b&n%arg-1%" for player
5090 wait 1 tick
5091 set {viewiv.da.%player%} to true
5092 add player to {invsee::*}
5093 add arg-1 to {inventoryseeing::*}
5094 delete {inv::%argument-1%::*}
5095 loop all items in argument-1's inventory:
5096 add loop-item to {inv::%argument-1%::*}
5097 loop 36 times:
5098 set slot (loop-number - 1) of player's current inventory to {inv::%argument-1%::%loop-number%}
5099 loop integers from 36 to 44:
5100 format slot loop-integer of player with black stained glass pane named " " to be unstealable
5101 if helmet slot of arg-player is not air:
5102 format slot 47 of player with helmet slot of arg-player to be unstealable
5103 else:
5104 format slot 47 of player with glass pane named "&aHelmet" to be unstealable
5105 if chestplate slot of arg-player is not air:
5106 format slot 48 of player with chestplate slot of arg-player to be unstealable
5107 else:
5108 format slot 48 of player with glass pane named "&aChestplate" to be unstealable
5109 if legging slot of arg-player is not air:
5110 format slot 50 of player with legging slot of arg-player to be unstealable
5111 else:
5112 format slot 50 of player with glass pane named "&aLeggings" to be unstealable
5113 if boots slot of arg-player is not air:
5114 format slot 51 of player with boots slot of arg-player to be unstealable
5115 else:
5116 format slot 51 of player with glass pane named "&aBoots" to be unstealable
5117 loop integers from 45 to 46:
5118 format slot loop-integer of player with black stained glass pane named " " to be unstealable
5119 format slot 52 of player with black stained glass pane named " " to be unstealable
5120 set {_food} to argument-1's food level
5121 set {_exp} to level of argument-1
5122 set {_location} to argument-1's location
5123 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
5124
5125on inventory click:
5126 {viewiv.da.%player%} is true
5127 cancel event
5128
5129on inventory close:
5130 {viewiv.da.%player%} is true
5131 set {viewiv.da.%player%} to false