· 9 years ago · Dec 09, 2016, 05:06 PM
1options:
2 logo: &e&lWorld&a&lUHC
3 scoreboard: UHC
4 heal: 10 #La Vie du joueur dans le tab a regler 1 = 10 coeurs/2=20 demi coeurs/10 = 100%
5 command: uhc
6 border: 1000
7 cutclean: &7[&6Scenarios&7]
8 bot: &7[&eEventXientas&7]
9 rulesportail: Off
10 rulesghead: 4Hearth
11 Force: 10
12 Time: 30
13
14variables:
15 {cutclean}=false
16 {barebones}=false
17 {ccbb}=false
18 {arrowb}=false
19 {compass}=false
20 {nether}=false
21 {absorption}=false
22 {infinitie}=false
23 {gonefishing}=false
24 {bowswap}=false
25 {nobow}=false
26 {troppipotato}=false
27 {phealth}=false
28 {timebomb}=false
29 {noanvil}=false
30 {diamondless}=false
31 {blooddiamond}=false
32 {horseless}=false
33on load:
34 execute console command "/gamerule sendCommandFeedback false"
35 execute console command "/gamerule naturalRegeneration false"
36
37on script unload:
38 delete {timebomb}
39
40every 1 seconds:
41 loop all players:
42 wipe loop-player's sidebar
43 set name of sidebar of loop-player to "{@logo} %{nuhc}%"
44 if {scoreboard} is 0:
45 set score "&7»&cHost: &a%{host}%" in sidebar of loop-player to 100
46 set score "&7»&cJoueurs: &a%{uhc.alive}%" in sidebar of loop-player to 99
47 if {uhc.status} is "ingame":
48 set score "&7»&cBorder: &a%{uhc.border}%" in sidebar of loop-player to 98
49 set score "&7»&cTimer: &a%{sb.m}%:%{sb.s}%" in sidebar of loop-player to 97
50 set score "&c-----[&aCrédits&c]-----" in sidebar of loop-player to 94
51 set score "&7»&cplugin by &aDiggor" in sidebar of loop-player to 93
52 set score "&7»&cVersion &aV2" in sidebar of loop-player to 92
53 set score "&c-----[&aKills&c]-----" in sidebar of loop-player to 13
54 set score "&7»&cPvE: &a%{uhc.PvE}%" in sidebar of loop-player to 1
55 loop all players:
56 if {uhcrun.kills.%loop-player-2%} is set:
57 set score "&7»&c%loop-player-2% &a%{uhcrun.kills.%loop-player-2%}%" in sidebar of loop-player-1 to {uhcrun.kills.%loop-player-2%}
58 if {uhc.nopvp} is set:
59 set score "&7»&cPvP: &cdésactivé" in sidebar of loop-player to 96
60 else:
61 set score "&7»&cPvP: &aactivé" in sidebar of loop-player to 96
62 if {Mole} is true:
63 set score "&7»&cTaupe: &aactivé" in sidebar of loop-player to 95
64 else:
65 set score "&7»&cTaupe: &cdésactivé" in sidebar of loop-player to 95
66
67every 1 second:
68 loop all players:
69 set tab header to "{@logo} &7: &6Host: &2%{host}% &7: %{nuhc}% &7: &6%{time.m}%:%{time.s}%" and footer to "plugin by diggor" for loop-player
70
71 if {uhc.status} is set:
72 add 1 to {time.s}
73 if {time.s} is 60:
74 set {time.s} to 0
75 add 1 to {time.m}
76
77every 5 second:
78 if {uhc.status} is set:
79 add 5 to {sb.s}
80 if {sb.s} is 60:
81 set {sb.s} to 0
82 add 1 to {sb.m}
83
84every tick:
85 loop all players:
86 loop all players:
87 set tab score of loop-player-1 to health of loop-player-1 * {@heal} for loop-player-2
88
89command /{@command} <text>:
90 permission: perm.host
91 trigger:
92 if arg 1 is "start":
93 execute console command "/worldborder center 0 0 world"
94 execute console command "/worldborder set 2000"
95 execute console command "/butcher"
96 execute console command "/pvp off"
97 execute console command "/"
98 set {uhc.status} to "ingame"
99 set {uhc.border} to 2000
100 set {uhc.alive} to number of all players
101 set {uhc.nopvp} to true
102 set {scoreboard} to 0
103 set {uhc.nodamage} to true
104 set {uhc.pve} to 0
105 set {uhc.mort} to 0
106 set {time.m} to 0
107 set {time.s} to 0
108 set {sb.m} to 0
109 set {sb.s} to 0
110 loop all players:
111 clear loop-player's inventory
112 set {uhcrun.kills.%loop-player%} to 0
113 set loop-player's max health to 10
114 wait 3 ticks
115 set slot 0 of loop-player's inventory to 10 steak named "&4Starter Food"
116 if {timebomb} is true:
117 command sender command "/gamerule keepInventory true"
118 if {phealth} is true:
119 apply health boost 5 to all players for 999 days
120 set the maximum health of all players to 10
121 if {troppipotato} is true:
122 give 5 potato to all players
123 if {gonefishing} is true:
124 give (fishing rod of unbreaking 100 and luck of the sea 250 and lure 3) to all players
125 give 64 anvils to all players
126 set level of all players to 20000
127 if {infinitie} is true:
128 give 64 anvils to all players
129 give 64 enchantment table to all players
130 give 64 lapis block to all players
131 give 64 bookshelf to all players
132 give 64 bookshelf to all players
133 set level of all players to 20000
134 loop 30 times:
135 wait 20 tick
136 add -1 to {_chronos}
137 delete {uhc.nodamage}
138 broadcast "&3Les dégats sont maintenant activés !"
139 loop 25000 times:
140 wait 20 tick
141 loop all players:
142 set action bar of loop-player to "&eJoueurs: &3%{uhc.alive}% &7| &6y &4%loop-player's y-coordinate% &7| &aTimer: &3%{time.m}%:%{time.s}%"
143 if arg 1 is "stop":
144 set {uhc.border} to 0
145 delete {uhc.status}
146 set {uhc.nopvp} to true
147 set {uhc.nodamage} to true
148 set {uhc.pve} to 0
149 set {uhc.alive} to 0
150 set {time.m} to 0
151 set {time.s} to 0
152 set {sb.m} to 0
153 set {sb.s} to 0
154 execute console command "/effect @a clear"
155
156command /pvp <text>:
157 permission: perm.host
158 trigger:
159 if arg 1 is "on":
160 enable pvp in all worlds
161 broadcast "{@logo} PvP activé"
162 delete {uhc.nopvp}
163 if arg 1 is "off":
164 disable pvp in all worlds
165 broadcast "{@logo} PvP désactivé"
166 set {uhc.nopvp} to true
167
168command /rules:
169 trigger:
170 message "&1"
171 message "&cCycle: &aJour/Nuit"
172 message "&4Reduction: &a%{reducrules}%"
173 message "&cPvP: &a%{pvprules}%"
174 message "&4Stalk: &aInterdit !"
175 message "&cGolden Head: &a{@rulesghead}"
176 message "&4Piège de portail: &a{@rulesportail}"
177 if {nether} is true:
178 message "&cNether: &aOn"
179 else:
180 message "&cNether: &aOff"
181 if {absorption} is true:
182 message "&cAbsorption: &aOn"
183 else:
184 message "&cAbsorption: &aOff"
185 message "&4Force: &aOn nerf a 65"
186 message "&cPotions II: &aOff"
187 if {horseless} is true:
188 message "&4Chevaux: &aOff"
189 else:
190 message "&4Chevaux: &aOn"
191 if {gonefishing} is true:
192 message "{@bot} &7[&4GoneFishing&7] &aUne canne à pêche avec des enchantements Lure III , Luck of the Sea 250 et Unbreaking 100 ainsi que 64 enclumes et 20000 levels."
193 message "&b"
194 if {cutclean} is true:
195 message "{@bot} &7[&4CutClean&7] &aPas besoin de four tout est déjà cuits."
196 message "&2"
197 if {barebones} is true:
198 message "{@bot} &7[&4Barebones&7] &aVous ne pouvez pas crafter de pommes d'or , d'enclume & de table d'enchantements , lorsque vous faites un kill , une pomme d'or , un diamant, deux ficelles et 16 flèches seront droppés."
199 message "&a"
200 if {arrowb} is true:
201 message "{@bot} &7[&4ArrowBomb&7] &aVous avez 25 pourcent de chance de crée une explosion quand vous envoyez une fleche."
202 message "&4"
203 if {compass} is true:
204 message "{@bot} &7[&4Compass&7] &aQuand vous craftez une boussole,vous tracker les personnes a moins de 70 blocks de vous !"
205 message "&5"
206 if {bowswap} is true:
207 message "{@bot} &7[&4BowSwap&7] &aVous avez 35 pourcent de chance de vous faire swap avec votre adversaire quand vous lui mettez une flèche."
208 message "&7"
209 if {infinitie} is true:
210 message "{@bot} &7[&4Enchanter&7] &aAu début de la partie vous avez 64 biblios,64 enclumes,20 000 levels."
211 message "&8"
212 if {troppipotato} is true:
213 message "{@bot} &7[&4Troppi&6Potato&7] &aAu début de la partie vous avez 5 patates vous ne pouvez pas crafter de golden apple le seul moyen de vous regen est de crée une TroppiPotato qui régen 4 coeurs."
214 message "{@bot} &7[&4Troppi&6Potato&7] &aCraft: une patate avec 8 or autour."
215 message "&4"
216 if {phealth} is true:
217 message "{@bot} &7[&4Health&7] &aAu début de la partie vous avez une barre de coeur vide en plus."
218 message "&4"
219 if {timebomb} is true:
220 message "{@bot} &7[&4TimeBomb&7] &a a la mort d'une personne son cadavre se transforme en coffre contenant son stuff , au bout de 20 secondes ce coffre exploseras."
221 message "&4"
222 if {diamondless} is true:
223 message "{@bot} &7[&4DiamondLess&7] &aQuand vous minez un diamant il droppe de l'or."
224 message "&4"
225 if {blooddiamond} is true:
226 message "{@bot} &7[&4BloodDiamond&7] &aQuand vous minez un diamant vous perdez un demi coeur."
227 message "&4"
228 if {nobow} is true:
229 message "{@bot} &7[&4NoBow&7] &aImpossible d'utiliser l'arc."
230 message "&4"
231 if {ccbb} is true:
232 message "{@bot} &7[&4CutCleanBarebones&7] &aPas besoin de four tout est déjà cuits &7/ &aVous ne pouvez pas crafter de pommes d'or , d'enclume & de table d'enchantements , lorsque vous faites un kill , une pomme d'or , un diamant, deux ficelles et 16 flèches seront droppés."
233 message "&4"
234 if {noanvil} is true:
235 message "{@bot} &7[&4NoAnvil&7] &aImpossible de crafter des anvils."
236 message "&4"
237
238
239
240command /finalheal:
241 permission: perm.host
242 permission message: &4tu n'es pas host !
243 trigger:
244 loop all players:
245 heal loop-player
246 message "{@logo} &7Le final heal a été effectué !" to loop-player
247
248
249command /sethost [<offlineplayer>]:
250 permission: perm.host
251 permission message: &4tu n'es pas host !
252 trigger:
253 set {host} to arg-1
254 message "{@logo} &el'host de la partie est désormais &7%{host}%"
255
256command /setnuhc [<text>]:
257 permission: perm.host
258 permission message: &4tu n'es pas host !
259 trigger:
260 set {nuhc} to arg-1
261 message "{@logo} &ele numéro de la partie est désormais %{nuhc}%"
262
263command /setpvprules [<text>]:
264 permission: perm.host
265 permission message: &4tu n'es pas host !
266 trigger:
267 set {pvprules} to arg-1
268 message "{@logo} &ele pvp est maintenant à %{pvprules}% dans le /rules !"
269
270command /setreducrules [<text>]:
271 permission: perm.host
272 permission message: &4tu n'es pas host !
273 trigger:
274 set {reducrules} to arg-1
275 message "{@logo} &ela reduction est maintenant à %{reducrules}% dans le /rules !"
276
277
278command /pregen <world> <integer> <integer>:
279 permission: skript.op
280 usage: /pregen <world> <radius> <speed>
281 trigger:
282 broadcast "Prégen en cours sur le serveur WorldUHC risque de lags."
283 wait 1 tick
284 make player execute "/wb shape square"
285 wait 5 ticks
286 make player execute "/wb set %arg-2%"
287 wait 5 ticks
288 make player execute "/wb fill %arg-3%"
289 wait 20 ticks
290 make player execute "/wb fill confirm"
291
292
293command /scenarios [<text>] [<text>]:
294 permission: perm.host
295 trigger:
296 if arg 1 is "cutclean":
297 if {cutclean} is false:
298 set {cutclean} to true
299 loop all players:
300 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7CutClean" for 2 seconds
301 stop
302 if {cutclean} is true:
303 set {cutclean} to false
304 loop all players:
305 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7CutClean" for 2 seconds
306 stop
307 if arg 1 is "barebones":
308 if {barebones} is false:
309 set {barebones} to true
310 loop all players:
311 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7Barebones" for 2 seconds
312 stop
313 if {barebones} is true:
314 set {barebones} to false
315 loop all players:
316 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7barebones" for 2 seconds
317 stop
318 if arg 1 is "ccbb":
319 if {ccbb} is false:
320 set {ccbb} to true
321 loop all players:
322 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7CutCleanBarebones" for 2 seconds
323 stop
324 if {ccbb} is true:
325 set {ccbb} to false
326 loop all players:
327 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7CutCleanBarebones" for 2 seconds
328 stop
329 if arg 1 is "arrowbomb":
330 if {arrowb} is false:
331 set {arrowb} to true
332 loop all players:
333 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7ArrowBomb" for 2 seconds
334 stop
335 if {arrowb} is true:
336 set {arrowb} to false
337 loop all players:
338 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7ArrowBomb" for 2 seconds
339 stop
340 if arg 1 is "compass":
341 if {compass} is false:
342 set {compass} to true
343 loop all players:
344 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7Compass" for 2 seconds
345 stop
346 if {compass} is true:
347 set {compass} to false
348 loop all players:
349 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7Compass" for 2 seconds
350 if arg 1 is "nether":
351 if {nether} is false:
352 set {nether} to true
353 loop all players:
354 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7Nether" for 2 seconds
355 stop
356 if {nether} is true:
357 set {nether} to false
358 loop all players:
359 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7Nether" for 2 seconds
360 stop
361 if arg 1 is "absorption":
362 if {absorption} is false:
363 set {absorption} to true
364 loop all players:
365 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7Absorption" for 2 seconds
366 stop
367 if {absorption} is true:
368 set {absorption} to false
369 loop all players:
370 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7Absorption" for 2 seconds
371 stop
372 if arg 1 is "gonefishing":
373 if {gonefishing} is false:
374 set {gonefishing} to true
375 loop all players:
376 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7GoneFishing" for 2 seconds
377 stop
378 if {gonefishing} is true:
379 set {gonefishing} to false
380 loop all players:
381 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7GoneFishing" for 2 seconds
382 stop
383 if arg 1 is "bowswap":
384 if {bowswap} is false:
385 set {bowswap} to true
386 loop all players:
387 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7BowSwap" for 2 seconds
388 stop
389 if {bowswap} is true:
390 set {bowswap} to false
391 loop all players:
392 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7BowSwap" for 2 seconds
393 stop
394 if arg 1 is "infinityenchanter":
395 if {infinitie} is false:
396 set {infinitie} to true
397 loop all players:
398 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7Enchanteur" for 2 seconds
399 stop
400 if {infinitie} is true:
401 set {infinitie} to false
402 loop all players:
403 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7Enchanteur" for 2 seconds
404 stop
405 if arg 1 is "nobow":
406 if {nobow} is false:
407 set {nobow} to true
408 loop all players:
409 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7NoBow" for 2 seconds
410 stop
411 if {nobow} is true:
412 set {nobow} to false
413 loop all players:
414 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7NoBow" for 2 seconds
415 stop
416 if arg 1 is "troppipotato":
417 if {troppipotato} is false:
418 set {troppipotato} to true
419 loop all players:
420 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7TroppiPotato" for 2 seconds
421 stop
422 if {troppipotato} is true:
423 set {troppipotato} to false
424 loop all players:
425 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7TroppiPotato" for 2 seconds
426 stop
427 if arg 1 is "health":
428 if {phealth} is false:
429 set {phealth} to true
430 loop all players:
431 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7Potential Health" for 2 seconds
432 stop
433 if {phealth} is true:
434 set {phealth} to false
435 loop all players:
436 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7Potential Health" for 2 seconds
437 stop
438 if arg 1 is "timebomb":
439 if {timebomb} is false:
440 set {timebomb} to true
441 loop all players:
442 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7TimeBomb" for 2 seconds
443 stop
444 if {timebomb} is true:
445 set {timebomb} to false
446 loop all players:
447 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7TimeBomb" for 2 seconds
448 stop
449 if arg 1 is "diamondless":
450 if {diamondless} is false:
451 set {diamondless} to true
452 loop all players:
453 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7DiamondLess" for 2 seconds
454 stop
455 if {diamondless} is true:
456 set {diamondless} to false
457 loop all players:
458 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7DiamondLess" for 2 seconds
459 stop
460 if arg 1 is "blooddiamond":
461 if {blooddiamond} is false:
462 set {blooddiamond} to true
463 loop all players:
464 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7BloodDiamond" for 2 seconds
465 stop
466 if {blooddiamond} is true:
467 set {blooddiamond} to false
468 loop all players:
469 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7BloodDiamond" for 2 seconds
470 stop
471 if arg 1 is "horseless":
472 if {horseless} is false:
473 set {horseless} to true
474 loop all players:
475 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7HorseLess" for 2 seconds
476 loop all horses:
477 kill loop-horse
478 stop
479 if {horseless} is true:
480 set {horseless} to false
481 loop all players:
482 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7HorseLess" for 2 seconds
483 stop
484 if arg 1 is "noanvil":
485 if {noanvil} is false:
486 set {noanvil} to true
487 loop all players:
488 send loop-player title "%command sender%" with subtitle "&aà activé le scénario &7NoAnvil" for 2 seconds
489 stop
490 if {noanvil} is true:
491 set {noanvil} to false
492 loop all players:
493 send loop-player title "%command sender%" with subtitle "&cà désactivé le scénario &7NoAnvil" for 2 seconds
494 stop
495
496 if arg 1 is "off":
497 set {cutclean} to false
498 set {tripleores} to false
499 set {barebones} to false
500 set {ccbb} to false
501 set {triplebb} to false
502 set {arrowb} to false
503 set {compass} to false
504 set {nether} to false
505 set {absorption} to false
506 set {infinitie} to false
507 set {gonefishing} to false
508 set {bowswap} to false
509 set {nobow} to false
510 set {phealth} to false
511 set {troppipotato} to false
512 set {timebomb} to false
513 set {diamondless} to false
514 set {blooddiamond} to false
515 set {horseless} to false
516 set {noanvil} to false
517 loop all players:
518 send loop-player title "%command sender%" with subtitle "&cà désactivé &7tout les scénarios" for 2 seconds
519 stop
520 if arg 1 isn't set:
521 message "{@cutclean} &cCutClean/noanvil/diamondless/horseless/blooddiamond/barebones/ccbb/timebomb/arrowbomb/troppipotato/health/compass/nether/nobow/infinitieenchanter/gonefishing/bowswap/absorption/off"
522
523
524on mine of iron ore:
525 if {cutclean} is true:
526 set block to air
527 cancel the event
528 execute console command "/give %player% minecraft:iron_ingot"
529 spawn 2 experience orb at event-block
530 stop
531 stop
532 if {ccbb} is true:
533 set block to air
534 cancel the event
535 execute console command "/give %player% minecraft:iron_ingot"
536 spawn 2 experience orb at event-block
537 stop
538
539on mine of gravel:
540 if {cutclean} is true:
541 set block to air
542 drop 1 flint
543 cancel the event
544 stop
545 if {tripleores} is true:
546 set block to air
547 drop 3 flint
548 cancel the event
549 stop
550
551on mine of gold ore:
552 if {cutclean} is true:
553 set block to air
554 cancel the event
555 execute console command "/give %player% minecraft:gold_ingot"
556 spawn 2 experience orb at event-block
557 stop
558 if {barebones} is true:
559 message "{@cutclean} &cBarebones !"
560 spawn 2 experience orb at event-block
561 set block to air
562 cancel the event
563 stop
564 if {ccbb} is true:
565 message "{@cutclean} &cBarebones !"
566 spawn 2 experience orb at event-block
567 set block to air
568 cancel the event
569 drop 1 iron ingot
570 stop
571
572on mine of diamond ore:
573 if {barebones} is true:
574 message "{@cutclean} &cBarebones !"
575 spawn 2 experience orb at event-block
576 set block to air
577 cancel the event
578 stop
579 if {ccbb} is true:
580 message "{@cutclean} &cBarebones !"
581 spawn 2 experience orb at event-block
582 set block to air
583 cancel the event
584 drop 1 iron ingot
585 stop
586
587on death of a pig:
588 if {cutclean} is true:
589 clear drops
590 drop 3 cooked porkchop at the pig
591 else if {ccbb} is true:
592 clear drops
593 drop 3 cooked porkchop at the pig
594on death of a cow:
595 if {cutclean} is true:
596 clear drops
597 drop 3 steak at the cow
598 drop 1 leather at the cow
599 else if {ccbb} is true:
600 clear drops
601 drop 3 steak at the cow
602 drop 1 leather at the cow
603on death of a chicken:
604 if {cutclean} is true:
605 clear drops
606 drop 3 cooked chicken at the chicken
607 drop 2 feather at the chicken
608 else if {ccbb} is true:
609 clear drops
610 drop 3 cooked chicken at the chicken
611 drop 2 feather at the chicken
612on death of a sheep:
613 if {cutclean} is true:
614 clear drops
615 drop 3 cooked Mutton at the sheep
616 else if {ccbb} is true:
617 clear drops
618 drop 3 cooked Mutton at the Sheep
619
620on craft of enchantment table:
621 if {barebones} is true:
622 cancel the event
623 if {ccbb} is true:
624 cancel the event
625on craft of anvil:
626 if {barebones} is true:
627 cancel the event
628 if {ccbb} is true:
629 cancel the event
630on craft of golden apple:
631 if {barebones} is true:
632 cancel the event
633 if {ccbb} is true:
634 cancel the event
635on craft of enchanted golden apple:
636 if {barebones} is true:
637 cancel the event
638 if {ccbb} is true:
639 cancel the event
640 if {cutclean} is true:
641 cancel the event
642on death of a player:
643 if {barebones} is true:
644 drop 2 golden apple at the player
645 drop 1 diamond at the player
646 drop 32 arrows at the player
647 drop 2 string at the player
648 stop
649 if {ccbb} is true:
650 drop 2 golden apple at the player
651 drop 1 diamond at the player
652 drop 32 arrows at the player
653 drop 2 string at the player
654 stop
655on rightclick with compass:
656 if {compass} is true:
657 set {_distance} to 70
658 loop all players:
659 loop-player is not the player
660 set {_t} to distance between loop-player and player
661 {_t} is less than {_distance}
662 set {_distance} to {_t}
663 set {_p} to loop-player
664 if {_p} is not set:
665 message "&cAucun joueur!"
666 else:
667 message "&6Le joueur &e%{_p}% &6est à &e%{_distance}% &6blocs de distance"
668
669on right click on horse:
670 if {horseless} is true:
671 cancel the event
672on mine diamond ore:
673 if {diamondless} is true:
674 set block to air
675 cancel the event
676 execute console command "/give %player% minecraft:gold_ingot"
677 spawn 2 experience orb at event-block
678 stop
679on mine diamond ore:
680 if {blooddiamond} is true:
681 damage the player by 0.5 hearts
682
683on craft of golden apple:
684 if {troppipotato} is true:
685 cancel event
686on craft of enchantment table:
687 {gonefishing} is true:
688 cancel the event
689 message "{@bot} &4Erreur ! En GoneFishing la table d'enchante est désactivé"
690
691on mine a glowstone:
692 cancel event
693
694on portal create:
695 if {nether} is false:
696 cancel the event
697
698on respawn:
699 wait 300 tick
700 kick the player due to "&bBravo à toi ! &7N'hesite pas a follow notre twitter &e@WorldUHC"
701
702on consume of a golden apple:
703 wait 1 tick
704 if {absorption} is true:
705 apply absorption to the player for 2 minutes
706 if {absorption} is false:
707 remove absorption from the player
708
709on damage:
710 {bowswap} is true
711 attacker is a player
712 attacker is alive
713 victim is a player
714 victim is alive
715 damage was caused by projectile
716 projectile is an arrow
717 chance of 35%
718 message "{@bot} &7[&Swap&7] &3Tu as été swap" to attacker
719 set {_templocation} to (location of victim)
720 teleport victim to (location 0.3 below attacker)
721 teleport attacker to {_templocation}
722
723on craft a anvil:
724 if {noanvil} is true:
725 cancel event
726
727on damage:
728 projectile exists
729 projectile is an arrow:
730 wait 1 tick
731 attacker is a player:
732 victim is a player:
733 set {_health} to 10*victim's health
734 send "&a&l%victim% » &4&l%{_health}% %%" to attacker
735
736on projectile hit:
737 projectile is an arrow
738 chance of 25%
739 if {arrowb} is true:
740 create an explosion of force 2 at the event-location
741 stop
742
743on damage:
744 if {uhc.nodamage} is true:
745 if victim is a player:
746 cancel event
747 if {uhc.nopvp} is true:
748 if attacker is a player:
749 if victim is a player:
750 message "{@logo} Le PvP est &cdésactivé &7!" to attacker
751
752
753on rightclick with bow:
754 if {nobow} is true:
755 cancel event
756
757on join:
758 set join message to "&7[&a✔&7]&a %player%"
759on quit:
760 set quit message to "&7[&4✖&7]&c %player%"
761
762on place:
763 if {uhc.status} isn't "ingame":
764 cancel event
765on break:
766 if {uhc.status} isn't "ingame":
767 cancel event
768
769
770
771on death of player:
772 if {timebomb} is true:
773 set {_templocation::%victim%} to the block below the victim
774 set block 1 meter north of {_templocation::%victim%} to Chest
775 set block at {_templocation::%victim%} to Chest
776 set the inventory of the block at {_templocation::%victim%} to victim's inventory
777 add the victim's helmet slot to the inventory of the block at {_templocation::%victim%}
778 add the victim's chestplate slot to the inventory of the block at {_templocation::%victim%}
779 add the victim's leggings slot to the inventory of the block at {_templocation::%victim%}
780 add the victim's boots slot to the inventory of the block at {_templocation::%victim%}
781 clear the victim's inventory
782 wait {@Time} seconds
783 set block at {_templocation::%victim%} to air
784 set block 1 meter north of {_templocation::%victim%} to air
785 wait 1 tick
786 create an explosion of force {@Force} at {_templocation::%victim%}
787 strike lightning effect at {_templocation::%victim%}
788
789
790
791on death:
792 if victim is a player:
793 drop 397:3 at block 0.3 above victim's location
794 loop all players:
795 play "WITHER_SPAWN" to loop-player at volume 1
796 add -1 to {uhc.alive}
797 if attacker is a player:
798 add 1 to {uhcrun.kills.%attacker%}
799 set death message to "{@logo} &e%victim% &7a été tué par &c%attacker%"
800 else:
801 add 1 to {uhc.pve}
802 set death message to "{@logo} &e%victim% &7est mort"
803
804
805
806on load:
807 register new shapeless recipe for 322:0 named "&bGolden Head" using Gold ingot, Gold ingot, Gold ingot, Gold ingot, 397:3, Gold ingot, Gold ingot, Gold ingot, Gold ingot
808On Consume a golden apple:
809 if item is 322:0 named "&bGolden Head":
810 apply regeneration 2 to the player for 10 seconds
811 apply Absorption 2 to the player for 90 seconds
812
813on load:
814 register new shapeless recipe for 392:0 named "&bTroppiPotato" using Gold ingot, Gold ingot, Gold ingot, Gold ingot, potato, Gold ingot, Gold ingot, Gold ingot, Gold ingot
815On Consume a 392:0:
816 if item is 392:0 named "&bTroppiPotato":
817 if {troppipotato} is true:
818 apply regeneration 2 to the player for 10 seconds
819 apply Absorption 2 to the player for 90 seconds
820
821on join:
822 if {is.host.%player%} is true:
823 if {uhc.start} is false:
824 set slot 0 of player's inventory to 1 chest named "&aUHC"
825
826On rightclick with chest:
827 if player is holding a chest named "&aUHC":
828 wait 2 ticks
829 open chest with 1 row named "&7UHC - GESTION DE LA PARTIE" to player
830 wait 1 ticks
831 format slot 0 of player with Armor Stand named "&aScénarios" to close then run [make player execute command "openscenario"]
832 format slot 1 of player with Water Bucket named "&aGame" to close then run [make player execute command "opengame"]
833
834
835command /opengame:
836 permission: uhc.host
837 trigger:
838 wait 2 ticks
839 open chest with 1 row named "&7UHC - GESTION DE LA GAME" to player
840 wait 1 ticks
841 format slot 0 of player with Paper named "&6TP SOLO" with lore "&7FFA" to close then run [make player execute command "scatterall world 1000 100"]
842 format slot 1 of player with Paper named "&6TP TEAMS" with lore "&7To?" to close then run [make player execute command "scatterteams world 1000 100"]
843
844
845command /openscenario:
846 permission: uhc.host
847 trigger:
848 wait 2 ticks
849 open chest with 2 row named "&7UHC - GESTION DES SCENARIOS" to player
850 wait 1 ticks
851 if {cutclean} is false:
852 format slot 0 of player with Iron Ingot named "&6CutClean" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios cutclean"]
853 else:
854 format slot 0 of player with iron Ingot named "&6CutClean" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios cutclean"]
855 if {barebones} is false:
856 format slot 1 of player with String named "&6Barebones" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios barebones"]
857 else:
858 format slot 1 of player with String named "&6Barebones" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios barebones"]
859 if {gonefishing} is false:
860 format slot 2 of player with Fishing Rod named "&6GoneFishing" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios gonefishing"]
861 else:
862 format slot 2 of player with Fishing Rod named "&6GoneFishing" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios gonefishing"]
863 if {diamondless} is false:
864 format slot 3 of player with Diamond named "&6DiamondLess" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios diamondless"]
865 else:
866 format slot 3 of player with Diamond named "&6DiamondLess" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios diamondless"]
867 if {bowswap} is false:
868 format slot 4 of player with Bow named "&6BowSwap" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios bowswap"]
869 else:
870 format slot 4 of player with Bow named "&6BowSwap" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios bowswap"]
871 if {arrowb} is false:
872 format slot 5 of player with Arrow named "&6ArrowBomb" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios arrowbomb"]
873 else:
874 format slot 5 of player with Arrow named "&6ArrowBomb" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios arrowbomb"]
875 if {blooddiamond} is false:
876 format slot 6 of player with diamond ore named "&6BloodDiamond" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios blooddiamond"]
877 else:
878 format slot 6 of player with diamond ore named "&6BloodDiamond" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios blooddiamond"]
879 if {absorption} is false:
880 format slot 7 of player with golden apple named "&6Absorption" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios absorption"]
881 else:
882 format slot 7 of player with golden apple named "&6Absorption" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios absorption"]
883 if {troppipotato} is false:
884 format slot 8 of player with potato named "&6TroppiPotato" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios troppipotato"]
885 else:
886 format slot 8 of player with potato named "&6TroppiPotato" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios troppipotato"]
887 if {nobow} is false:
888 format slot 9 of player with barrier named "&6NoBow" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios nobow"]
889 else:
890 format slot 9 of player with barrier named "&6noBow" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios nobow"]
891 if {horseless} is false:
892 format slot 10 of player with saddle named "&6Horseless" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios horseless"]
893 else:
894 format slot 10 of player with saddle named "&6Horseless" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios horseless"]
895 if {compass} is false:
896 format slot 11 of player with compass named "&6Compass" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios compass"]
897 else:
898 format slot 11 of player with compass named "&6Compass" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios compass"]
899 if {nether} is false:
900 format slot 12 of player with nether brick named "&6Nether" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios nether"]
901 else:
902 format slot 12 of player with nether brick named "&6Nether" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios nether"]
903 if {ccbb} is false:
904 format slot 13 of player with iron ore named "&6CutCleanBarebones" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios ccbb"]
905 else:
906 format slot 13 of player with iron ore named "&6CutCleanBarebones" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios ccbb"]
907 if {infinitie} is false:
908 format slot 14 of player with enchantment table named "&6Enchanteur" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios infinityenchanter"]
909 else:
910 format slot 14 of player with enchantment table named "&6Enchanteur" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios infinityenchanter"]
911 if {noanvil} is false:
912 format slot 15 of player with anvil named "&6NoAnvil" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios noanvil"]
913 else:
914 format slot 15 of player with anvil named "&6NoAnvil" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios noanvil"]
915 if {timebomb} is false:
916 format slot 16 of player with chest named "&6TimeBomb" with lore "&7Scénario &cdésactivé" to close then run [make player execute command "scenarios timebomb"]
917 else:
918 format slot 16 of player with chest named "&6TimeBomb" with lore "&7Scénario &aactivé" to close then run [make player execute command "scenarios timebomb"]
919 format slot 17 of player with lava bucket named "&6OFF" with lore "&7mettre les scénarios off" to close then run [make player execute command "scenarios off"]