· 6 years ago · Jul 04, 2019, 08:14 PM
1# Skript
2# Made By
3# The_Real_45x7
4
5
6
7
8
9
10#Fist on the List Best PvE
11
12#The Configurations
13options:
14 name: &f[&cBestPvE&f]&b
15
16variables:
17 {join.%player%}="offline"
18
19
20
21#Commands
22command /bestpve <text>:
23 description: Switches the state of the Best PvE scenario.
24 usage: /bestpve <on/off/toggle>
25 permission: bestpve.skript
26 executable by: players and console
27 aliases: /bpve
28 trigger:
29 if arg 1 is "on":
30 if {pve} is "on":
31 message "{@name} Sorry cannot do. This is already enabled."
32 stop
33 else:
34 loop all players:
35 set {bestpve.%loop-player%} to "list"
36 execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
37 set {join.%loop-player%} to "online"
38 broadcast "{@name} is enabled"
39 set {pve} to "on"
40 set {currenthearts} to 10
41 if arg 1 is "off":
42 if {pve} is "off":
43 message "{@name} Sorry cannot do. This is already disabled."
44 stop
45 else:
46 loop all players:
47 set {bestpve.%loop-player%} to "off"
48 execute console command "/playsound mob.wolf.howl %loop-player% ~ ~ ~ 1 1 1"
49 broadcast "{@name} is disabled"
50 set {pve} to "off"
51 if arg 1 is "toggle":
52 if {pve} is "off":
53 loop all players:
54 set {bestpve.%loop-player%} to "list"
55 execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
56 set {join.%loop-player%} to "online"
57 broadcast "{@name} is enabled"
58 set {pve} to "on"
59 stop
60 if {pve} is "on":
61 loop all players:
62 set {bestpve.%loop-player%} to "off"
63 execute console command "/playsound mob.wolf.howl %loop-player% ~ ~ ~ 1 1 1"
64 broadcast "{@name} is disabled"
65 set {pve} to "off"
66 set {currenthearts} to 10
67 set {round} to 0
68 stop
69
70command /iambestpve:
71 description: Tells the player if they on the Best PvE list.
72 trigger:
73 if {bestpve.%command sender%} is "list":
74 message "{@name} Yes, you are on the Best PvE list."
75 execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
76 else:
77 message "{@name} No, you are off the Best PvE list."
78 execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
79
80command /isbestpveon:
81 description: Tells the player if the Best PvE scenario is on.
82 trigger:
83 if {pve} is "on":
84 message "{@name} Yes, Best PvE is on."
85 execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
86 else:
87 message "{@name} No, Best PvE is off."
88 execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
89
90command /addbestpve <player>:
91 description: Adds the player to the best PvE list.
92 usage: /addbestpve <player>
93 permission: bestpve.skript
94 trigger:
95 set {bestpve.%arg 1%} to "list"
96 broadcast "{@name} %arg 1% is now on the Best PvE list."
97 execute console command "/playsound note.pling %arg 1% ~ ~ ~ 1 1 1"
98
99command /normalhealth <player>:
100 description: Sets the player to normal health
101 usage: /normalhealth <player>
102 permission: bestpve.skript
103 aliases: /nh
104 trigger:
105 set {_player} to arg 1
106 set {_player}'s max health to 10
107 broadcast "{@name} %arg 1% is now at normal health."
108 execute console command "/playsound note.pling %arg 1% ~ ~ ~ 1 1 1"
109 heal {_player}
110
111
112command /removebestpve <player>:
113 description: Removes the player to the best PvE list.
114 usage: /removebestpve <player>
115 permission: bestpve.skript
116 trigger:
117 set {bestpve.%arg 1%} to "off"
118 broadcast "{@name} %arg 1% is off on the Best PvE list."
119 execute console command "/playsound note.pling %arg 1% ~ ~ ~ 1 1 1"
120
121command /healthreset:
122 description: Resets everyone's health.
123 permission: bestpve.skript
124 trigger:
125 loop all players:
126 set loop-player's health to 10
127 set loop-player's max health to 10
128 execute console command "/playsound note.pling %arg 1% ~ ~ ~ 1 1 1"
129 broadcast "{@name} All player's health have had a global reset by %command sender%!"
130
131
132command /bestpvehelp:
133 description: Teaches you about the Best PvE scenario.
134 aliases: /bph, /bphelp,
135 trigger:
136 execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
137 message "{@name} This is the Best PvE scenario. Created by: /u/Dans1988 and skripted by /u/Bitlington"
138 wait 0.1 seconds
139 message "{@name} At the beginning of the game, all players are added to a ""best PvE"" list. Every 10 minutes, they are healed by 1 heart and get 1 potential heart."
140 wait 0.1 seconds
141 message "{@name} When you take damage you are removed from this list. When you kill someone, you are on the list."
142 wait 0.1 seconds
143 message "{@name} Some useful commands are /iambestpve and /isbestpveon - Thanks for Reading - Bit!"
144 if player is an op:
145 message "{@name} Mister.Op here is the commands to help you run this scenario."
146 wait 0.1 seconds
147 message "{@name} /removebestpve , /normalhealth, /bestpve <on/off/toggle> , /addbestpve , /healthreset . - Bit!"
148
149
150#The Real Deal
151
152on damage of player:
153 if {pve} is "on":
154 if damage was caused by a projectile:
155 projectile is not a snowball:
156 if {bestpve.%victim%} is "list":
157 set {bestpve.%victim%} to "off"
158 message "{@name} You are no longer on the BestPvE list." to the victim
159 execute console command "/playsound mob.wolf.howl %victim% ~ ~ ~ 1 1 1"
160
161 else:
162 if {bestpve.%victim%} is "list":
163 set {bestpve.%victim%} to "off"
164 message "{@name} You are no longer on the BestPvE list." to the victim
165 execute console command "/playsound mob.wolf.howl %victim% ~ ~ ~ 1 1 1"
166
167on death of player:
168 if {pve} is "on":
169 if {bestpve.%attacker%} is "off":
170 set {bestpve.%attacker%} to "list"
171 message "{@name} You are now on the BestPvE list." to the attacker
172 execute console command "/playsound note.pling %attacker% ~ ~ ~ 1 1 1"
173
174every 10 minutes:
175 if {pve} is "on":
176 set {currenthearts} to {currenthearts} + 1
177 set {round} to {round} + 1
178 loop all players:
179 if {bestpve.%loop-player%} is "list":
180 set loop-player's max health to loop-player's max health + 1
181 add 1 to loop-player's health
182 execute console command "/playsound mob.wolf.howl %loop-player% ~ ~ ~ 1 1 1"
183 broadcast "{@name} Best PvE players gained a heart."
184#Login System
185
186
187on login:
188 {pve} is "on":
189 if {bestpve.%player%} is "list":
190 player's max health is not {currenthearts}:
191 wait 0.5 seconds
192 set player's max health to {currenthearts}
193 add {left.%player%} to player's health
194 message "{@name} Your health is fixed."
195 execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
196
197on disconnect:
198 {pve} is "on":
199 if {bestpve.%player%} is "list":
200 set {left.%player%} to {round}
201
202on login:
203 {pve} is "on":
204 if {join.%player%} is "offline":
205 set {join.%player%} to "online"
206 player's max health is not {currenthearts}
207 heal player
208 add {round} to player's health
209 message "{@name} Your health is fixed."
210 execute console command "/playsound note.pling %player% ~ ~ ~ 1 1 1"
211
212on login:
213 {pve} is "off":
214 {bestpve.%player%} is "list":
215 player's max health is more than 10:
216 {left.%player%} is more than 0:
217 execute player command "/normalhealth %player%"
218 execute player command "/removebestpve %player%"
219
220on login:
221 {pve} is "off":
222 player's max health is more than 10:
223 {left.%player%} is more than 0:
224 execute player command "/normalhealth %player%"
225 execute player command "/removebestpve %player%"
226
227#Reset System
228
229on respawn:
230 {pve} is "on":
231 set the player's health to 10
232 message "{@name} Thanks for playing"
233 set the player's max health to 10
234
235#Makes Sure Best PvE is off when reloaded on turned on
236
237on skript start:
238 set {pve} to "off"
239
240on skript load:
241 set {pve} to "off"
242
243#End of Transmission
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259#Second Of Course Cutclean
260
261options:
262 Perm: uhc.staff
263 P: &f[&bCutclean&f]
264 C: &b
265 H: &f
266 VariableDrops: true
267
268command /cutclean <text>:
269 permission: {@Perm}
270 usage: /Cutclean <On:Off>
271 trigger:
272 if arg-1 is "enable" or "on":
273 set {Cutclean} to true
274 broadcast "{@P}{@C} Cutclean {@H}Enabled{@C}!"
275 if arg-1 is "disable" or "off":
276 delete {Cutclean}
277 broadcast "{@P}{@C} Cutclean {@H}Disabled{@C}!"
278
279on mine of iron ore:
280 if {CutClean} is true:
281 if {VeinMiner} is true:
282 player is not sneaking
283 cancel event
284 place iron ingot at event-block
285 spawn 1 xp at event-block
286 damage player's tool by 1
287 else:
288 cancel event
289 place iron ingot at event-block
290 spawn 1 xp at event-block
291 damage player's tool by 1
292
293on mine of gold ore:
294 if {CutClean} is true:
295 if {VeinMiner} is true:
296 player is not sneaking
297 cancel event
298 place gold ingot at event-block
299 spawn 1 xp at event-block
300 damage player's tool by 1
301 else:
302 cancel event
303 place gold ingot at event-block
304 spawn 1 xp at event-block
305 damage player's tool by 1
306
307on death of a pig:
308 if {CutClean} is true:
309 clear drops
310 set {_variable} to {@VariableDrops}
311 if {_variable} is true:
312 set block at the pig to chest
313 set {_chestloc} to location at the pig
314 set {_cookedporkchop} to a random integer between 1 and 2
315 if {_cookedporkchop} is 1:
316 add 1 cooked porkchop to the block at {_chestloc}
317 if {_cookedporkchop} is 2:
318 add 2 cooked porkchop to the block at {_chestloc}
319 set the block at {_chestloc} to air
320 else:
321 drop 2 cooked porkchop at the pig
322 drop 1 xp at the pig
323
324on death of a cow:
325 if {CutClean} is true:
326 clear drops
327 set {_variable} to {@VariableDrops}
328 if {_variable} is true:
329 set block at the cow to chest
330 set {_chestloc} to location at the cow
331 set {_steak} to a random integer between 1 and 2
332 if {_steak} is 1:
333 add 1 steak to the block at {_chestloc}
334 if {_steak} is 2:
335 add 2 steak to the block at {_chestloc}
336 set the block at {_chestloc} to air
337 else:
338 drop 2 steak at the cow
339 if {_variable} is true:
340 set block at the cow to chest
341 set {_chestloc} to location at the cow
342 set {_leather} to a random integer between 1 and 2
343 if {_leather} is 1:
344 add 1 leather to the block at {_chestloc}
345 if {_leather} is 2:
346 add 2 leather to the block at {_chestloc}
347 set the block at {_chestloc} to air
348 else:
349 drop 1 leather at the cow
350 drop 1 xp at the cow
351
352on death of a sheep:
353 clear drops
354 if {CutClean} is true:
355 set {_variable} to {@VariableDrops}
356 if {_variable} is true:
357 set block at the sheep to chest
358 set {_chestloc} to location at the sheep
359 set {_cookedmutton} to a random integer between 1 and 2
360 if {_cookedmutton} is 1:
361 add 1 cooked mutton to the block at {_chestloc}
362 if {_cookedmutton} is 2:
363 add 2 cooked mutton to the block at {_chestloc}
364 set the block at {_chestloc} to air
365 else:
366 drop 2 cooked mutton at the sheep
367 drop 1 xp at the sheep
368 else:
369 set {_variable} to {@VariableDrops}
370 if {_variable} is true:
371 set block at the sheep to chest
372 set {_chestloc} to location at the sheep
373 set {_rawmutton} to a random integer between 1 and 2
374 if {_rawmutton} is 1:
375 add 1 raw mutton to the block at {_chestloc}
376 if {_rawmutton} is 2:
377 add 2 raw mutton to the block at {_chestloc}
378 set the block at {_chestloc} to air
379 else:
380 drop 2 raw mutton at the sheep
381 drop 1 xp at the sheep
382 stop
383
384on death of a chicken:
385 {CutClean} is true
386 clear drops
387 set {_variable} to {@VariableDrops}
388 if {_variable} is true:
389 set block at the chicken to chest
390 set {_chestloc} to location at the chicken
391 set {_cookedchicken} to a random integer between 1 and 2
392 if {_cookedchicken} is 1:
393 add 1 cooked chicken to the block at {_chestloc}
394 if {_cookedchicken} is 2:
395 add 2 cooked chicken to the block at {_chestloc}
396 set the block at {_chestloc} to air
397 else:
398 drop 2 cooked chicken at the chicken
399 if {_variable} is true:
400 set block at the chicken to chest
401 set {_chestloc} to location at the chicken
402 set {_feather} to a random integer between 1 and 2
403 if {_feather} is 1:
404 add 1 feather to the block at {_chestloc}
405 if {_feather} is 2:
406 add 2 feather to the block at {_chestloc}
407 set the block at {_chestloc} to air
408 else:
409 drop 2 feather at the chicken
410 drop 1 xp at the chicken
411
412on death of a spider:
413 {CutClean} is true
414 clear drops
415 set {_variable} to {@VariableDrops}
416 if {_variable} is true:
417 set block at the spider to chest
418 set {_chestloc} to location at the spider
419 set {_string} to a random integer between 1 and 2
420 if {_string} is 1:
421 add 1 string to the block at {_chestloc}
422 if {_string} is 2:
423 add 2 string to the block at {_chestloc}
424 set the block at {_chestloc} to air
425 else:
426 drop 2 string at the spider
427 chance of 30%:
428 drop 1 spider eye at the spider
429 drop 4 xp at the spider
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456#Next we have DiamondLess
457
458
459command /diamondless <text>:
460 usage: /diamondless <enable:disable:toggle>
461 permission: skript.op
462 trigger:
463 if arg 1 is "enable":
464 set {diamondless} to true
465 message "&cDiamondless Enabled!"
466 if arg 1 is "disable":
467 set {diamondless} to false
468 message "&cDiamondless Disabled!"
469 if arg 1 is "toggle":
470 if {diamondless} is true:
471 set {diamondless} to false
472 message "&cDiamondless Disabled!"
473 stop
474 if {diamondless} is false:
475 set {diamondless} to true
476 message "&cDiamondless Enabled!"
477 stop
478
479on mine of gold ore:
480 if {diamondless} is true:
481 chance of 50%:
482 set block to air
483 drop 1 gold ingot
484 cancel the event
485 else:
486 set block to air
487 cancel the event
488
489on mine of diamond ore:
490 if {diamondless} is true:
491 set block to air
492 cancel the event
493
494on death of player:
495 if {diamondless} is true:
496 drop 4 gold ingots at the victim
497 drop 1 diamond at the victim
498
499
500
501
502
503
504
505#Next we have time bomb
506
507
508
509options:
510 P: [&2TimeBomb&r]
511 Force: 5
512 Time: 30
513
514command /timebomb [<text>] [<world>]:
515 permission: skript.op
516 trigger:
517 if arg 1 is "disable" or "off":
518 delete {timebomb}
519 delete {tempinventory::*}
520 if arg-2 is set:
521 set {_loc::%command sender%} to location of command sender
522 teleport the command sender to the spawn point of arg-2
523 wait 2 ticks
524 command sender command "/gamerule keepInventory false"
525 wait 1 tick
526 teleport the command sender to {_loc::%command sender%}
527 message "{@P} &7You've &cdisabled &7TimeBomb!"
528 else if arg 1 is "enable" or "on":
529 if arg-2 is not set:
530 message "{@P} &7Please specify a world! &a/timebomb &r<&aon&r> <&7world&r>"
531 stop
532 set {timebomb} to true
533 set {_loc::%command sender%} to location of command sender
534 teleport the command sender to the spawn point of arg-2
535 wait 2 ticks
536 command sender command "/gamerule keepInventory true"
537 wait 1 tick
538 teleport the command sender to {_loc::%command sender%}
539 message "{@P} &7You've &aenabled &7TimeBomb! Be sure to do this with all worlds!"
540 else if arg 1 is "toggle":
541 if {timebomb} is true:
542 delete {timebomb}
543 delete {tempinventory::*}
544 if arg-2 is set:
545 set {_loc::%command sender%} to location of command sender
546 teleport the command sender to the spawn point of arg-2
547 wait 2 ticks
548 command sender command "/gamerule keepInventory false"
549 wait 1 tick
550 teleport the command sender to {_loc::%command sender%}
551 message "{@P} &7You've &cdisabled &7TimeBomb!"
552 else:
553 if arg-2 is not set:
554 message "{@P} &7Please specify a world! &a/timebomb &r<&aon&r> <&7world&r>"
555 stop
556 set {timebomb} to true
557 set {_loc::%command sender%} to location of command sender
558 teleport the command sender to the spawn point of arg-2
559 wait 2 ticks
560 command sender command "/gamerule keepInventory true"
561 wait 1 tick
562 teleport the command sender to {_loc::%command sender%}
563 message "{@P} &7You've &aenabled &7TimeBomb! Be sure to do this with all worlds!"
564 else if arg-1 is "heads" or "playerheads" or "skulls" or "skull":
565 if {timebomb::heads} is not set:
566 set {timebomb::heads} to true
567 message "{@P} &7You've &aenabled &7TimeBomb Heads!"
568 else:
569 delete {timebomb::heads}
570 message "{@P} &7You've &cdisabled &7TimeBomb Heads!"
571 else:
572 message "{@P} &a/timebomb &r<&aon&r:&coff&r:&7toggle&r> <&7world&r>"
573 message "{@P} &a/timebomb &r<&7heads&r> &0- &7&oToggles head drops"
574
575on script unload:
576 delete {timebomb}
577 delete {timebomb::*}
578
579on death of player:
580 {timebomb} is set
581 set {_templocation::%victim%} to the block below the victim
582 set block 1 meter north of {_templocation::%victim%} to Chest
583 set block at {_templocation::%victim%} to Chest
584 set the inventory of the block at {_templocation::%victim%} to victim's inventory
585 if {timebomb::heads} is set:
586 add the victim's skull to the inventory of the block at {_templocation::%victim%}
587 add the victim's helmet slot to the inventory of the block at {_templocation::%victim%}
588 add the victim's chestplate slot to the inventory of the block at {_templocation::%victim%}
589 add the victim's leggings slot to the inventory of the block at {_templocation::%victim%}
590 add the victim's boots slot to the inventory of the block at {_templocation::%victim%}
591 clear the victim's inventory
592 wait {@Time} seconds
593 set block at {_templocation::%victim%} to air
594 set block 1 meter north of {_templocation::%victim%} to air
595 wait 1 tick
596 create an explosion of force {@Force} at {_templocation::%victim%}
597 strike lightning effect at {_templocation::%victim%}
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612#Next we have Perma Kill
613
614
615#Remember to set the world!
616
617options:
618 P : &7[&8Permakill]&7
619
620
621command /permakill <text> [<text>]:
622 permission: skript.op
623 trigger:
624 if arg-1 is "on" or "enable":
625 set {permakill} to true
626 broadcast "{@P} Permakill enabled."
627 make player execute "gamerule doDaylightCycle false"
628 set {pkday} to true
629 make player execute "time set noon"
630 if arg-1 is "off" or "disable":
631 delete {permakill}
632 broadcast "{@P} Permakill disabled."
633 if arg-1 is "set":
634 set {pkworld} to arg-2
635 message "{@P} Permakill world set to %arg-2%!"
636
637on death of player:
638 if {permakill} is true:
639 if {pkday} is true:
640 execute console command "time set 18000 %{pkworld}%"
641 broadcast "{@P} Set time to night."
642 set {pkday} to false
643 else if {pkday} is false:
644 execute console command "time set noon %{pkworld}%"
645 broadcast "{@P} Set time to day."
646 set {pkday} to true
647
648
649
650
651
652
653
654#Next we have a very cool game mode. MOLES!
655
656
657
658options:
659 P: &f[&bMoles&f]&f
660
661command /moles [<text>] [<integer>]:
662 permission: skript.op
663 trigger:
664 if arg-1 is not set:
665 execute console command "/playsound note.pling %{_MolePlayer}% ~ ~ ~ 1 1 1"
666 message "{@P} /moles set <amount>: sets moles"
667 message "{@P} /moles reset: removes variables, resets moles"
668 message "{@P} /moles list: lists all moles"
669 else if arg-1 is equal to "set":
670 if command sender does not have the permission "moles.set":
671 message "{@P} NOPE!"
672 execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
673 stop trigger
674 set {Mole} to true
675 delete {Mole.IsMole::*}
676 delete {Mole.MoleOfTeam::*}
677 delete {Mole.Moles::*}
678 loop all players:
679 set {isMole.%loop-player%} to false
680 if arg-2 is not set:
681 set {_MoleAmount} to 1
682 if arg-2 is set:
683 set {_MoleAmount} to arg-2
684 loop {Teams::*}:
685 set {_potMoles::*} to {Team.%loop-value%::*}
686 loop {_MoleAmount} times:
687 set {_Mole} to (random element out of {_potMoles::*})
688 remove {_Mole} from {_potMoles::*}
689 set {Mole.IsMole::%{_Mole}%} to loop-value-2
690 set {Mole.MoleOfTeam::%loop-value-2%} to {_Mole}
691 add {_Mole} to {Mole.Moles::*}
692 set {_MolePlayer} to ("%{_Mole}%" parsed as offlineplayer)
693 if {_MolePlayer} is online:
694 message "&eYou are a mole! Use /molekit" to {_MolePlayer}
695 execute console command "/playsound note.pling %{_MolePlayer}% ~ ~ ~ 1 1 1"
696 set {molekit.%{_MolePlayer}%} to true
697 set {isMole.%{_MolePlayer}%} to true
698 set {HasMoleKit.%{_MolePlayer}%} to false
699 broadcast "{@P} &f%{_MoleAmount}% mole(s) has been set per team by %command sender%!"
700 delete {_potMoles::*}
701 else if arg-1 is equal to "delete" or "reset":
702 if command sender does not have the permission "moles.delete":
703 message "{@P} NOPE!"
704 execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
705 stop trigger
706 set {Mole} to false
707 delete {Moles.IsMole::*}
708 delete {Moles.MolesOfTeam::*}
709 loop {Mole.Moles::*}:
710 delete {isMole.%loop-value%}
711 delete {HasMoleKit.%loop-value%}
712 delete {molekit.%loop-value%}
713 delete {Mole.Moles::*}
714 broadcast "{@P} is now Disabled"
715 loop all players:
716 execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
717 else if arg-1 is equal to "list" or "show":
718 if command sender does not have the permission "moles.list":
719 message "{@P} NOPE!"
720 execute console command "/playsound random.break %player% ~ ~ ~ 1 1 1"
721 stop trigger
722 if {Mole.Moles::*} is not set:
723 message "{@P} There are no moles!"
724 else:
725 message "{@P} %{Mole.Moles::*}%"
726 else:
727 execute console command "/playsound note.pling %{_MolePlayer}% ~ ~ ~ 1 1 1"
728 message "{@P} /moles set <amount>: sets moles"
729 message "{@P} /moles reset: removes variables, resets moles"
730 message "{@P} /moles list: lists all moles"
731
732on death of player:
733 if {Moles} is true:
734 if {Moles.IsMole::%player%} is set:
735 delete {Mole.IsMole::%player%}
736 delete {isMole:%player%}
737
738command /molehelp:
739 usage: /molehelp
740 trigger:
741 message "{@P} Use the command /mcc or /molechat to speak to your fellow moles"
742 message "{@P} Use the command /mcl or /moleloc to tell your fellow moles where you are"
743 message "{@P} Use the command /mcp or /molelist to find out who your fellow moles are"
744
745command /mcc <text>:
746 aliases: /molechat
747 usage: /mcc <message>
748 trigger:
749 {isMole.%command sender%} is true:
750 set {_player} to command sender
751 loop all players:
752 {isMole.%loop-player%} is true:
753 message "{@P} &e%command sender%&r: %arg%" to the loop-player
754 else:
755 message "{@P} You're not a mole!"
756
757command /mcl:
758 aliases: /moleloc
759 usage: /mcl - broadcast location to other moles
760 trigger:
761 {isMole.%command sender%} is true:
762 set {_moleLoc} to the command sender's location
763 loop all players:
764 {isMole.%loop-player%} is true:
765 message "{@P} &9%command sender%'s coords are:&r %{_moleLoc}%" to the loop-player
766 else:
767 message "{@P} You're not a mole!"
768
769command /mcp:
770 aliases: /molelist
771 usage: /mcp - list mole players alive
772 trigger:
773 {isMole.%command sender%} is true:
774 loop all players:
775 if {isMole.%loop-player%} is true:
776 message "{@P} %loop-player% "
777 else:
778 message "{@P} You're not a mole!"
779
780on death of player:
781 if {Mole} is true:
782 execute console command "/team leave %player%"
783
784on join:
785 if {Moles} is true:
786 if {isMole.%player%} is true:
787 message "{@P} You're a mole!"
788 if {HasMoleKit.%player%} is false:
789 message "{@P} Hey! Use your /molekit!"
790
791command /molekit:
792 trigger:
793 if {isMole.%player%} is true:
794 if {HasMoleKit.%player%} is false:
795 set {_chestplate} to a diamond chestplate
796 set the data value of {_chestplate} to 523
797 wait 3 ticks
798 open chest with 1 rows named "&aMole Kit &8»" to player
799 format slot 0 of player with cobweb named "&eThe Troll:" with lore " 16 Cobwebs || 5 TNT || 1 Flint And Steel" to close then run "sudo %player% /moletroll"
800 format slot 1 of player with potion of:8226 with no nbt named "&eThe Potter:" with lore " 1 Speed 2 Potion || 1 Splash Potion Of Weakness || 1 Splash Potion Of Poison 2" to close then run "sudo %player% /molepotter"
801 format slot 2 of player with diamond sword with no nbt named "&eThe Fighter:" with lore " 1 Diamond Sword || 1 Golden Apple || 1 Fishing Rod" to close then run "sudo %player% /molefighter"
802 format slot 3 of player with tnt named "&eThe Trapper:" with lore " 16 TNT || 2 Of Each Piston || 1 Flint and Steel" to close then run "sudo %player% /moletrapper"
803 format slot 4 of player with blaze spawn egg named "&eThe Pyro:" with lore " 5 Blaze Spawn Eggs || 1 Fire Resistance Potion || 3 TNT" to close then run "sudo %player% /molepyro"
804 format slot 5 of player with {_chestplate} with no nbt named "&eThe Tank:" with lore " 1 of each part of Diamond gear with 5 duribility left" to close then run "sudo %player% /moletank"
805 format slot 6 of player with enchantment_table named "&eThe Enchanter:" with lore " 1 Enchanting Table || 64 Experience Bottles || 64 Lapis" to close then run "sudo %player% /moleenchanter"
806 format slot 7 of player with golden apple named "&eThe Healer:" with lore " 2 Golden Apples || 1 Healing Potion || 1 Splash Healing Potion" to close then run "sudo %player% /molehealer"
807 format slot 8 of player with bow named "&eThe Projectile:" with lore " 1 Bow || 64 Arrows || 1 Fishing Rod" to close then run "sudo %player% /moleprojectile"
808 else:
809 message "{@P} You already have your mole kit"
810 else:
811 message "{@P} You are not the mole"
812
813command /moletroll:
814 trigger:
815 wait 3 ticks
816 open chest with 1 rows named "&aMole Kit &8» &eTroll" to player
817 format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the troll kit" to close then run "sudo %player% /moletrollgive"
818 format slot 4 of player with book named "&f<bold>Do you wish to get the troll kit?:" to be unstealable
819 format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the troll kit" to close then run "sudo %player% /molekit"
820
821command /moletrollgive:
822 trigger:
823 if {isMole.%player%} is true:
824 if {HasMoleKit.%player%} is false:
825 set {HasMoleKit.%player%} to true
826 give player 16 cobweb
827 give player 5 TNT
828 give player 1 flint and steel
829 else:
830 message "{@P} You already have your mole kit"
831 else:
832 message "{@P} You are not the mole"
833
834command /molepotter:
835 trigger:
836 wait 3 ticks
837 open chest with 1 rows named "&aMole Kit &8» &ePotter" to player
838 format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the potter kit" to close then run "sudo %player% /molepottergive"
839 format slot 4 of player with book named "&f<bold>Do you wish to get the potter kit?:" to be unstealable
840 format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the potter kit" to close then run "sudo %player% /molekit"
841
842command /molepottergive:
843 trigger:
844 if {isMole.%player%} is true:
845 if {HasMoleKit.%player%} is false:
846 set {HasMoleKit.%player%} to true
847 give player 1 unextended splash Weakness potion II item
848 give player 1 potion of:8226
849 give player 1 potion of:16420
850 else:
851 message "{@P} You already have your mole kit"
852 else:
853 message "{@P} You are not the mole"
854
855command /molefighter:
856 trigger:
857 wait 3 ticks
858 open chest with 1 rows named "&aMole Kit &8» &eFighter" to player
859 format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the fighter kit" to close then run "sudo %player% /molefightergive"
860 format slot 4 of player with book named "&f<bold>Do you wish to get the fighter kit?:" to be unstealable
861 format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the fighter kit" to close then run "sudo %player% /molekit"
862
863command /molefightergive:
864 trigger:
865 if {isMole.%player%} is true:
866 if {HasMoleKit.%player%} is false:
867 set {HasMoleKit.%player%} to true
868 give player 2 diamonds
869 give player 1 golden apple
870 give player 1 fishing rod
871 else:
872 message "{@P} You already have your mole kit"
873 else:
874 message "{@P} You are not the mole"
875
876command /moletrapper:
877 trigger:
878 wait 3 ticks
879 open chest with 1 rows named "&aMole Kit &8» &eTrapper" to player
880 format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the trapper kit" to close then run "sudo %player% /moletrappergive"
881 format slot 4 of player with book named "&f<bold>Do you wish to get the trapper kit?:" to be unstealable
882 format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the trapper kit" to close then run "sudo %player% /molekit"
883
884command /moletrappergive:
885 trigger:
886 if {isMole.%player%} is true:
887 if {HasMoleKit.%player%} is false:
888 set {HasMoleKit.%player%} to true
889 give player 16 TNT
890 give player 2 piston
891 give player 2 sticky piston
892 give player 1 flint and steel
893 else:
894 message "{@P} You already have your mole kit"
895 else:
896 message "{@P} You are not the mole"
897
898command /molepyro:
899 trigger:
900 wait 3 ticks
901 open chest with 1 rows named "&aMole Kit &8» &ePyro" to player
902 format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the pyro kit" to close then run "sudo %player% /molepyrogive"
903 format slot 4 of player with book named "&f<bold>Do you wish to get the pyro kit?:" to be unstealable
904 format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the pyro kit" to close then run "sudo %player% /molekit"
905
906command /molepyrogive:
907 trigger:
908 if {isMole.%player%} is true:
909 if {HasMoleKit.%player%} is false:
910 set {HasMoleKit.%player%} to true
911 give player 5 blaze spawn egg
912 give player 1 potion of:8227
913 give player 3 TNT
914 else:
915 message "{@P} You already have your mole kit"
916 else:
917 message "{@P} You are not the mole"
918
919command /moletank:
920 trigger:
921 wait 3 ticks
922 open chest with 1 rows named "&aMole Kit &8» &eTank" to player
923 format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the tank kit" to close then run "sudo %player% /moletankgive"
924 format slot 4 of player with book named "&f<bold>Do you wish to get the tank kit?:" to be unstealable
925 format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the tank kit" to close then run "sudo %player% /molekit"
926
927command /moletankgive:
928 trigger:
929 if {isMole.%player%} is true:
930 if {HasMoleKit.%player%} is false:
931 set {HasMoleKit.%player%} to true
932 set {_helmet} to a diamond helmet
933 set the data value of {_helmet} to 358
934 give player 1 of {_helmet}
935 set {_chestplate} to a diamond chestplate
936 set the data value of {_chestplate} to 523
937 give player 1 of {_chestplate}
938 set {_leggings} to diamond leggings
939 set the data value of {_leggings} to 490
940 give player 1 of {_leggings}
941 set {_boots} to diamond boots
942 set the data value of {_boots} to 424
943 give player 1 of {_boots}
944 else:
945 message "{@P} You already have your mole kit"
946 else:
947 message "{@P} You are not the mole"
948
949command /moleEnchanter:
950 trigger:
951 wait 3 ticks
952 open chest with 1 rows named "&aMole Kit &8» &eEnchanter" to player
953 format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the enchanter kit" to close then run "sudo %player% /moleEnchantergive"
954 format slot 4 of player with book named "&f<bold>Do you wish to get the enchanter kit?:" to be unstealable
955 format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the enchanter kit" to close then run "sudo %player% /molekit"
956
957command /moleEnchantergive:
958 trigger:
959 if {isMole.%player%} is true:
960 if {HasMoleKit.%player%} is false:
961 set {HasMoleKit.%player%} to true
962 give player 1 of enchantment table
963 give player 64 of bottle_o'_enchanting
964 give player 64 of lapis
965 else:
966 message "{@P} You already have your mole kit"
967 else:
968 message "{@P} You are not the mole"
969
970command /molehealer:
971 trigger:
972 wait 3 ticks
973 open chest with 1 rows named "&aMole Kit &8» &eHealer" to player
974 format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the healer kit" to close then run "sudo %player% /molehealergive"
975 format slot 4 of player with book named "&f<bold>Do you wish to get the healer kit?:" to be unstealable
976 format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the healer kit" to close then run "sudo %player% /molekit"
977
978command /molehealergive:
979 trigger:
980 if {isMole.%player%} is true:
981 if {HasMoleKit.%player%} is false:
982 set {HasMoleKit.%player%} to true
983 give player 2 golden apples
984 give player 1 of potion of:8261
985 give player 1 of potion of:16453
986 else:
987 message "{@P} You already have your mole kit"
988 else:
989 message "{@P} You are not the mole"
990
991command /moleprojectile:
992 trigger:
993 wait 3 ticks
994 open chest with 1 rows named "&aMole Kit &8» &eProjectile" to player
995 format slot 1 of player with green stained glass pane named "&AAccept:" with lore "&e<italics>Click to accept the projectile kit" to close then run "sudo %player% /moleprojectilegive"
996 format slot 4 of player with book named "&f<bold>Do you wish to get the projectile kit?:" to be unstealable
997 format slot 7 of player with red stained glass pane named "&cDeny:" with lore "&e<italics>Click to decline the projectile kit" to close then run "sudo %player% /molekit"
998
999command /moleprojectilegive:
1000 trigger:
1001 if {isMole.%player%} is true:
1002 if {HasMoleKit.%player%} is false:
1003 set {HasMoleKit.%player%} to true
1004 give player 1 bow
1005 give player 64 arrows
1006 give player 1 fishing rod
1007 else:
1008 message "{@P} You already have your mole kit"
1009 else:
1010 message "{@P} You are not the mole"
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021#Next we have WebCage
1022
1023
1024options:
1025 Perm: uhc.staff
1026 P: &f[&bWebcage&f]
1027 C: &b
1028 H: &f
1029
1030command /Webcage <text>:
1031 permission: {@Perm}
1032 usage: /Webcage <On:Off>
1033 trigger:
1034 if arg-1 is "enable" or "on":
1035 set {Webcage} to true
1036 broadcast "{@P}{@C} Webcage {@H}Enabled{@C}!"
1037 if arg-1 is "disable" or "off":
1038 delete {Webcage}
1039 broadcast "{@P}{@C} Webcage {@H}Disabled{@C}!"
1040
1041
1042on death of player:
1043 {Webcage} is true
1044 set {_loc} to location of player
1045 loop blocks in radius 10 around {_loc}:
1046 set {_distance} to rounded down distance between {_loc} and loop-block
1047 {_distance} is 4
1048 loop-block is air
1049 set block at loop-block to cobweb
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059options:
1060 P: &1[Achievement Hunters]&r
1061 broadcastachievements: true
1062
1063command /achievementhunters [<text>]:
1064 usage: /achievementhunters on:off
1065 aliases: /am
1066 trigger:
1067 if arg-1 is "off":
1068 command sender has permission "skript.op"
1069 delete {achievementhunters::*}
1070 broadcast "{@P} Disabled by %command sender%!"
1071 else if arg-1 is "on":
1072 command sender has permission "skript.op"
1073 set {achievementhunters::on} to true
1074 broadcast "{@P} Enabled by %command sender%!"
1075 else if arg-1 is "help" or "info":
1076 send " "
1077 send "{@P} &c&lOne Time Only"
1078 send " "
1079 send "{@P} First Damage: 9 hearts"
1080 send "{@P} First Blood: 7 gold + 1 apple"
1081 send "{@P} First Enchant Table: 10 enchant bottles + 2 books"
1082 send "{@P} First Brewing Stand: 1 glistering melon"
1083 send "{@P} First Bow: 32 arrows"
1084 send "{@P} First Fishing Rod: 16 cooked fish"
1085 send "{@P} First Emerald Block: 6 villager spawn eggs"
1086 send "{@P} First Redstone Block: 1 diamond"
1087 send "{@P} First Portal (enter): 4 gold ingots"
1088 send "{@P} First Saddle: 1 horse spawn egg"
1089 send "{@P} First Enderpearl: 2 ender pearls"
1090 send "{@P} First cactus in a flower pot: Player head"
1091 send "{@P} First Witch Kill: 2 damage splash potions (tier 1)"
1092 send "{@P} First Anvil: 8 books"
1093 send "{@P} First Minecart: 64 Rails + 8 Powered Rails"
1094 send "{@P} First Music Disc In Jukebox: 8 wood planks + 1 diamond"
1095 send "{@P} First Chest: 64 Chests"
1096 send "{@P} First Diamond Shovel: Player Head + 1 creeper spawn egg"
1097 send "{@P} First Golden Apple (crafted): 1 golden apple"
1098 send "{@P} First Crafted Crafting Table: 1 stick"
1099 send " "
1100 send "{@P} &c&lAnytime achievements"
1101 send "{@P} Fall Damage: 5 seconds of slowness"
1102 send "{@P} Golden Apple Consumption: 10 seconds of weakness"
1103 send "{@P} Longshot (100+) blocks: + 2 hearts"
1104 send "{@P} Longshot 60-99 blocks: + 1 heart"
1105 else:
1106 send "{@P} /achievementhunters on:off:info"
1107
1108every 2 seconds:
1109 {achievementhunters::on} is true
1110 loop all players:
1111 loop all items in loop-player's inventory:
1112 if loop-item is a enchantment table:
1113 {achievementhunters::et} is not set
1114 if {@broadcastachievements} is true:
1115 broadcast "{@P} %loop-player% got a enchantment table first so they earned 10 bottles of enchanting and 2 books!"
1116 else:
1117 send "{@P} You got a enchantment table first so you earned 10 bottles of enchanting and 2 books" to loop-player
1118 give loop-player 2 books
1119 give loop-player 10 of bottle o' enchanting
1120 set {achievementhunters::et} to true
1121 else if loop-item is a brewing stand:
1122 {achievementhunters::bs} is not set
1123 if {@broadcastachievements} is true:
1124 broadcast "{@P} %loop-player% got a brewing stand first so they earned a glistering melon!"
1125 else:
1126 send "{@P} You got a brewing stand first so you earned a glistering melon" to loop-player
1127 give loop-player a glistering melon
1128 set {achievementhunters::bs} to true
1129 else if loop-item is a bow:
1130 {achievementhunters::bow} is not set
1131 if {@broadcastachievements} is true:
1132 broadcast "{@P} %loop-player% got a bow first so they earned a 32 arrows!"
1133 else:
1134 send "{@P} You got a bow first so you earned 32 arrows" to loop-player
1135 give loop-player 32 arrows
1136 set {achievementhunters::bow} to true
1137 else if loop-item is a fishing rod:
1138 {achievementhunters::fr} is not set
1139 if {@broadcastachievements} is true:
1140 broadcast "{@P} %loop-player% got a fishing rod first so they earned 16 cooked fish"
1141 else:
1142 send "{@P} You got a fishing rod first so you earned 16 cooked fish" to loop-player
1143 give loop-player 16 cooked fish
1144 set {achievementhunters::fr} to true
1145 else if loop-item is a emerald block:
1146 {achievementhunters::eb} is not set
1147 if {@broadcastachievements} is true:
1148 broadcast "{@P} %loop-player% got a emerald block first so they earned 6 villager spawn eggs"
1149 else:
1150 send "{@P} You got a emerald block first so you earned 6 villager spawn eggs" to loop-player
1151 give loop-player 6 villager spawn eggs
1152 set {achievementhunters::eb} to true
1153 else if loop-item is a redstone block:
1154 {achievementhunters::rb} is not set
1155 if {@broadcastachievements} is true:
1156 broadcast "{@P} %loop-player% got a redstone block first so they earned a diamond"
1157 else:
1158 send "{@P} You got a redstone block first so you earned a diamond" to loop-player
1159 give loop-player a diamond
1160 set {achievementhunters::rb} to true
1161 else if loop-item is a anvil:
1162 {achievementhunters::anv} is not set
1163 if {@broadcastachievements} is true:
1164 broadcast "{@P} %loop-player% got a anvil first so they earned 8 books"
1165 else:
1166 send "{@P} You got a anvil first so you earned 8 books" to loop-player
1167 give loop-player 8 books
1168 set {achievementhunters::anv} to true
1169 else if loop-item is a minecart:
1170 {achievementhunters::mi} is not set
1171 if {@broadcastachievements} is true:
1172 broadcast "{@P} %loop-player% got a minecart first so they earned 64 rails + 8 powered rails"
1173 else:
1174 send "{@P} You got a minecart first so you earned 64 rails + 8 powered rails" to loop-player
1175 give loop-player 64 rails
1176 give loop-player (8 of ("27" parsed as item))
1177 set {achievementhunters::mi} to true
1178 else if loop-item is a chest:
1179 {achievementhunters::ch} is not set
1180 if {@broadcastachievements} is true:
1181 broadcast "{@P} %loop-player% got a chest first so they earned 64 chests"
1182 else:
1183 send "{@P} You got a chest first so you earned 64 chests" to loop-player
1184 give loop-player 64 chests
1185 set {achievementhunters::ch} to true
1186 else if loop-item is a saddle:
1187 {achievementhunters::sad} is not set
1188 if {@broadcastachievements} is true:
1189 broadcast "{@P} %loop-player% got a saddle first so they earned a horse spawn egg"
1190 else:
1191 send "{@P} You got a saddle first so you earned a horse spawn egg" to loop-player
1192 give loop-player a horse spawn egg
1193 set {achievementhunters::sad} to true
1194 else if loop-item is a ender pearl:
1195 {achievementhunters::ep} is not set
1196 if {@broadcastachievements} is true:
1197 broadcast "{@P} %loop-player% got a ender pearl first so they earned 2 ender pearls"
1198 else:
1199 send "{@P} You got a ender pearl first so you earned 2 ender pearls" to loop-player
1200 give loop-player 2 ender pearls
1201 set {achievementhunters::ep} to true
1202 else if loop-item is a diamond shovel:
1203 {achievementhunters::ds} is not set
1204 if {@broadcastachievements} is true:
1205 broadcast "{@P} %loop-player% got a diamond shovel first so they earned a player head and a creeper spawn egg"
1206 else:
1207 send "{@P} You got a diamond shovel first so you earned a player head and a creeper spawn egg" to loop-player
1208 give loop-player a creeper spawn egg
1209 give loop-player a player head
1210 set {achievementhunters::ds} to true
1211
1212on rightclick on a jukebox:
1213 {achievementhunters::on} is true
1214 loop 12 times:
1215 if "%id of event-player's tool%" is "%2255 + loop-number%":
1216 set {_a} to true
1217 stop loop
1218 if {_a} is true:
1219 {achievementhunters::jb} is not set
1220 if {@broadcastachievements} is true:
1221 broadcast "{@P} %player% played music in a jukebox first so they 8 wooden planks and 1 diamond"
1222 else:
1223 send "{@P} You played music in a jukebox first so you earned 8 wooden planks and 1 diamond"
1224 give player a diamond
1225 give player 8 normal wood planks
1226 set {achievementhunters::jb} to true
1227
1228on death of a witch:
1229 {achievementhunters::on} is true
1230 {achievementhunters::wk} is not set
1231 if {@broadcastachievements} is true:
1232 broadcast "{@P} %player% killed a witch first so they earned 2 splash potions of damage (tier 1)"
1233 else:
1234 send "{@P} You killed a witch first so you earned 2 splash potions of damage (tier 1)"
1235 give player a extended splash damage potion item
1236 set {achievementhunters::wk} to true
1237
1238on damage of a player:
1239 {achievementhunters::on} is true
1240 if {achievementhunters::fd} is not set:
1241 if {@broadcastachievements} is true:
1242 broadcast "{@P} %victim% took first damage so they got their max health decreased to 90%%"
1243 else:
1244 send "{@P} You took first damage so your health was decreased to 90%%" to victim
1245 set victim's max health to 9
1246 set {achievementhunters::fd} to true
1247 if damage cause is fall:
1248 apply slowness 1 to victim for 5 seconds
1249 send "{@P} You took fall damage so you get slowness for 5 seconds (constant achievement)" to victim
1250 if projectile exists:
1251 projectile is a arrow
1252 attacker is set
1253 set {_dist} to distance between attacker's location and victim's location
1254 if {_dist} is between 60 and 99.99:
1255 send "{@P} You got a %{_dist}% longshot on %victim% so you gained 10%%" to attacker
1256 send "{@P} %attacker% got a %{_dist}% longshot on you and gained 10%%" to victim
1257 set attacker's health to (attacker's health + 1)
1258 else if {_dist} is greater than or equal to 100:
1259 send "{@P} You got a %{_dist}% longshot on %victim% so you gained 20%%" to attacker
1260 send "{@P} %attacker% got a %{_dist}% longshot on you and gained 20%%" to victim
1261 set attacker's health to (attacker's health + 2)
1262
1263on death of a player:
1264 {achievementhunters::on} is true
1265 attacker is set
1266 {achievementhunters::fb} is not set
1267 if {@broadcastachievements} is true:
1268 broadcast "{@P} %attacker% killed a player first so they earned a golden apple and 7 gold ingots"
1269 else:
1270 send "{@P} You killed a witch first so you earned a golden apple and 7 gold ingots" to attacker
1271 give player a golden apple
1272 give player 7 gold ingots
1273 set {achievementhunters::fb} to true
1274
1275on rightclick on a flower pot:
1276 {achievementhunters::on} is true
1277 event-player's tool is a cactus
1278 {achievementhunters::fpc} is not set
1279 if {@broadcastachievements} is true:
1280 broadcast "{@P} %player% put a cactus in a flower pot first so they earned a player head"
1281 else:
1282 send "{@P} You put a cactus in a flower pot first so you earned a player head"
1283 give player a player head
1284 set {achievementhunters::fpc} to true
1285
1286on portal:
1287 {achievementhunters::on} is true
1288 {achievementhunters::np} is not set
1289 if {@broadcastachievements} is true:
1290 broadcast "{@P} %player% went through a nether portal first so they earned 4 gold ingots"
1291 else:
1292 send "{@P} You went through a nether portal first so you earned 4 gold ingots"
1293 give player 4 gold ingots
1294 set {achievementhunters::np} to true
1295
1296on craft:
1297 {achievementhunters::on} is true
1298 if event-item is a golden apple:
1299 {achievementhunters::ga} is not set
1300 if {@broadcastachievements} is true:
1301 broadcast "{@P} %player% crafted a golden apple first so they earned a golden apple"
1302 else:
1303 send "{@P} You crafted a golden apple first so you earned a golden apple"
1304 give player a golden apple
1305 set {achievementhunters::ga} to true
1306 else if event-item is a crafting table:
1307 {achievementhunters::ct} is not set
1308 if {@broadcastachievements} is true:
1309 broadcast "{@P} %player% crafted a crafting table first so they earned a stick"
1310 else:
1311 send "{@P} You crafted a crafting table first so you earned a stick"
1312 give player a stick
1313 set {achievementhunters::ct} to true
1314
1315on consume of a golden apple:
1316 {achievementhunters::on} is true
1317 apply weakness 1 to player for 10 seconds
1318 send "{@P} You ate a golden apple so you get weakness for 10 seconds (constant achievement)"
1319
1320
1321
1322
1323
1324
1325
1326
1327variables:
1328 {Baldchicken}=false
1329
1330command /ripbaldchicken <text>:
1331 permission: skript.op
1332 aliases: /bald
1333 trigger:
1334 if arg 1 is "on":
1335 if {Baldchicken} is false:
1336 set {Baldchicken} to true
1337 broadcast "&9[&4Bald Chickens&9] &cEnabled by &6%command sender%&c! &7(rip)"
1338
1339 else:
1340 message "&9[&4Bald Chickens&9] &cAlready Enabled!"
1341
1342 if arg 1 is "off":
1343 if {Baldchicken} is true:
1344 set {Baldchicken} to false
1345 broadcast "&9[&4Bald Chickens&9] &cDisabled by &6%command sender%&c!"
1346 stop
1347
1348 else:
1349 message "&9[&4Bald Chickens&9] &cAlready Disabled!"
1350
1351on death of chicken:
1352 if {Baldchicken} is true:
1353 clear drops
1354 drop 1 of raw chicken at victim
1355
1356
1357on death of skeleton:
1358 if {Baldchicken} is true:
1359 clear drops
1360 drop ((random integer between 4 and 8) of arrow) at victim
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371variables:
1372 {barebones}=false
1373
1374command /barebones <text>:
1375 permission: skript.op
1376 trigger:
1377 if arg 1 is "enable":
1378 if {barebones} is false:
1379 set {barebones} to true
1380 broadcast "<orange>Barebones <purple>is now enabled!"
1381 stop
1382 if {barebones} is true:
1383 message "<red>Barebones is already enabled!"
1384 stop
1385 if arg 1 is "disable":
1386 if {barebones} is true:
1387 set {barebones} to false
1388 broadcast "<orange>Barebones <purple>is now disabled!"
1389 stop
1390 if {barebones} is false:
1391 message "<red>Barebones is already disabled!"
1392 stop
1393 if arg 1 is "toggle":
1394 if {barebones} is true:
1395 set {barebones} to false
1396 broadcast "<orange>Barebones <purple>is now disabled!"
1397 stop
1398 if {barebones} is false:
1399 set {barebones} to true
1400 broadcast "<orange>Barebones <purple>is now enabled!"
1401 stop
1402
1403on mine of gold ore:
1404 if {barebones} is true:
1405 set the block to air
1406 cancel the event
1407 drop 1 iron ingot
1408
1409
1410on mine of diamond ore:
1411 if {barebones} is true:
1412 set the block to air
1413 cancel the event
1414 drop 1 iron ingot
1415
1416
1417on craft of enchantment table:
1418 if {barebones} is true:
1419 cancel the event
1420
1421on craft of anvil:
1422 if {barebones} is true:
1423 cancel the event
1424
1425on craft of golden apple:
1426 if {barebones} is true:
1427 cancel the event
1428
1429on death of a player:
1430 if {barebones} is true:
1431 drop 1 golden apple at the player
1432 drop 1 diamond at the player
1433 drop 32 arrows at the player
1434 drop 2 string at the player