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