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