-
Notifications
You must be signed in to change notification settings - Fork 0
/
4-team-bedwars.xml
1659 lines (1659 loc) · 81.2 KB
/
4-team-bedwars.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<map proto="1.4.2">
<!-- Created by Cazadorian, built upon work by _Pear and ElectroidFilms -->
<!-- Include version number : v1.1.0 -->
<objective>Destroy the enemy teams' bed and eliminate them before they get to yours.</objective>
<gamemode>dtm</gamemode>
<gamemode>blitz</gamemode>
<game>Bed Wars</game>
<respawn auto="true" delay="5s"/>
<time>50m</time>
<!-- Blitz and Sudden Death -->
<blitz filter="blitz-conditions" join-filter="joining-filter" scoreboard-filter="blitz-conditions">
<lives>1</lives>
<broadcastLives>false</broadcastLives>
</blitz>
<kits>
<kit id="default" reset-ender-pearls="true">
<helmet unbreakable="true" team-color="true" locked="true" material="leather helmet"/>
<chestplate unbreakable="true" team-color="true" locked="true" material="leather chestplate"/>
<leggings unbreakable="true" team-color="true" locked="true" material="leather leggings"/>
<boots unbreakable="true" team-color="true" locked="true" material="leather boots"/>
<effect duration="4s" amplifier="10">damage_resistance</effect>
<item material="wood sword" unbreakable="true"/>
</kit>
<!-- Team Upgrades -->
<give filter="apply-haste-1">
<kit>
<effect>fast digging</effect>
</kit>
</give>
<give filter="apply-haste-2">
<kit>
<effect amplifier="2">fast digging</effect>
</kit>
</give>
<lend filter="apply-regen">
<kit>
<effect>regeneration</effect>
</kit>
</lend>
<lend filter="apply-fatigue">
<kit>
<effect duration="10s">slow digging</effect>
</kit>
</lend>
<take filter="apply-alarm">
<kit>
<effect>invisibility</effect>
</kit>
</take>
<give filter="apply-freeze">
<kit>
<effect duration="5s">slowness</effect>
<effect duration="5s">blindness</effect>
</kit>
</give>
<!-- Sword Upgrades -->
<kit id="stone-sword-sharp0" deduct-tools="false">
<action>
<replace-item ignore-metadata="true">
<find material="wood sword"/>
<replace material="air"/>
</replace-item>
</action>
<item material="stone sword" unbreakable="true"/>
</kit>
<kit id="iron-sword-sharp0" deduct-tools="false">
<action>
<replace-item ignore-metadata="true">
<find material="wood sword"/>
<replace material="air"/>
</replace-item>
</action>
<item material="iron sword" unbreakable="true"/>
</kit>
<kit id="diamond-sword-sharp0" deduct-tools="false">
<action>
<replace-item ignore-metadata="true">
<find material="wood sword"/>
<replace material="air"/>
</replace-item>
</action>
<item material="diamond sword" unbreakable="true"/>
</kit>
<kit id="stone-sword-sharp1" deduct-tools="false">
<action>
<replace-item ignore-metadata="true">
<find material="wood sword"/>
<replace material="air"/>
</replace-item>
</action>
<item material="stone sword" unbreakable="true" enchantment="sharpness"/>
</kit>
<kit id="iron-sword-sharp1" deduct-tools="false">
<action>
<replace-item ignore-metadata="true">
<find material="wood sword"/>
<replace material="air"/>
</replace-item>
</action>
<item material="iron sword" unbreakable="true" enchantment="sharpness"/>
</kit>
<kit id="diamond-sword-sharp1" deduct-tools="false">
<action>
<replace-item ignore-metadata="true">
<find material="wood sword"/>
<replace material="air"/>
</replace-item>
</action>
<item material="diamond sword" unbreakable="true" enchantment="sharpness"/>
</kit>
<!-- Armor Upgrades -->
<kit id="chainmail-armor-kit" force="true">
<leggings unbreakable="true" locked="true" material="chainmail leggings"/>
<boots unbreakable="true" locked="true" material="chainmail boots"/>
</kit>
<kit id="iron-armor-kit" force="true">
<leggings unbreakable="true" locked="true" material="iron leggings"/>
<boots unbreakable="true" locked="true" material="iron boots" />
</kit>
<kit id="diamond-armor-kit" force="true">
<leggings unbreakable="true" locked="true" material="diamond leggings"/>
<boots unbreakable="true" locked="true" material="diamond boots" />
</kit>
<kit id="chainmail-prot1-kit" force="true">
<leggings unbreakable="true" locked="true" material="chainmail leggings" enchantment="protection:1"/>
<boots unbreakable="true" locked="true" material="chainmail boots" enchantment="protection:1" />
</kit>
<kit id="iron-prot1-kit" force="true">
<leggings unbreakable="true" locked="true" material="iron leggings" enchantment="protection:1"/>
<boots unbreakable="true" locked="true" material="iron boots" enchantment="protection:1" />
</kit>
<kit id="diamond-prot1-kit" force="true">
<leggings unbreakable="true" locked="true" material="diamond leggings" enchantment="protection:1"/>
<boots unbreakable="true" locked="true" material="diamond boots" enchantment="protection:1"/>
</kit>
<kit id="chainmail-prot2-kit" force="true">
<leggings unbreakable="true" locked="true" material="chainmail leggings" enchantment="protection:2"/>
<boots unbreakable="true" locked="true" material="chainmail boots" enchantment="protection:2"/>
</kit>
<kit id="iron-prot2-kit" force="true">
<leggings unbreakable="true" locked="true" material="iron leggings" enchantment="protection:2"/>
<boots unbreakable="true" locked="true" material="iron boots" enchantment="protection:2"/>
</kit>
<kit id="diamond-prot2-kit" force="true">
<leggings unbreakable="true" locked="true" material="diamond leggings" enchantment="protection:2"/>
<boots unbreakable="true" locked="true" material="diamond boots" enchantment="protection:2"/>
</kit>
<kit id="chainmail-prot3-kit" force="true">
<leggings unbreakable="true" locked="true" material="chainmail leggings" enchantment="protection:3"/>
<boots unbreakable="true" locked="true" material="chainmail boots" enchantment="protection:3"/>
</kit>
<kit id="iron-prot3-kit" force="true">
<leggings unbreakable="true" locked="true" material="iron leggings" enchantment="protection:3"/>
<boots unbreakable="true" locked="true" material="iron boots" enchantment="protection:3"/>
</kit>
<kit id="diamond-prot3-kit" force="true">
<leggings unbreakable="true" locked="true" material="diamond leggings" enchantment="protection:3"/>
<boots unbreakable="true" locked="true" material="diamond boots" enchantment="protection:3"/>
</kit>
<kit id="chainmail-prot4-kit" force="true">
<leggings unbreakable="true" locked="true" material="chainmail leggings" enchantment="protection:4"/>
<boots unbreakable="true" locked="true" material="chainmail boots" enchantment="protection:4"/>
</kit>
<kit id="iron-prot4-kit" force="true">
<leggings unbreakable="true" locked="true" material="iron leggings" enchantment="protection:4"/>
<boots unbreakable="true" locked="true" material="iron boots" enchantment="protection:4"/>
</kit>
<kit id="diamond-prot4-kit" force="true">
<leggings unbreakable="true" locked="true" material="diamond leggings" enchantment="protection:4"/>
<boots unbreakable="true" locked="true" material="diamond boots" enchantment="protection:4"/>
</kit>
<!-- Projectiles -->
<kit id="fireball" deduct-items="false">
<item projectile="throwable-fireball" material="fireball" name="`rFireball"/>
</kit>
</kits>
<actions>
<!-- Upgrade variables -->
<set id="haste-dummy-1" var="haste_variable" value="1" scope="player"/>
<set id="haste-dummy-2" var="haste_variable" value="2" scope="player"/>
<set id="regen-dummy" var="regen_variable" value="1" scope="player"/>
<set id="sharpness-dummy" var="sharpness_variable" value="1" scope="player"/>
<set id="protection-dummy-1" var="protection_variable" value="1" scope="player"/>
<set id="protection-dummy-2" var="protection_variable" value="2" scope="player"/>
<set id="protection-dummy-3" var="protection_variable" value="3" scope="player"/>
<set id="protection-dummy-4" var="protection_variable" value="4" scope="player"/>
<set id="generator-dummy-1" var="generator_variable" value="1" scope="player"/>
<set id="generator-dummy-2" var="generator_variable" value="2" scope="player"/>
<set id="generator-dummy-3" var="generator_variable" value="3" scope="player"/>
<set id="generator-dummy-4" var="generator_variable" value="4" scope="player"/>
<set id="freeze-dummy" var="freeze_variable" value="1" scope="player"/>
<set id="fatigue-dummy" var="fatigue_variable" value="1" scope="player"/>
<set id="alarm-dummy" var="alarm_variable" value="1" scope="player"/>
<!-- Sudden death variable handling -->
<action id="sudden-death" expose="true" filter="sudden-death-unstarted" scope="match">
<set var="sudden_death_variable" value="1"/>
</action>
<trigger action="sudden-death" scope="match">
<filter>
<time>29m</time>
</filter>
</trigger>
<trigger scope="match">
<filter>
<after message="`cSudden Death `rWill Begin In {0}" duration="60s" filter="sudden-death-counting"/>
</filter>
<action>
<message id="sudden-death-title" fade-in="0.5s" stay="2s" fade-out="0.5s">
<title>`cSUDDEN `cDEATH!</title>
<subtitle>`fYou `fcan `fno `flonger `frespawn.</subtitle>
</message>
<set var="sudden_death_variable" value="2"/>
<fill region="team-beds" material="air" events="true"/>
</action>
</trigger>
<!-- Sharpness replacements -->
<action id="sharpness-replacements" scope="player">
<replace-item ignore-metadata="true">
<find material="wood sword"/>
<replace material="wood sword" unbreakable="true" enchantment="sharpness"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="stone sword"/>
<replace material="stone sword" unbreakable="true" enchantment="sharpness"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="iron sword"/>
<replace material="iron sword" unbreakable="true" enchantment="sharpness"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="diamond sword"/>
<replace material="diamond sword" unbreakable="true" enchantment="sharpness"/>
</replace-item>
</action>
<!-- Protection replacements -->
<action id="protection-replacement-1" scope="player">
<replace-item ignore-metadata="true">
<find material="leather boots"/>
<replace material="leather boots" team-color="true" unbreakable="true" enchantment="protection"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="leather leggings"/>
<replace material="leather leggings" team-color="true" unbreakable="true" enchantment="protection"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="chainmail boots"/>
<replace material="chainmail boots" unbreakable="true" enchantment="protection"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="chainmail leggings"/>
<replace material="chainmail leggings" unbreakable="true" enchantment="protection"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="iron boots"/>
<replace material="iron boots" unbreakable="true" enchantment="protection"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="iron leggings"/>
<replace material="iron leggings" unbreakable="true" enchantment="protection"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="diamond boots"/>
<replace material="diamond boots" unbreakable="true" enchantment="protection"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="diamond leggings"/>
<replace material="diamond leggings" unbreakable="true" enchantment="protection"/>
</replace-item>
</action>
<action id="protection-replacement-2" scope="player">
<replace-item ignore-metadata="true">
<find material="leather boots"/>
<replace material="leather boots" unbreakable="true" team-color="true" enchantment="protection:2"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="leather leggings"/>
<replace material="leather leggings" unbreakable="true" team-color="true" enchantment="protection:2"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="chainmail boots"/>
<replace material="chainmail boots" unbreakable="true" enchantment="protection:2"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="chainmail leggings"/>
<replace material="chainmail leggings" unbreakable="true" enchantment="protection:2"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="iron boots"/>
<replace material="iron boots" unbreakable="true" enchantment="protection:2"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="iron leggings"/>
<replace material="iron leggings" unbreakable="true" enchantment="protection:2"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="diamond boots"/>
<replace material="diamond boots" unbreakable="true" enchantment="protection:2"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="diamond leggings"/>
<replace material="diamond leggings" unbreakable="true" enchantment="protection:2"/>
</replace-item>
</action>
<action id="protection-replacement-3" scope="player">
<replace-item ignore-metadata="true">
<find material="leather boots"/>
<replace material="leather boots" unbreakable="true" team-color="true" enchantment="protection:3"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="leather leggings"/>
<replace material="leather leggings" unbreakable="true" team-color="true" enchantment="protection:3"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="chainmail boots"/>
<replace material="chainmail boots" unbreakable="true" enchantment="protection:3"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="chainmail leggings"/>
<replace material="chainmail leggings" unbreakable="true" enchantment="protection:3"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="iron boots"/>
<replace material="iron boots" unbreakable="true" enchantment="protection:3"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="iron leggings"/>
<replace material="iron leggings" unbreakable="true" enchantment="protection:3"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="diamond boots"/>
<replace material="diamond boots" unbreakable="true" enchantment="protection:3"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="diamond leggings"/>
<replace material="diamond leggings" unbreakable="true" enchantment="protection:3"/>
</replace-item>
</action>
<action id="protection-replacement-4" scope="player">
<replace-item ignore-metadata="true">
<find material="leather boots"/>
<replace material="leather boots" unbreakable="true" team-color="true" enchantment="protection:4"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="leather leggings"/>
<replace material="leather leggings" unbreakable="true" team-color="true" enchantment="protection:4"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="chainmail boots"/>
<replace material="chainmail boots" unbreakable="true" enchantment="protection:4"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="chainmail leggings"/>
<replace material="chainmail leggings" unbreakable="true" enchantment="protection:4"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="iron boots"/>
<replace material="iron boots" unbreakable="true" enchantment="protection:4"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="iron leggings"/>
<replace material="iron leggings" unbreakable="true" enchantment="protection:4"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="diamond boots"/>
<replace material="diamond boots" unbreakable="true" enchantment="protection:4"/>
</replace-item>
<replace-item ignore-metadata="true">
<find material="diamond leggings"/>
<replace material="diamond leggings" unbreakable="true" enchantment="protection:4"/>
</replace-item>
</action>
<!-- Tool downgrades -->
<action id="tool-downgrades" scope="player">
<replace-item>
<find material="iron pickaxe" unbreakable="true" enchantment="efficiency:2"/>
<replace material="wood pickaxe" unbreakable="true" enchantment="efficiency:1"/>
</replace-item>
<replace-item>
<find material="gold pickaxe" unbreakable="true" enchantment="efficiency:3;sharpness:2"/>
<replace material="iron pickaxe" unbreakable="true" enchantment="efficiency:2"/>
</replace-item>
<replace-item>
<find material="diamond pickaxe" unbreakable="true" enchantment="efficiency:3"/>
<replace material="gold pickaxe" unbreakable="true" enchantment="efficiency:3;sharpness:2"/>
</replace-item>
<replace-item>
<find material="stone axe" unbreakable="true" enchantment="efficiency:1"/>
<replace material="wood axe" unbreakable="true" enchantment="efficiency:1"/>
</replace-item>
<replace-item>
<find material="iron axe" unbreakable="true" enchantment="efficiency:2"/>
<replace material="stone axe" unbreakable="true" enchantment="efficiency:1"/>
</replace-item>
<replace-item>
<find material="diamond axe" unbreakable="true" enchantment="efficiency:3"/>
<replace material="iron axe" unbreakable="true" enchantment="efficiency:2"/>
</replace-item>
</action>
<!-- Item removal actions -->
<action id="remove-empty-bucket" scope="player">
<replace-item ignore-metadata="true">
<find material="bucket"/>
<replace material="air"/>
</replace-item>
</action>
<trigger filter="carrying-empty-bucket" trigger="remove-empty-bucket" scope="player"/>
<!-- Upgrade alerts -->
<message id="sharpness-alert-1" text="`bYour sword has been upgraded to `4`lSharpness I`r`b!"/>
<trigger filter="sharpness-1" trigger="sharpness-alert-1" scope="player"/>
<message id="protection-alert-1" text="`bYour armour has been upgraded to `9`lProtection I`r`b!"/>
<trigger filter="protection-1" trigger="protection-alert-1" scope="player"/>
<message id="protection-alert-2" text="`bYour armour has been upgraded to `9`lProtection II`r`b!"/>
<trigger filter="protection-2" trigger="protection-alert-2" scope="player"/>
<message id="protection-alert-3" text="`bYour armour has been upgraded to `9`lProtection III`r`b!"/>
<trigger filter="protection-3" trigger="protection-alert-3" scope="player"/>
<message id="protection-alert-4" text="`bYour armour has been upgraded to `9`lProtection IV`r`b!"/>
<trigger filter="protection-4" trigger="protection-alert-4" scope="player"/>
<message id="generator-alert-1" text="`bYour resource generator has been upgraded to `e`lLevel I`r`b!"/>
<trigger filter="generator-1" trigger="generator-alert-1" scope="player"/>
<message id="generator-alert-2" text="`bYour resource generator has been upgraded to `e`lLevel II`r`b!"/>
<trigger filter="generator-2" trigger="generator-alert-2" scope="player"/>
<message id="generator-alert-3" text="`bYour resource generator has been upgraded to `e`lLevel III`r`b!"/>
<trigger filter="generator-3" trigger="generator-alert-3" scope="player"/>
<message id="generator-alert-4" text="`bYour resource generator has been upgraded to `e`lLevel IV`r`b!"/>
<trigger filter="generator-4" trigger="generator-alert-4" scope="player"/>
<message id="haste-alert-1" text="`bYour team now has `e`lHaste I`r`b!"/>
<trigger filter="haste-1" trigger="haste-alert-1" scope="player"/>
<message id="haste-alert-2" text="`bYour team now has `e`lHaste II`r`b!"/>
<trigger filter="haste-2" trigger="haste-alert-2" scope="player"/>
<message id="regeneration-alert-1" text="`bYour team's base now has `d`lRegeneration I`r`b!"/>
<trigger filter="regen-1" trigger="regeneration-alert-1" scope="player"/>
<message id="freeze-alert-1" text="`bYour team's base now has a `3`lFreeze Trap`r`b!"/>
<trigger filter="freeze-1" trigger="freeze-alert-1" scope="player"/>
<message id="fatigue-alert-1" text="`bYour team's base now has a `7`lMining Fatigue Trap`r`b!"/>
<trigger filter="fatigue-1" trigger="fatigue-alert-1" scope="player"/>
<message id="alarm-alert-1" text="`bYour team's base now has an `d`lAlarm Trap`r`b!"/>
<trigger filter="alarm-1" trigger="alarm-alert-1" scope="player"/>
<!-- Enchantment triggers -->
<trigger filter="apply-sharpness" trigger="sharpness-replacements" scope="player"/>
<trigger filter="apply-protection-1" trigger="protection-replacement-1" scope="player"/>
<trigger filter="apply-protection-2" trigger="protection-replacement-2" scope="player"/>
<trigger filter="apply-protection-3" trigger="protection-replacement-3" scope="player"/>
<trigger filter="apply-protection-4" trigger="protection-replacement-4" scope="player"/>
<trigger filter="respawned" trigger="tool-downgrades" scope="player"/>
<!-- Destruction alert -->
<message id="destroy-title" fade-in="0.5s" stay="2s" fade-out="0.5s">
<title>`cBED `cDESTROYED!</title>
<subtitle>`fYou `fcan `fno `flonger `frespawn.</subtitle>
</message>
<trigger filter="bed-destroy-message" trigger="destroy-title" scope="player"/>
<!-- Magic Milk actions -->
<action id="immune-to-trap" scope="player">
<set var="trap_immunity_variable" value="2"/>
<message text="`bYou are immune to traps for `c30 seconds`b!"/>
<!-- This will be triggered by "trap-immunity-consumable" -->
</action>
<action id="not-immune-to-trap" scope="player">
<set var="trap_immunity_variable" value="1"/>
<message text="`bYou are now vulnerable to traps as your immunity worn off!"/>
</action>
<trigger action="not-immune-to-trap" filter="after-trap-immunity" scope="player"/>
<action id="outside-of-base" scope="player">
<!-- Reset trap immunity variable if player are outside of their base -->
<set var="trap_immunity_variable" value="0"/>
</action>
<trigger action="outside-of-base" filter="outside-any-base" scope="player"/>
</actions>
<variables>
<variable id="trap_immunity_variable" scope="player"/>
<variable id="haste_variable" scope="team"/>
<variable id="regen_variable" scope="team"/>
<variable id="sharpness_variable" scope="team"/>
<variable id="protection_variable" scope="team"/>
<variable id="generator_variable" scope="team"/>
<variable id="freeze_variable" scope="team"/>
<variable id="fatigue_variable" scope="team"/>
<variable id="alarm_variable" scope="team"/>
<variable id="sudden_death_variable" scope="match"/>
</variables>
<filters>
<!-- Time Filters -->
<not id="diamond-1">
<time>6m</time>
</not>
<not id="diamond-2">
<any>
<filter id="diamond-1"/>
<time>18m</time>
</any>
</not>
<time id="diamond-3">18m</time>
<not id="emerald-1">
<time>12m</time>
</not>
<not id="emerald-2">
<any>
<filter id="emerald-1"/>
<time>24m</time>
</any>
</not>
<time id="emerald-3">24m</time>
<!-- Magic Milk immunity -->
<after id="after-trap-immunity" duration="30s">
<variable var="trap_immunity_variable">2</variable>
</after>
<all id="outside-any-base">
<variable var="trap_immunity_variable">1</variable>
<not>
<any>
<region id="team-one-base-region"/>
<region id="team-two-base-region"/>
<region id="team-three-base-region"/>
<region id="team-four-base-region"/>
</any>
</not>
</all>
<!-- Team Filters -->
<team id="only-team-one">team-one</team>
<team id="only-team-two">team-two</team>
<team id="only-team-three">team-three</team>
<team id="only-team-four">team-four</team>
<deny id="deny-players">
<participating/>
</deny>
<alive id="respawned"/>
<!-- Sudden Death/Monuments Filters -->
<any id="blitz-conditions">
<!-- Triggers blitz for a team if their bed monument is destroyed in under 30 minutes -->
<filter id="bed-destruction"/>
<!-- Failsafe to guarantee blitz after 30m sudden death happens -->
<time>30m</time>
</any>
<any id="bed-destruction">
<all>
<team>team-one</team>
<objective any="true">team-one-bed-broken</objective>
</all>
<all>
<team>team-two</team>
<objective any="true">team-two-bed-broken</objective>
</all>
<all>
<team>team-three</team>
<objective any="true">team-three-bed-broken</objective>
</all>
<all>
<team>team-four</team>
<objective any="true">team-four-bed-broken</objective>
</all>
</any>
<not id="joining-filter">
<any>
<completed>team-one-bed-broken</completed>
<completed>team-two-bed-broken</completed>
<completed>team-three-bed-broken</completed>
<completed>team-four-bed-broken</completed>
</any>
</not>
<not id="team-one-scoreboard-filter">
<completed>team-one-bed-broken</completed>
</not>
<not id="team-two-scoreboard-filter">
<completed>team-two-bed-broken</completed>
</not>
<not id="team-three-scoreboard-filter">
<completed>team-three-bed-broken</completed>
</not>
<not id="team-four-scoreboard-filter">
<completed>team-four-bed-broken</completed>
</not>
<all id="bed-destroy-message">
<filter id="bed-destruction"/>
<not>
<filter id="sudden-death-enabled"/>
</not>
</all>
<variable id="sudden-death-unstarted" var="sudden_death_variable">0</variable>
<variable id="sudden-death-counting" var="sudden_death_variable">1</variable>
<variable id="sudden-death-enabled" var="sudden_death_variable">2</variable>
<!-- Team Spawn Chests Filter -->
<any id="team-one-status">
<team>team-one</team>
<objective any="true">team-one-bed-broken</objective>
</any>
<any id="team-two-status">
<team>team-two</team>
<objective any="true">team-two-bed-broken</objective>
</any>
<any id="team-three-status">
<team>team-three</team>
<objective any="true">team-three-bed-broken</objective>
</any>
<any id="team-four-status">
<team>team-four</team>
<objective any="true">team-four-bed-broken</objective>
</any>
<!-- Building Filters -->
<deny id="original-block-protection-filter"> <!-- List of blocks in the original map that players can modify while keeping the map intact -->
<blocks region="original-block-protection">
<not>
<any>
<material>air</material>
<material>water</material>
<material>stationary water</material>
<material>yellow flower</material>
<material>red rose</material>
<material>red mushroom</material>
<material>brown mushroom</material>
<material>double plant</material>
<material>long grass</material>
<material>dead bush</material>
<material>bed block</material>
</any>
</not>
</blocks>
</deny>
<deny id="tnt-immune"> <!-- List of blocks that will be protected against TNT explosions -->
<all>
<cause>explosion</cause>
<any>
<material>stained glass</material>
<material>bed block</material>
</any>
</all>
</deny>
<deny id="prevent-interact"> <!-- List of blocks that players cannot interact with -->
<any>
<material>workbench</material>
<material>furnace</material>
<material>beacon</material>
<material>anvil</material>
</any>
</deny>
<!-- Team Upgrade Systems -->
<all id="apply-sharpness">
<variable var="sharpness_variable">1</variable>
<alive/>
</all>
<all id="apply-protection-1">
<variable var="protection_variable">1</variable>
<alive/>
</all>
<all id="apply-protection-2">
<variable var="protection_variable">2</variable>
<alive/>
</all>
<all id="apply-protection-3">
<variable var="protection_variable">3</variable>
<alive/>
</all>
<all id="apply-protection-4">
<variable var="protection_variable">4</variable>
<alive/>
</all>
<all id="apply-haste-1">
<variable var="haste_variable">1</variable>
<alive/>
</all>
<all id="apply-haste-2">
<variable var="haste_variable">2</variable>
<alive/>
</all>
<all id="apply-regen">
<variable var="regen_variable">1</variable>
<alive/>
<any>
<all>
<team>team-one</team>
<region id="team-one-base-region"/>
</all>
<all>
<team>team-two</team>
<region id="team-two-base-region"/>
</all>
<all>
<team>team-three</team>
<region id="team-three-base-region"/>
</all>
<all>
<team>team-four</team>
<region id="team-four-base-region"/>
</all>
</any>
</all>
<!-- Traps -->
<all id="team-one-trap">
<not>
<team>team-one</team>
</not>
<not>
<completed>team-one-bed-broken</completed>
</not>
<variable var="trap_immunity_variable">0</variable>
<region id="team-one-base-region"/>
</all>
<all id="team-two-trap">
<not>
<team>team-two</team>
</not>
<not>
<completed>team-two-bed-broken</completed>
</not>
<variable var="trap_immunity_variable">0</variable>
<region id="team-two-base-region"/>
</all>
<all id="team-three-trap">
<not>
<team>team-three</team>
</not>
<not>
<completed>team-three-bed-broken</completed>
</not>
<variable var="trap_immunity_variable">0</variable>
<region id="team-three-base-region"/>
</all>
<all id="team-four-trap">
<not>
<team>team-four</team>
</not>
<not>
<completed>team-four-bed-broken</completed>
</not>
<variable var="trap_immunity_variable">0</variable>
<region id="team-four-base-region"/>
</all>
<all id="apply-freeze">
<alive/>
<any>
<all>
<filter id="team-one-trap"/>
<region id="team-one-base-region"/>
<variable var="freeze_variable" team="team-one">1</variable>
</all>
<all>
<filter id="team-two-trap"/>
<region id="team-two-base-region"/>
<variable var="freeze_variable" team="team-two">1</variable>
</all>
<all>
<filter id="team-three-trap"/>
<region id="team-three-base-region"/>
<variable var="freeze_variable" team="team-three">1</variable>
</all>
<all>
<filter id="team-four-trap"/>
<region id="team-four-base-region"/>
<variable var="freeze_variable" team="team-four">1</variable>
</all>
</any>
</all>
<all id="apply-fatigue">
<alive/>
<any>
<all>
<filter id="team-one-trap"/>
<variable var="fatigue_variable" team="team-one">1</variable>
</all>
<all>
<filter id="team-two-trap"/>
<variable var="fatigue_variable" team="team-two">1</variable>
</all>
<all>
<filter id="team-three-trap"/>
<variable var="fatigue_variable" team="team-three">1</variable>
</all>
<all>
<filter id="team-four-trap"/>
<variable var="fatigue_variable" team="team-four">1</variable>
</all>
</any>
</all>
<all id="apply-alarm">
<any>
<all>
<filter id="team-one-trap"/>
<variable var="alarm_variable" team="team-one">1</variable>
</all>
<all>
<filter id="team-two-trap"/>
<variable var="alarm_variable" team="team-two">1</variable>
</all>
<all>
<filter id="team-three-trap"/>
<variable var="alarm_variable" team="team-three">1</variable>
</all>
<all>
<filter id="team-four-trap"/>
<variable var="alarm_variable" team="team-four">1</variable>
</all>
</any>
</all>
<!-- Resource generator upgrades -->
<variable id="team-two-generator-1" var="generator_variable" team="team-two">[1,oo)</variable>
<variable id="team-one-generator-1" var="generator_variable" team="team-one">[1,oo)</variable>
<variable id="team-three-generator-1" var="generator_variable" team="team-three">[1,oo)</variable>
<variable id="team-four-generator-1" var="generator_variable" team="team-four">[1,oo)</variable>
<variable id="team-two-generator-2" var="generator_variable" team="team-two">[2,oo)</variable>
<variable id="team-one-generator-2" var="generator_variable" team="team-one">[2,oo)</variable>
<variable id="team-three-generator-2" var="generator_variable" team="team-three">[2,oo)</variable>
<variable id="team-four-generator-2" var="generator_variable" team="team-four">[2,oo)</variable>
<variable id="team-two-generator-3" var="generator_variable" team="team-two">[3,oo)</variable>
<variable id="team-one-generator-3" var="generator_variable" team="team-one">[3,oo)</variable>
<variable id="team-three-generator-3" var="generator_variable" team="team-three">[3,oo)</variable>
<variable id="team-four-generator-3" var="generator_variable" team="team-four">[3,oo)</variable>
<variable id="team-two-generator-4" var="generator_variable" team="team-two">[4,oo)</variable>
<variable id="team-one-generator-4" var="generator_variable" team="team-one">[4,oo)</variable>
<variable id="team-three-generator-4" var="generator_variable" team="team-three">[4,oo)</variable>
<variable id="team-four-generator-4" var="generator_variable" team="team-four">[4,oo)</variable>
<!-- Upgrade visibility filters -->
<variable id="haste-0" var="haste_variable">0</variable>
<variable id="haste-1" var="haste_variable">1</variable>
<variable id="haste-2" var="haste_variable">2</variable>
<variable id="protection-0" var="protection_variable">0</variable>
<variable id="protection-1" var="protection_variable">1</variable>
<variable id="protection-2" var="protection_variable">2</variable>
<variable id="protection-3" var="protection_variable">3</variable>
<variable id="protection-4" var="protection_variable">4</variable>
<variable id="generator-0" var="generator_variable">0</variable>
<variable id="generator-1" var="generator_variable">1</variable>
<variable id="generator-2" var="generator_variable">2</variable>
<variable id="generator-3" var="generator_variable">3</variable>
<variable id="generator-4" var="generator_variable">4</variable>
<variable id="sharpness-0" var="sharpness_variable">0</variable>
<variable id="sharpness-1" var="sharpness_variable">1</variable>
<variable id="regen-0" var="regen_variable">0</variable>
<variable id="freeze-0" var="freeze_variable">0</variable>
<variable id="fatigue-0" var="fatigue_variable">0</variable>
<variable id="alarm-0" var="alarm_variable">0</variable>
<variable id="regen-1" var="regen_variable">1</variable>
<variable id="freeze-1" var="freeze_variable">1</variable>
<variable id="fatigue-1" var="fatigue_variable">1</variable>
<variable id="alarm-1" var="alarm_variable">1</variable>
<!-- Item removal filters -->
<carrying id="carrying-empty-bucket" ignore-metadata="true">
<item material="bucket"/>
</carrying>
<!-- Tool visibility filters -->
<not id="not-wood-pickaxe">
<any>
<carrying>
<item material="wood pickaxe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
<carrying>
<item material="iron pickaxe" unbreakable="true" enchantment="efficiency:2"/>
</carrying>
<carrying>
<item material="gold pickaxe" unbreakable="true" enchantment="efficiency:3;sharpness:2"/>
</carrying>
<carrying>
<item material="diamond pickaxe" unbreakable="true" enchantment="efficiency:3"/>
</carrying>
</any>
</not>
<not id="not-iron-pickaxe">
<any>
<carrying>
<item material="iron pickaxe" unbreakable="true" enchantment="efficiency:2"/>
</carrying>
<carrying>
<item material="gold pickaxe" unbreakable="true" enchantment="efficiency:3;sharpness:2"/>
</carrying>
<carrying>
<item material="diamond pickaxe" unbreakable="true" enchantment="efficiency:3"/>
</carrying>
<not>
<carrying>
<item material="wood pickaxe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
</not>
</any>
</not>
<not id="not-gold-pickaxe">
<any>
<carrying>
<item material="wood pickaxe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
<carrying>
<item material="gold pickaxe" unbreakable="true" enchantment="efficiency:3;sharpness:2"/>
</carrying>
<carrying>
<item material="diamond pickaxe" unbreakable="true" enchantment="efficiency:3"/>
</carrying>
<not>
<carrying>
<item material="iron pickaxe" unbreakable="true" enchantment="efficiency:2"/>
</carrying>
</not>
</any>
</not>
<not id="not-diamond-pickaxe">
<any>
<carrying>
<item material="wood pickaxe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
<carrying>
<item material="iron pickaxe" unbreakable="true" enchantment="efficiency:2"/>
</carrying>
<carrying>
<item material="diamond pickaxe" unbreakable="true" enchantment="efficiency:3"/>
</carrying>
<not>
<carrying>
<item material="gold pickaxe" unbreakable="true" enchantment="efficiency:3;sharpness:2"/>
</carrying>
</not>
</any>
</not>
<not id="not-wood-axe">
<any>
<carrying>
<item material="wood axe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
<carrying>
<item material="stone axe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
<carrying>
<item material="iron axe" unbreakable="true" enchantment="efficiency:2"/>
</carrying>
<carrying>
<item material="diamond axe" unbreakable="true" enchantment="efficiency:3"/>
</carrying>
</any>
</not>
<not id="not-stone-axe">
<any>
<carrying>
<item material="stone axe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
<carrying>
<item material="iron axe" unbreakable="true" enchantment="efficiency:2"/>
</carrying>
<carrying>
<item material="diamond axe" unbreakable="true" enchantment="efficiency:3"/>
</carrying>
<not>
<carrying>
<item material="wood axe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
</not>
</any>
</not>
<not id="not-iron-axe">
<any>
<carrying>
<item material="wood axe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
<carrying>
<item material="iron axe" unbreakable="true" enchantment="efficiency:2"/>
</carrying>
<carrying>
<item material="diamond axe" unbreakable="true" enchantment="efficiency:3"/>
</carrying>
<not>
<carrying>
<item material="stone axe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
</not>
</any>
</not>
<not id="not-diamond-axe">
<any>
<carrying>
<item material="wood axe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
<carrying>
<item material="stone axe" unbreakable="true" enchantment="efficiency:1"/>
</carrying>
<carrying>
<item material="diamond axe" unbreakable="true" enchantment="efficiency:3"/>
</carrying>
<not>
<carrying>
<item material="iron axe" unbreakable="true" enchantment="efficiency:2"/>
</carrying>
</not>
</any>
</not>
<not id="not-shears">
<carrying ignore-metadata="true">
<item material="shears"/>
</carrying>
</not>
<!-- Armour visibility filters -->
<all id="chainmail-set-0">
<not>
<any>
<wearing ignore-metadata="true">
<item material="chainmail boots"/>
</wearing>
<wearing ignore-metadata="true">
<item material="iron boots"/>
</wearing>
<wearing ignore-metadata="true">
<item material="diamond boots"/>
</wearing>
</any>
</not>
<filter id="protection-0"/>
</all>
<all id="iron-set-0">