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