Paste #60065: Diff note for paste #60064

Date: 2019/11/09 05:47:41 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


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


-################################################################################
-#
-#                            d W o r l d E d i t o r
-#
-#
-#   Authors: |Anthony|, mcmonkey
-#   Version: 0.21
-#   dScript Version: 0.9.6-DEV-b54
-#
-#
-#
-#--- About this script
-#
-#  This is a basic recreation of WorldEdit in denizen
-#
-#--- Permission nodes
-#  dwe.basic: use the /dwe command
-#  dwe.admin:  Admin commands
-#  dwe.chunk:  Set the chunk you are standing in as your selection
-#  dwe.contract:  Contract your region selection
-#  dwe.expand:  Expand your region selection
-#  dwe.inset:  Inset your region selection
+CraftBukkit Version: git-Spigot-1304 (MC: 1.7.2)
+Active Plugins: 2WorldBorder: 1.7.7, 2iTags: 2.1.1, 2Buycraft: 6.4, 2mcore: 7.0.1, 2Vault: 1.2.31-b411, 
+2Multiverse-Core: 2.5-b677, 2MobBountyReloaded: 376, 2Whitelist: 3.3, 2MCDocs: 14.4, 
+2CityGates: 1.7, 2Chairs: 3.3.beta, 2ItemAttributes: 1.2.0-SNAPSHOT-b102, 2EnderPearlCoolDown: 1.4, 
+2MOTD: 1.0.3, 2WhatIsIt: 1.3.7, 2BanManager: 3.13, 2ProtocolLib: 3.1.2, 2Votifier: 1.9, 
+2MobArena: 0.96.2, 2Catacombs: 3.6, 2ToughAnvils: 1.1-SNAPSHOT, 2GAListener: 0.9, 
+2Citizens: 2.0.11-SNAPSHOT (build 1071), 2Referrals: 0.463, 2AlphaChest: 1.16.0, 
+2WorldEdit: 5.5.9-SNAPSHOT:3000-ab0d170,master, 2MythicDrops: 3.0.0-SNAPSHOT-b307-STABLE, 
+2VotifierCount: 1.0.5, 2PermissionsEx: 1.20.4, 2HealthBar: 1.8.1, 2CombatTag: 6.0.2, 
+2WorldGuard: 5.8.1-SNAPSHOT:1268-2df3290,master with custom flags plugin., 2Give All: 0.1, 
+2PvPTimer: 1.2, 2CombatApples: 1.0, 2MobSpawnControl: 2.4.4, 2massivetickets: 1.2.0, 
+2NoFarm: 0.8, 2ClearLag: 2.6.2, 2Herochat: 5.6.7-SNAPSHOT, 2TrophyHeads: 1.12.6, 
+2AutoAnnouncer: 1.7-03.23, 2CommunityBridge: 2.1.3.341, 2Essentials: Pre2.13.1.2, 
+2HyperConomy: 0.974.3, 2floAuction: 2.10.3, 2SilkSpawners: 3.3.4, 2HyperMerchant: 1.4-dev, 
+2LeveledMobs: 13.0, 2Denizen: 0.9.4-SNAPSHOT (build Unknown), 2WGCustomFlags: 1.6, 
+2mcMMO: 1.5.00-SNAPSHOT-b96, 2SimpleRegionMarket: 3.6, 2EssentialsProtect: Pre2.13.1.2, 
+2EssentialsSpawn: Pre2.13.1.2, 2BattleTracker: 2.5.8.4, 2EssentialsGeoIP: Pre2.13.1.2, 
+2VanishNoPacket: 3.18.7, 2WGBlockRestricter: 1.7, 2AuthMe: 3.2, 2CompatNoCheatPlus: 6.4.5-SNAPSHOT-sMD5NET-b64, 
+2NoCheatPlus: 3.10.8-SNAPSHOT-sMD5NET-b655, 2Factions: 2.3.0, 2ObsidianDestroyer: 4.1.3, 
+2Sentry: 1.7.1, 2BattleArena: 3.9.5.8, 2FactionAlert: 0.1-Beta
+Loaded Worlds: world, world_nether, world_the_end
+Online Players: TheRealKeith7(TheRealKeith)
-#  dwe.outset:  Outset your region selection
-#  dwe.pos:  Use commands to set selection positions
-#  dwe.set:  Set the blocks in a selection
-#  dwe.shift:  Shift your selection
-#  dwe.show:  Show your current region selection
-#  dwe.wand:  Get the region selection wand
-#  dwe.undo:  Undo previous edits
-#
-#
-# TODO:
-#  - Selection
-#    - Inset
-#    - Outset
-#    - Shift
-#  - Editing & Clipboard
-#    - Copy
-#    - Paste
-#    - Stack
-#    - Rotate
-#  - Permissions
-#    - Permissions for each individual command
-#    - Parent permissions for categories (selection,tool,navigation)
-#  - Config File
-#    - Maxblocks to change per operation
-#    - Undo history size
-#    - async-blockedit
-#
-#
-################################################################################
-#
-#  dWE World Events Script
-#
-#  This should cover all dWE related world events.
-#
-dWE_Events:
-  type: world
-  debug: false
-  events:
-    on player clicks block:
-      - if <c.item.scriptname.split[_].get[1].is[!=].to[dWE]||true> queue clear
-      - determine passively CANCELLED
-      - inject <c.item.scriptname.as_script> instantly
 
-dWE_Msg:
-  type: item
-  debug: false
-  material: i@human_skull
-  display name: "<&4>     [<&6>dWE<&4>]"
-  lore:
-  - <&5>Click for Help
-  script:
-    - ^define text '<&4>[<&6>dWE<&4>]'
-    - ^define hover '{<i@dWE_Msg.json>}'
-    - ^define click '/dwe help'
-    - ^define button "text:'%text%',clickEvent:{action:run_command,value:'%click%'},hoverEvent:{action:show_item,value:'%hover%'}"
-    - ^define spacer "text:'  '"
-    - ^define msg "text:'%1%'"
-    - ^execute as_server "tellraw <player.name> {text:'',extra:[{%button%},{%spacer%},{%msg%}]}"
-
-  set_Pos:
-    - inject s@dWE_Commands p:selection_Size instantly
-    - run s@dWE_Msg 'def:<&f>POS%pos%<&co>  <&3><&o><def[pos%pos%].replace[,].with[<&7>, <&3><&o>]>  <&7>(<&o>%size%<&7>)'
-
-  set_pos1:
-    - run s@dWE_Msg 'def:<&f>Selection started at <&3><&o><def[cuboid].min.simple.replace[,].with[<&7>,<&3><&o>]>'
-
-  set_pos2:
-    - inject s@dWE_Commands p:selection_Size instantly
-    - run s@dWE_Msg 'def:<&f>Selection expanded to include<&co> <&3><&o><context.location.simple.replace[,].with[<&7>,<&3><&o>]> <&7>(<&o>%size%<&7>)'
-
-  shift:
-    - inject s@dWE_Commands p:selection_Size instantly
-    - run s@dWE_Msg 'def:<&f>Shifted<&f>  <&7><&o>%direction% <&7>by <&o>%n% <&7>blocks (<&o>%size%<&7>)'
+10:50:45 [INFO] e+&gt; 8Executing 'eEvent8': 8Type='eon entity damages entity8'  
+                   8Container='bLIFESTEAL1e(WORLD)8'  8Player='eTheRealKeith8'  
+                   8Context='e{cause=ENTITY_ATTACK, damager=p@TheRealKeith, 
+                   entity=e@1645, damage=11.5}8' 
+10:50:45 [INFO] d+- Building event 'ON ENTITY DAMAGES ENTITY' for 
+                   LIFESTEAL1 ---------+ 
+10:50:45 [INFO] d fStarting InstantQueue 'ENEENNDNIE'... 
+10:50:45 [INFO] d+- Executing dCommand: IF/TheRealKeith ---------+ 
+10:50:45 [INFO] d fFilled tag &lt;context.damager.is_player&gt; with 'true'. 
+10:50:45 [INFO] d feComparable 1: fLogic='NEGATIVE', 
+                   Comparable='Boolean(btruef)', Operator='EQUALS', 
+                   ComparedTo='Boolean(btruef)' e--&gt; OUTCOME='false' 
+10:50:45 [INFO] d+- Executing dCommand: IF/TheRealKeith ---------+ 
+10:50:45 [INFO] d fFilled tag &lt;player.item_in_hand.lore&gt; with 'li@FType: 
+                   Diamond Sword|6An item only the legendary can 
+                   hold.|6Lifesteal 
+                   III|6(Socket)|6(Socket)|6(Socket)|6(Socket)|6(Socket)|9+3 
+                   Lifesteal|4Lifesteal does not stack|4Cannot lifesteal when 
+                   Poisoned'. 
+10:50:45 [INFO] d fFilled tag &lt;player.has_effect[poison]&gt; with 'false'. 
+10:50:45 [INFO] d feComparable 1: fComparable='dList(bli@ Diamond Sword|6An item 
+                   only the legendary can hold.|6Lifesteal 
+                   III|6(Socket)|6(Socket)|6(Socket)|6(Socket)|6(Socket)|9+3 
+                   Lifesteal|4Lifesteal does not stack|4Cannot lifesteal when 
+                   Poisonedf)', Operator='CONTAINS', 
+                   ComparedTo='String(bLifestealf)' e--&gt; OUTCOME='false' 
+10:50:45 [INFO] d feComparable 2: fLogic='NEGATIVE', 
+                   Comparable='Boolean(bfalsef)', Operator='EQUALS', 
+                   ComparedTo='Boolean(btruef)' e--&gt; OUTCOME='true' 
+10:50:45 [INFO] d fCompleting queue 'ENEENNDNIE'.
-
-  expand:
-    - inject s@dWE_Commands p:selection_Size instantly
-    - define expandBy '<def[size].sub[%oldSize%].as_int>'
-    - run s@dWE_Msg 'def:<&f>Expanded<&f>  <&7><&o>%direction% <&7>by <&o>%expandBy% <&7>blocks (<&o>%size%<&7>)'
-
-  contract:
-    - inject s@dWE_Commands p:selection_Size instantly
-    - define contractBy '<def[oldSize].sub[%size%].as_int>'
-    - run s@dWE_Msg 'def:<&f>Contracted<&f>  <&7><&o>%direction% <&7>by <&o>%contractBy% <&7>blocks (<&o>%size%<&7>)'
-
-  inset:
-    - inject s@dWE_Commands p:selection_Size instantly
-    - define insetBy '<def[oldSize].sub[%size%].as_int>'
-    - run s@dWE_Msg 'def:<&f>Inset<&f>  <&7>by <&o>%insetBy% <&7>blocks (<&o>%size%<&7>)'
-
-  outset:
-    - inject s@dWE_Commands p:selection_Size instantly
-    - define outsetBy '<def[size].sub[%oldSize%].as_int>'
-    - run s@dWE_Msg 'def:<&f>Outset<&f>  <&7>by <&o>%outsetBy% <&7>blocks (<&o>%size%<&7>)'
-
-dWE_Wand:
-  type: item
-  debug: false
-  material: m@wood_axe
-  display name: dWE Region Selector
-  lore:
-  - <&7><&o>Left<&7> click to start a selection
-  - <&7><&o>Right<&7> click to expand the selection
-
-  script:
-    - if !<player.has_permission[dwe.wand]||<player.is_op>> {
-      - take i@dWE_Wand
-      - run s@dWE_Msg 'def:<&4><&l>ERROR<&co> <&a>You should not have this!' instantly
-      - queue clear
-      }
-    - if <c.click_type.is[==].to[LEFT_CLICK_BLOCK]> define pos 1
-      else if <c.click_type.is[==].to[RIGHT_CLICK_BLOCK]> define pos 2
-      else queue clear
-    - define pos1 '<player.flag[dWEWand].as_list.get[1]||null>'
-    - define pos2 '<player.flag[dWEWand].as_list.get[2]||null>'
-    - define type '<player.flag[dWEWand_Type]||cuboid>'
-    - if <li@cuboid|extender.contains[%type%]||false> inject locally %type%
-      else inject locally cuboid
-
-  cuboid:
-    - if <context.location.simple.is[==].to[<def[pos%pos%]>]||false> {
-      - run s@dWE_Msg 'def:<&c>pos%pos% is already set'
-      - queue clear
-      }
-    - define pos%pos% '<context.location.simple>'
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-    - inject s@dWE_Msg p:set_Pos
-
-  extender:
-    - define cuboid cu@%pos1%|%pos2%
-    - if %pos% == 1 {
-      - define cuboid cu@<context.location.simple>|<context.location.simple>
-      }
-      else {
-      - if %pos1% == null {
-        - run s@DWE_Msg 'Def:<&c>You must begin a selection before you can expand it.'
-        - queue clear
-        }
-      - define cuboid_old %cuboid%
-      - define cuboid <def[cuboid].include[<context.location.simple>]>
-      - if <def[cuboid_old]> == <def[cuboid]> {
-        - run s@dWE_Msg 'def:<&c>That position is already included.'
-        - queue clear
-        }
-      }
-    - define pos1 '<def[cuboid].min>'
-    - define pos2 '<def[cuboid].max>'
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-    - inject s@dWE_Msg p:set_pos%pos%
-
-
-################################################################################
-#
-#  Denizen World Editor Command Script Container
-#
-# This script covers all dWE commands
-#
-#
-#
-#--------------------------------------
-#
-#  dWE Command Script Basics
-#
-# The basic stuff required in a command script container
-#
-dWE_Commands:
-  type: command
-  debug: false
-  name: dwe
-  description: Denizen World Editor
-  usage: /dwe
-  aliases: ''
-  allowed help:
-  - determine <player.has_permission[dwe.basic]||<player.is_op>>
-  script:
-    - if !<player.has_permission[dwe.basic]||<player.is_op>> {
-      - narrate "<red>You do not have permission to use this command."
-      - queue clear
-      }
-    - define arg1 '<c.args.get[1].escaped||help>'
-    - define args 'li@help|wand|expand|contract|inset|outset|shift|pos1|pos2|hpos1|hpos2|sphere|chunk|show|set|undo'
-    - if !<def[args].contains[%arg1%]> inject locally help instantly
-      else inject locally %arg1% instantly
-
-#
-#  END dWE Command Script Basics
-#--------------------------------------
-#
-#  dWE Command Arguments
-#
-# Each of these subscripts is an argument for the root command.
-#
-  help:
-    - if <player.has_permission[dwe.admin]||<player.is_op||<context.server>>> inject locally msgsHelpAdmin instantly
-      else inject locally msgsHelpUser instantly
-    - inject locally msgsFooter instantly
-    - queue clear
-
-  wand:
-  # /dwe wand (-type [cuboid/extender])
-    - if !<player.has_permission[dwe.wand]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - if <c.args.find[-type].is[OR_MORE].than[0]||false> {
-      - define type <c.args.get[<c.args.find[-type].add[1].as_int>]||null>
-      - if <li@cuboid|extender.contains[%type%]||false> {
-        - run s@dWE_Msg 'def:<&7><&o>Now using the <&f><&o>%type% <&7><&o>selection wand'
-        - flag player 'dWEWand_Type:%type%'
-        }
-        else {
-        - run s@dWE_Msg 'def:<&4><&l>ERROR<&co> <&c>Unknown type!'
-        - run s@dWE_Msg 'def:<&c>SYNTAX<&co> <&e>/dwe -type <&6><&lb><&7>cuboid/extender<&6><&rb>'
-        }
-      - queue clear
-      }
-    - give i@dWE_Wand
-    - define type '<player.flag[dWEWand_Type]||cuboid>'
-    - if <def[type].is[==].to[cuboid]> {
-      - run s@dWE_Msg 'def:<&a>Left click to select pos1'
-      - run s@dWE_Msg 'def:<&a>Right click to select pos2'
-      }
-      else {
-      - run s@dWE_Msg 'def:<&a>Left click to start a selection,'
-      - run s@dWE_Msg 'def:<&a>Right click to expand the selection.'
-      }
-    - queue clear
-
-#
-#-----------------------------
-#  Selection Commands
-#
-  show:
-    - if !<player.has_permission[dwe.show]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - define pos1 '<player.flag[dWEWand].get[1].as_location||null>'
-    - define pos2 '<player.flag[dWEWand].get[2].as_location||null>'
-    - if <def[pos1].is[==].to[null]> run s@dWE_Msg 'def:<&c>Must select corner 1 with left-click.'
-      else if <def[pos2].is[==].to[null]> run s@dWE_Msg 'def:<red>Must select corner 2 with right-click.'
-      else showfake m@blue_stained_glass <cu@%pos1%|%pos2%.get_outline> to:<player> d:10s
-
-  pos1:
-    - if !<player.has_permission[dwe.pos]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - define pos1 '<player.flag[dWEWand].as_list.get[1]||null>'
-    - if <player.location.simple.is[==].to[%pos1%]> {
-      - run s@dWE_Msg 'def:<&c>pos1 is already set'
-      - queue clear
-      }
-    - define pos1 '<player.location.simple>'
-    - define pos2 '<player.flag[dWEWand].as_list.get[2]||null>'
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-    - define pos 1
-    - inject s@dWE_Msg p:set_Pos
-
-  pos2:
-    - if !<player.has_permission[dwe.pos]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - define pos2 '<player.flag[dWEWand].as_list.get[2]||null>'
-    - if <player.location.simple.is[==].to[%pos2%]> {
-      - run s@dWE_Msg 'def:<&c>pos2 is already set'
-      - queue clear
-      }
-    - define pos1 '<player.flag[dWEWand].as_list.get[1]||null>'
-    - define pos2 '<player.location.simple>'
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-    - define pos 2
-    - inject s@dWE_Msg p:set_Pos
-
-  hpos1:
-    - if !<player.has_permission[dwe.pos]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - define pos1 '<player.flag[dWEWand].as_list.get[1]||null>'
-    - if <player.location.cursor_on[160].simple.is[==].to[%pos1%]> {
-      - run s@dWE_Msg 'def:<&c>pos1 is already set'
-      - queue clear
-      }
-    - define pos1 '<player.location.cursor_on[160].simple>'
-    - define pos2 '<player.flag[dWEWand].as_list.get[2]||null>'
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-    - define pos 1
-    - inject s@dWE_Msg p:set_Pos
-
-  hpos2:
-    - if !<player.has_permission[dwe.pos]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - define pos2 '<player.flag[dWEWand].as_list.get[2]||null>'
-    - if <player.location.cursor_on[160].simple.is[==].to[%pos2%]> {
-      - run s@dWE_Msg 'def:<&c>pos2 is already set'
-      - queue clear
-      }
-    - define pos1 '<player.flag[dWEWand].as_list.get[1]||null>'
-    - define pos2 '<player.location.cursor_on[160].simple>'
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-    - define pos 2
-    - inject s@dWE_Msg p:set_Pos
-
-  chunk:
-    - if !<player.has_permission[dwe.chunk]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - define pos1 '<player.location.get_chunk.cuboid.min>'
-    - define pos2 '<player.location.get_chunk.cuboid.max>'
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-    - run s@dWE_Msg 'def:<&f>Chunk selected<&co> <player.location.get_chunk.replace[ch@].split[,].get[1|2].comma_separated>'
-
-  expand:
-  # /dwe expand <amount/v> (n/s/e/w/u/d)
-    - define command 'expand'
-    - inject locally prerun instantly
-    - if <c.args.get[2].escaped.is[==].to[v]||false> {
-      - define pos1 '<def[pos1].sub[0,<def[pos1].y>,0].replace[l@]>'
-      - define pos2 '<def[pos2].add[0,<el@val[255].sub[<def[pos2].y>]>,0].replace[l@]>'
-#      - define pos1 '<def[pos1].x>,0,<def[pos1].z>'
-#      - define pos2 '<def[pos2].x>,255,<def[pos2].z>'
-      - flag player dWEWand:!
-      - flag player dWEWand:|:%pos1%|%pos2%
-      - define direction 'Vertically'
-      - inject s@dWE_Msg p:expand
-      - queue clear
-      }
-
-    - define n '<c.args.get[2].escaped.round_up||0>'
-    - define d '<c.args.get[3].escaped||0>'
-    - if <def[n].is[OR_LESS].than[0]||true> {
-      - run s@dWE_Msg 'def:<&c>SYNTAX<&co> <&e>/dwe expand <&6><&lb><&7>amount/v<&6><&rb> <&6>(<&7>direction<&6>)'
-      - queue clear
-      }
-    - if <el@[li@n|e|s|w|u|d].contains[%d%].not||true> define d '<proc[getFacing].context[<player.location.pitch.as_money>|<player.location.yaw.as_money>]>'
-    - if <el@[li@n|e|s|w|u|d].contains[%d%].not||true> {
-      - run s@dWE_Msg 'def:<&4><&l>ERROR<&co> <&c>Unknown direction!'
-      - queue clear
-      }
-    - if <def[d].is[==].to[n]||false> {
-      - if <def[pos1].z.is[OR_LESS].than[<def[pos2].z>]> define pos1 '<def[pos1].sub[0,0,%n%]>'
-        else define pos2 '<def[pos2].sub[0,0,%n%]>'
-      - define direction 'North'
-      - inject s@dWE_Msg p:expand
-      }
-      else if <def[d].is[==].to[e]||false> {
-      - if <def[pos1].x.is[OR_MORE].than[<def[pos2].x>]> define pos1 '<def[pos1].add[%n%,0,0]>'
-        else define pos2 '<def[pos2].add[%n%,0,0]>'
-      - define direction 'East'
-      - inject s@dWE_Msg p:expand
-      }
-      else if <def[d].is[==].to[s]||false> {
-      - if <def[pos1].z.is[OR_MORE].than[<def[pos2].z>]> define pos1 '<def[pos1].add[0,0,%n%]>'
-        else define pos2 '<def[pos2].add[0,0,%n%]>'
-      - define direction 'South'
-      - inject s@dWE_Msg p:expand
-      }
-      else if <def[d].is[==].to[w]||false> {
-      - if <def[pos1].x.is[OR_LESS].than[<def[pos2].x>]> define pos1 '<def[pos1].sub[%n%,0,0]>'
-        else define pos2 '<def[pos2].sub[%n%,0,0]>'
-      - define direction 'West'
-      - inject s@dWE_Msg p:expand
-      }
-      else if <def[d].is[==].to[u]||false> {
-      - if <def[pos1].y.is[OR_MORE].than[<def[pos2].y>]> define pos1 '<def[pos1].add[0,%n%,0]>'
-        else define pos2 '<def[pos2].add[0,%n%,0]>'
-      - define direction 'Up'
-      - inject s@dWE_Msg p:expand
-      }
-      else if <def[d].is[==].to[d]||false> {
-      - if <def[pos1].y.is[OR_LESS].than[<def[pos2].y>]> define pos1 '<def[pos1].sub[0,%n%,0]>'
-        else define pos2 '<def[pos2].sub[0,%n%,0]>'
-      - define direction 'Down'
-      - inject s@dWE_Msg p:expand
-      }
-      else {
-      - run s@dWE_Msg 'def:<&4><&l>ERROR<&co> <&c>An impossible error occurred while expanding your selection!'
-      - queue clear
-      }
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-
-  contract:
-  # /dwe contract <amount> (n/s/e/w/u/d)
-    - define command 'contract'
-    - inject locally prerun instantly
-    - define n '<c.args.get[2].escaped.round_up||0>'
-    - define d '<c.args.get[3].escaped||0>'
-    - if <def[n].is[OR_LESS].than[0]||true> {
-      - run s@dWE_Msg 'def:<&c>SYNTAX<&co> <&e>/dwe contract <&6><&lb><&7>amount<&6><&rb> <&6>(<&7>direction<&6>)'
-      - queue clear
-      }
-    - if <el@[li@n|e|s|w|u|d].contains[%d%].not||true> define d '<proc[getFacing].context[<player.location.pitch.as_money>|<player.location.yaw.as_money>]>'
-    - if <el@[li@n|e|s|w|u|d].contains[%d%].not||true> {
-      - run s@dWE_Msg 'def:<&4><&l>ERROR<&co> <&c>Unknown direction!'
-      - queue clear
-      }
-    - if <def[d].is[==].to[n]||false> {
-      - if <def[pos1].z.is[OR_LESS].than[<def[pos2].z>]> define pos2 '<def[pos2].sub[0,0,%n%]>'
-        else define pos1 '<def[pos1].sub[0,0,%n%]>'
-      - define direction 'North'
-      - inject s@dWE_Msg p:contract
-      }
-      else if <def[d].is[==].to[e]||false> {
-      - if <def[pos1].x.is[OR_MORE].than[<def[pos2].x>]> define pos2 '<def[pos2].add[%n%,0,0]>'
-        else define pos1 '<def[pos1].add[%n%,0,0]>'
-      - define direction 'East'
-      - inject s@dWE_Msg p:contract
-      }
-      else if <def[d].is[==].to[s]||false> {
-      - if <def[pos1].z.is[OR_MORE].than[<def[pos2].z>]> define pos2 '<def[pos2].add[0,0,%n%]>'
-        else define pos1 '<def[pos1].add[0,0,%n%]>'
-      - define direction 'South'
-      - inject s@dWE_Msg p:contract
-      }
-      else if <def[d].is[==].to[w]||false> {
-      - if <def[pos1].x.is[OR_LESS].than[<def[pos2].x>]> define pos2 '<def[pos2].sub[%n%,0,0]>'
-        else define pos1 '<def[pos1].sub[%n%,0,0]>'
-      - define direction 'West'
-      - inject s@dWE_Msg p:contract
-      }
-      else if <def[d].is[==].to[u]||false> {
-      - if <def[pos1].y.is[OR_MORE].than[<def[pos2].y>]> define pos2 '<def[pos2].add[0,%n%,0]>'
-        else define pos1 '<def[pos1].add[0,%n%,0]>'
-      - define direction 'Up'
-      - inject s@dWE_Msg p:contract
-      }
-      else if <def[d].is[==].to[d]||false> {
-      - if <def[pos1].y.is[OR_LESS].than[<def[pos2].y>]> define pos2 '<def[pos2].sub[0,%n%,0]>'
-        else define pos1 '<def[pos1].sub[0,%n%,0]>'
-      - define direction 'Down'
-      - inject s@dWE_Msg p:contract
-      }
-      else {
-      - run s@dWE_Msg 'def:<&4><&l>ERROR<&co> <&c>An impossible error occurred while contracting your selection!'
-      - queue clear
-      }
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-
-  inset:
-  # /dwe inset <number> -h
-    - define command 'inset'
-    - inject locally prerun instantly
-    - define n '<c.args.filter[is[matches].to[number]].get[1]||0>'
-    - if <def[n].is[OR_LESS].than[0]||true> {
-      - run s@dWE_Msg 'def:<&c>SYNTAX<&co> <&e>/dwe inset <&6><&lb><&7>amount<&6><&rb> <&6>(<&7>-h<&6>)'
-      - queue clear
-      }
-    - define cuboid cu@%pos1%|%pos2%
-    - if '<c.args.contains[-h].not||false>' define cuboid 'cu@<def[cuboid].min.add[0,%n%,0]>|<def[cuboid].max.sub[0,%n%,0]>'
-    - define cuboid 'cu@<def[cuboid].min.add[%n%,0,%n%]>|<def[cuboid].max.sub[%n%,0,%n%]>'
-    - define pos1 '<def[cuboid].min>'
-    - define pos2 '<def[cuboid].max>'
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-    - inject s@dWE_Msg p:inset
-
-  outset:
-  # /dwe outset <number> -h
-    - define command 'outset'
-    - inject locally prerun instantly
-    - define n '<c.args.filter[is[matches].to[number]].get[1]||0>'
-    - if <def[n].is[OR_LESS].than[0]||true> {
-      - run s@dWE_Msg 'def:<&c>SYNTAX<&co> <&e>/dwe outset <&6><&lb><&7>amount<&6><&rb> <&6>(<&7>-h<&6>)'
-      - queue clear
-      }
-    - define cuboid cu@%pos1%|%pos2%
-    - if '<c.args.contains[-h].not||false>' define cuboid 'cu@<def[cuboid].min.sub[0,%n%,0]>|<def[cuboid].max.add[0,%n%,0]>'
-    - define cuboid 'cu@<def[cuboid].min.sub[%n%,0,%n%]>|<def[cuboid].max.add[%n%,0,%n%]>'
-    - define pos1 '<def[cuboid].min>'
-    - define pos2 '<def[cuboid].max>'
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-    - inject s@dWE_Msg p:outset
-
-  shift:
-  # /dwe shift <amount> (n/s/e/w/u/d)
-    - define command 'shift'
-    - inject locally prerun instantly
-    - define n '<c.args.get[2].escaped.round_up||0>'
-    - define d '<c.args.get[3].escaped||0>'
-    - if <def[n].is[OR_LESS].than[0]||true> {
-      - run s@dWE_Msg 'def:<&c>SYNTAX<&co> <&e>/dwe shift <&6><&lb><&7>amount<&6><&rb> <&6>(<&7>direction<&6>)'
-      - queue clear
-      }
-    - if <el@[li@n|e|s|w|u|d].contains[%d%].not||true> define d '<proc[getFacing].context[<player.location.pitch.as_money>|<player.location.yaw.as_money>]>'
-    - if <el@[li@n|e|s|w|u|d].contains[%d%].not||true> {
-      - run s@dWE_Msg 'def:<&4><&l>ERROR<&co> <&c>Unknown direction!'
-      - queue clear
-      }
-    - define direction '<def[d].replace[s].with[South].replace[e].with[East].replace[w].with[West].replace[n].with[North]>'
-    - define n_math 'sub'
-    - define n_coord '0,0,%n%'
-    - define s_math 'add'
-    - define s_coord '0,0,%n%'
-    - define w_math 'sub'
-    - define w_coord '%n%,0,0'
-    - define e_math 'add'
-    - define e_coord '%n%,0,0'
-    - define d_math 'sub'
-    - define d_coord '0,%n%,0'
-    - define u_math 'add'
-    - define u_coord '0,%n%,0'
-    - define math '<def[%d%_math]>'
-    - define coord '<def[%d%_coord]>'
-    - repeat 2 {
-      - define pos%value% '<def[pos%value%].%math%[%coord%]>'
-      }
-    - inject s@dWE_Msg p:shift
-    - flag player dWEWand:!
-    - flag player dWEWand:|:%pos1%|%pos2%
-
-
-
-#   END Selection Commands
-#-----------------------------
-#  Editing Commands
-#
-
-  set:
-  # /dwe set <material>
-    - define command 'set'
-    - inject locally prerun instantly
-    - define material <c.args.get[2]||null>
-    - if %material% !matches material {
-      - run s@dWE_Msg 'def:<&c>Must specify a valid material.'
-      - queue clear
-      }
-#    - define blocks <cu@%pos1%|%pos2%.get_blocks>
-    - define undoMaterials <def[blocks].parse[material.full]>
-#    - ~modifyblock %blocks% %material% delayed
-    - ~modifyblock cu@%pos1%|%pos2% %material% delayed
-    - flag player 'dWE_UndoHistory:->:set_blocks;cu@%pos1%|%pos2%;%undoMaterials%'
-    - run s@dWE_Msg 'def:Set complete!'
-
-  sphere:
-  # /dwe sphere <x>,[<y>,<z>] <material>
-    - define command 'sphere'
-    - inject locally utility_prerun instantly
-    - define size <c.args.get[2]||null>
-    - define material <c.args.get[3]||null>
-    - define commas <def[size].to_list.count[,]>
-    - if %commas% != 2 && %commas% != 0 {
-      - run s@dWE_Msg 'def:<&c>/dwe sphere <x>,[<y>,<z>] <material>'
-      - queue clear
-      }
-    - if %material% !matches material {
-      - run s@dWE_Msg 'def:<&c>/dwe sphere <x>,[<y>,<z>] <material>'
-      - queue clear
-      }
-    - if %commas% == 0 {
-      - define size %size%,%size%,%size%
-      }
-    - if <def[size].contains[@]> || <def[size].is[matches].to[location]> {
-      - run s@dWE_Msg 'def:<&c>/dwe sphere <x>,[<y>,<z>] <material>'
-      - queue clear
-      }
-    - define ellipsoid ellipsoid@<player.location.simple>,%size%
-#    - define blocks <def[ellipsoid].get_blocks>
-    - define undoMaterials <def[blocks].parse[material.full]>
-#    - ~modifyblock %blocks% %material% delayed
-    - ~modifyblock %ellipsoid% %material% delayed
-    - flag player 'dWE_UndoHistory:->:set_blocks;<def[ellipsoid]>;%undoMaterials%'
-    - run s@dWE_Msg 'def:Set complete!'
-
-  copy:
-  # /dwe copy
-    - define command 'set'
-    - inject locally prerun instantly
-    - define blocks '<cu@%pos1%|%pos2%.get_blocks>'
-    - flag player dWE_Clipboard:!
-    - flag player 'dWE_Clipboard:|:<def[blocks].parse[material]>'
-    - run s@dWE_Msg 'def:<&7><&o>Selection saved to clipboard'
-
-  paste:
-  # /dwe paste
-    - if !<player.has_permission[dwe.paste]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - narrate "stub"
-
-  rotate:
-  # /dwe rotate <90/180/270/360>
-    - if !<player.has_permission[dwe.rotate]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - narrate "stub"
-
-  undo:
-    - if !<player.has_permission[dwe.undo]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - define last_action '<player.flag[dWE_UndoHistory].as_list.last||null>'
-    - if <def[last_action].is[==].to[null]> run s@dWE_Msg 'def:<&6>Nothing to undo!'
-      else {
-      - inject locally 'p:undo_<def[last_action].split[;].get[1]>'
-      - flag player 'dWE_UndoHistory:<-:%last_action%'
-      }
-
-#
-#  END dWE Command Arguments
-#--------------------------------------
-#
-#  dWE Command Utilities
-#
-# Just some commonly used code blocks
-#
-  prerun:
-    - if !<player.has_permission[dwe.%command%]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-    - define pos1 '<player.flag[dWEWand].get[1].as_location||null>'
-    - define pos2 '<player.flag[dWEWand].get[2].as_location||null>'
-    - if <def[pos1].is[==].to[null]>
-      || <def[pos2].is[==].to[null]> {
-      - run s@dWE_Msg 'def:<&c>No region selected!'
-      - queue clear
-      }
-    - inject s@dWE_Commands p:selection_Size instantly
-    - define oldSize '%size%'
-
-  utility_prerun:
-    - if !<player.has_permission[dwe.%command%]||<player.is_op||false>> {
-      - inject locally help
-      - queue clear
-      }
-
-  undo_set_blocks:
-#    - define cuboid '<def[last_action].split[;].get[2].get_blocks||null>'
-    - define selection '<def[last_action].split[;].get[2]||null>'
-    - define materials '<def[last_action].split[;].get[3]||li@>'
-#    - ~modifyblock %cuboid% %materials% delayed
-    - ~modifyblock %selection% %materials% delayed
-    - run s@dWE_Msg 'def:<&a>Undo complete!'
-
-  selection_Size:
-    - define x '<def[pos1].as_location.x.sub[<def[pos2].as_location.x||<c.location.x>>].abs.add[1]||1>'
-    - define y '<def[pos1].as_location.y.sub[<def[pos2].as_location.y||<c.location.y>>].abs.add[1]||1>'
-    - define z '<def[pos1].as_location.z.sub[<def[pos2].as_location.z||<c.location.z>>].abs.add[1]||1>'
-    - define size '<def[x].mul[%y%].mul[%z%].as_int||0>'
-
-#
-#  END dWE Command Utilities
-#--------------------------------------
-#
-#  dWE Command Messages
-#
-# These are not complete! They are mostly just stubs till the rest is fleshed out!
-#
-  msgsHeader:
-    - narrate "<&5>|----------------------------------------|"
-    - narrate "<&5>|<&sp><&sp><&sp><&6>dWorldEditor   <&7>%msgsHeaderTitle%"
-    - narrate "<&5>|<&f>"
-
-  msgsFooter:
-    - define anthony "text:'<&7>|Anthony|',clickEvent:{action:open_url,value:'http://mineconomy.org'},hoverEvent:{action:show_item,value:'{<i@dwe_Author_Anthony.json>}'}"
-    - define morphan "text:'<&7>Morphan1',clickEvent:{action:open_url,value:'http://en.wikipedia.org/wiki/Candy'},hoverEvent:{action:show_item,value:'{<i@dwe_Author_Morphan1.json>}'}"
-    - define mcmonkey "text:'<&7>mcmonkey',clickEvent:{action:open_url,value:'http://mcmonkey.org'},hoverEvent:{action:show_item,value:'{<i@dwe_Author_mcmonkey.json>}'}"
-    - define spacer "text:'  '"
-    - define prefix "text:'<&5>|  <&f>Authors:  '"
-    - execute as_server "tellraw <player.name> {text:'',extra:[{%prefix%},{%anthony%},{%spacer%},{%morphan%},{%spacer%},{%mcmonkey%}]}"
-    - narrate "<&d>|-----------S-c-r-o-l-l---U-p-------------|"
-
-  msgsHelpAdmin:
-    - define msgsHeaderTitle 'Admin Help'
-    - inject locally msgsHeader instantly
-    - narrate "<&5>|<&sp><&sp><&sp><&f>"
-    - narrate "<&5>|<&sp><&sp><&f>"
-    - narrate "<&5>|<&sp><&sp><&f>"
-    - narrate "<&5>|<&sp><&sp><&f>"
-    - narrate "<&5>|<&sp><&sp><&f>"
-    - narrate "<&5>|<&sp><&sp><&f>"
-    - narrate "<&5>|<&sp><&f>"
-
-  msgsHelpUser:
-    - define msgsHeaderTitle 'User Help'
-    - inject locally msgsHeader instantly
-    - narrate "<&5>|<&sp><&sp><&sp><&sp><&f>"
-    - narrate "<&5>|<&sp><&sp><&f>"
-    - narrate "<&5>|<&sp><&sp><&f>"
-    - narrate "<&5>|<&sp><&f>"
-
-#
-#  END dWE Command Messages
-#--------------------------------------
-#
-#  other utilities
-#
-# These are not complete! They are mostly just stubs till the rest is fleshed out!
-#
-
-
-# Usage: <proc[getFacing].context[%pitch%|%yaw%]>
-getFacing:
-  type: procedure
-  definitions: pitch|yaw
-  script:
-    - if <def[pitch].is[OR_MORE].than[45]||false> determine d
-      else if <def[pitch].is[OR_LESS].than[-45]||false> determine u
-      else if <def[yaw].is[OR_MORE].than[337.5]||false> || <def[yaw].is[LESS].than[22.5]||false> determine s
-      else if <def[yaw].is[OR_MORE].than[292.5]||false> determine se
-      else if <def[yaw].is[OR_MORE].than[247.5]||false> determine e
-      else if <def[yaw].is[OR_MORE].than[202.5]||false> determine ne
-      else if <def[yaw].is[OR_MORE].than[157.5]||false> determine n
-      else if <def[yaw].is[OR_MORE].than[112.5]||false> determine nw
-      else if <def[yaw].is[OR_MORE].than[67.5]||false> determine w
-      else if <def[yaw].is[OR_MORE].than[22.5]||false> determine sw
-      else determine 0
-
-#
-#  END other utilities
-#--------------------------------------
-#
-#  dWE author banner items
-#
-# Banner items representing the authors
-#
-dwe_Author_mcmonkey:
-  type: item
-  material: creeper_skull
-  display name: <&2><&l>MCMONKEY
-  lore:
-  - <&a>Click to visit http://mcmonkey.org
-
-dwe_Author_Morphan1:
-  type: item
-  material: creeper_skull
-  display name: <&2><&l>Morphan1
-  lore:
-  - <&a>pls2buymesome
-
-dwe_Author_Anthony:
-  type: item
-  material: i@human_skull
-  display name: "<&f>             |Anthony|"
-  lore:
-  - <&7>  Owner<&co> <&e>M<&6>ine<&e>C<&6>onomy <&e>N<&6>etwork
-  - <&5>-------------------------
-  - <&7>
-  - <&7>  I`ve been playing minecraft
-  - <&7> and running a server since
-  - <&7> 2010. I have fun and share
-  - <&7> what I do.
-  - <&7>
-  - <&9>           Click To Visit
-#
-#  END dWE author banner items
-#--------------------------------------