Paste #6453: Untitled Paste

Date: 2014/07/06 14:19:35 UTC-07:00
Type: Denizen Script

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


elementalarrows:
  type: world
  events:
    on player left clicks with m@bow:
    - if <player.is_sneaking> {
      - flag player slot:+:1
      - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == null {
        - flag player slot:1
        - define item <in@<player.name>quiver.list_contents.simple.get[1]>
        - narrate "<%item%.display>"
        } else {
        - define item <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> 
        - narrate "<%item%.display>"
        }
      }
    on player shoots bow:
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@tntarrow {
      - shoot e@arrow origin:<player> script:Explode speed:<context.force>
      - determine passively cancelled
      - take i@tntarrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@ziplinearrow {
      - shoot e@arrow origin:<player> script:zipline speed:<context.force> 
      - determine passively cancelled
      - take i@ziplinearrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@grapplearrow {
      - if <context.entity.flag[grapplecooldown]> == true {
        } else {
        - shoot e@arrow origin:<player> script:grapple speed:<context.force> 
        - determine passively cancelled
        - take i@grapplearrow qty:1 from:in@<player.name>quiver
        - inventory update
        }
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowofburning {
      - shoot e@arrow origin:<player> script:burningarrow speed:<context.force> 
      - determine passively cancelled
      - take i@arrowofburning qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@firearrow {
      - shoot e@arrow origin:<player> save:myarrow speed:<context.force> 
      - burn <entry[myarrow].shot_entities>
      - determine passively cancelled
      - take i@firearrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@frostarrow {
      - shoot e@arrow origin:<player> script:frostarrow1 speed:<context.force> 
      - determine passively cancelled
      - take i@frostarrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowoffrost {
      - shoot e@arrow origin:<player> script:arrowoffrost1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowoffrost qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@waterarrow {
      - shoot e@arrow origin:<player> script:waterarrow1 speed:<context.force> 
      - determine passively cancelled
      - take i@waterarrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowofarrows {
      - shoot e@arrow origin:<player> script:arrowofarrows1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowofarrows qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@thebabymaker {
      - shoot e@arrow origin:<player> script:thebabymaker1 speed:<context.force> 
      - determine passively cancelled
      - take i@thebabymaker qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowofwind {
      - shoot e@arrow origin:<player> script:arrowofwind1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowofwind qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowoftornado {
      - shoot e@arrow origin:<player> script:arrowoftornado1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowoftornado qty:1 from:in@<player.name>quiver
      - inventory update
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@weakeningarrow {
      - shoot e@arrow origin:<player> script:weakeningarrow1 speed:<context.force> 
      - determine passively cancelled
      - take i@weakeningarrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@witheringarrow {
      - shoot e@arrow origin:<player> script:witheringarrow1 speed:<context.force> 
      - determine passively cancelled
      - take i@witheringarrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@poisonarrow {
      - shoot e@arrow origin:<player> script:poisonarrow1 speed:<context.force> 
      - determine passively cancelled
      - take i@poisonarrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@harmingarrow {
      - shoot e@arrow origin:<player> script:harmingarrow1 speed:<context.force> 
      - determine passively cancelled
      - take i@harmingarrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@blindingarrow {
      - shoot e@arrow origin:<player> script:blindingarrow1 speed:<context.force> 
      - determine passively cancelled
      - take i@blindingarrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowofweakening {
      - shoot e@arrow origin:<player> script:arrowofweakening1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowofweakening qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowofwithering {
      - shoot e@arrow origin:<player> script:arrowofwithering1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowofwithering qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowofpoisening {
      - shoot e@arrow origin:<player> script:arrowofpoisening1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowofpoisening qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowofharming {
      - shoot e@arrow origin:<player> script:arrowofharming1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowofharming qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowofblinding {
      - shoot e@arrow origin:<player> script:arrowofblinding1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowofblinding qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@icearrow {
      - shoot e@arrow origin:<player> script:icearrow1 speed:<context.force> 
      - determine passively cancelled
      - take i@icearrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@confusionarrow {
      - shoot e@arrow origin:<player> script:confusionarrow1 speed:<context.force> 
      - determine passively cancelled
      - take i@confusionarrow qty:1 from:in@<player.name>quiver
      - inventory update
      }
    - if <in@<player.name>quiver.list_contents.simple.get[<player.flag[slot].as_int>]> == i@arrowofconfusion {
      - shoot e@arrow origin:<player> script:arrowofconfusion1 speed:<context.force> 
      - determine passively cancelled
      - take i@arrowofconfusion qty:1 from:in@<player.name>quiver
      - inventory update
      }
    on player right clicks with i@quiver:
    - inventory open d:in@<player.name>quiver
    - inventory update
    on player joins:
    - note in@generic[holder=hopper] 'as:<player.name>quiver'
    - give <player.flag[quiver]> to:in@<player.name>quiver
    on player quits:
    - flag player quiver:<in@<player.name>quiver.list_contents>
    on player clicks in inventory:
    - if <context.inventory> == in@<player.name>quiver && <context.is_shift_click> == true {
      - if <context.slot> <= 6 {
        - determine cancelled
        } else if <context.item.id> == 262 {
        - give <context.item> to:in@<player.name>quiver
        - take <context.item> qty:64
        - inventory update
        - determine cancelled
        }
      }
    on stop command:
    - flag player quiver:<in@<player.name>quiver.list_contents>
tntarrow:
  type: item
  material: 262
  display name: 'tnt arrow'
  recipe: 
  - i@air|i@air|i@tnt
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air

quiverinv:
  type: inventory
  inventory: brewing

quiver:
  type: item
  material: 390
  display name: <gold>quiver
Explode:
    type: task
    script:
    - ^explode "location:%location%" power:5 
    - ^remove %last_entity%
zipline:
  type: task
  script:
  - create slime[size=1] ` <%location%.add[<player.location.direction.vector.mul[2.0]>]> save:`
  - flag player anchorpoint1:<entry[`].created_npc>
  - create slime[size=1] 1 <player.location.add[<player.location.direction.vector.mul[-2.0]>]> save:1
  - flag player anchorpoint2:<entry[1].created_npc>
  - leash <player.flag[anchorpoint1]> holder:<player.flag[anchorpoint2]>
  - if <player.location.y> >= <%location%.y> {
    - run zipline1
    }
  - run ziplineremove delay:2s
zipline1:
  type: task
  script:
  - ^cast damage_resistance duration:30s power:50 <player>
  - push <player> destination:<<player.flag[anchorpoint1]>.location> duration:20s speed:1 script:ziplineremove
ziplineremove:
  type: task
  script:
  - remove <player.flag[anchorpoint1]>
  - remove <player.flag[anchorpoint2]>
  - cast damage_resistance duration:0s
ziplinearrow:
  type: item
  material: 262
  display name: 'zipline arrow'
  recipe: 
  - i@air|i@air|i@flint
  - i@air|i@stick|i@air 
  - i@feather|i@lead|i@air
grapplearrow:
  type: item
  material: 262
  display name: 'grapple arrow'
  recipe: 
  - i@air|i@air|i@slime
  - i@air|i@stick|i@air 
  - i@feather|i@lead|i@air
grapple:
  type: task
  script:
  - if <player.flag[grapplecooldown]> == true {
    } else {
    - create slime[size=1] ` <%location%.add[<player.location.direction.vector.mul[2.0]>]> save:2
    - flag player grapplecooldown
    - flag player anchorpoint3:<entry[2].created_npc>
    - leash <player.flag[anchorpoint3]>
    - if <player.location.y> <= <%location%.y> {
      - run grapple1
      }
    - run grappledespawn delay:15s id:grappledespawn
    }
grapple1:
  type: task
  script:
  - push <player> destination:<<player.flag[anchorpoint3]>.location.add[0,2,0]> duration:20s speed:1 script:grappledespawn
grappledespawn:
  type: task
  script:
  - remove <player.flag[anchorpoint3]>
  - flag player grapplecooldown:!
arrowofburning:
  type: item
  material: 262
  display name: 'arrow of burning'
  recipe: 
  - i@blaze_powder|i@blaze_powder|i@blaze_powder
  - i@blaze_powder|i@firearrow|i@blaze_powder
  - i@blaze_powder|i@blaze_powder|i@blaze_powder
burningarrow:
  type: task
  script:
  - burn <%location%.find.living_entities.within[<10.0>].exclude[<player>]> duration:20s
firearrow:
  type: item
  material: 262
  display name: 'fire arrow'
  recipe: 
  - i@air|i@air|i@blaze_powder
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
frostarrow1:
  type: task
  script:
  - cast slow <%hit_entities%> power:30 duration:15s
frostarrow:
  type: item
  material: 262
  display name: 'frost arrow'
  recipe: 
  - i@air|i@air|i@snowball
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
arrowoffrost:
  type: item
  material: 262
  display name: 'arrow of frost'
  recipe: 
  - i@snowball|i@snowball|i@snowball
  - i@snowball|i@frostarrow|i@snowball 
  - i@snowball|i@snowball|i@snowball
arrowoffrost1:
  type: task
  script:
  - cast slow <%location%.find.living_entities.within[6.0].exclude[<player>]> power:5 duration:30s
waterarrow:
  type: item
  material: 262
  display name: 'water arrow'
  recipe: 
  - i@air|i@air|i@water_bucket
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
waterarrow1:
  type: task
  script:
  - if <%location%.add[0,1,0].material.name> == air {
    - modifyblock 8 <%location%.add[0,1,0]>
    - run waterremoval def:%location% delay:2s
    }
waterremoval:
  type: task
  script:
  - modifyblock 0 <%1%.add[0,1,0]>
arrowofarrows:
  type: item
  material: 262
  display name: 'arrow of arrows'
  recipe:
  - i@arrow|i@arrow|i@arrow
  - i@arrow|i@stick|i@arrow 
  - i@arrow|i@arrow|i@arrow
thebabymaker:
  type: item
  material: 262
  display name: 'the babymaker'
  recipe:
  - i@air|i@air|i@egg
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
thebabymaker1:
  type: task
  script:
  - age <%hit_entities%> baby
  - heal <%hit_entities%>
arrowofarrows1:
  type: task
  script:
  - shoot e@arrow origin:<%location%.add[4,0,0]> destination:<%hit_entities%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[3,0,1]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[3,0,2]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[2,0,3]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[1,0,3]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[-4,0,0]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[-3,0,1]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[-3,0,2]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[-2,0,3]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[-1,0,3]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[0,0,-4]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[3,0,-1]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[3,0,-2]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[2,0,-3]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[1,0,-3]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[0,0,4]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[-3,0,-1]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[-3,0,-2]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[-2,0,-3]> destination:<%location%> script:arrowofarrows2
  - shoot e@arrow origin:<%location%.add[-1,0,-3]> destination:<%location%> script:arrowofarrows2
arrowofarrows2:
  type: task
  script:
  - shoot e@arrow origin:<%location%.add[4,0,0]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[3,0,1]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[3,0,2]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[2,0,3]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[1,0,3]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[-4,0,0]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[-3,0,1]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[-3,0,2]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[-2,0,3]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[-1,0,3]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[0,0,-4]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[3,0,-1]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[3,0,-2]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[2,0,-3]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[1,0,-3]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[0,0,4]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[-3,0,-1]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[-3,0,-2]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[-2,0,-3]> destination:<%location%>
  - shoot e@arrow origin:<%location%.add[-1,0,-3]> destination:<%location%>
arrowofwind1:
  type: task
  script:
  - push <%hit_entities%> origin:<%hit_entities%> destination:<%hit_entities%.add[<player.location.direction.vector.mul[40]>.add[0,4,0]]>
arrowofwind:
  type: item
  material: 262
  display name: 'arrow of wind'
  recipe:
  - i@air|i@air|i@feather
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
arrowoftornado1:
  type: task
  script:
  - push <%location%.find.living_entities.within[10.0].exclude[<player>]> origin:<%location%> destination:<%location%.add[<player.location.direction.vector.mul[40].add[0,4,0]>]>
arrowoftornado:
  type: item
  material: 262
  display name: 'arrow of tornado'
  recipe:
  - i@feather|i@feather|i@feather
  - i@feather|i@arrowofwind|i@feather 
  - i@feather|i@feather|i@feather
weakeningarrow:
  type: item
  material: 262
  display name: 'weakening arrow'
  recipe:
  - i@air|i@air|i@weaknesspotion
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
witheringarrow:
  type: item
  material: 262
  display name: 'withering arrow'
  recipe:
  - i@air|i@air|i@witherskeleton_skull
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
poisonarrow:
  type: item
  material: 262
  display name: 'poisen arrow'
  recipe:
  - i@air|i@air|i@poisonpotion
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
harmingarrow:
  type: item
  material: 262
  display name: 'harming arrow'
  recipe:
  - i@air|i@air|i@harmingpotion,
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
blindingarrow:
  type: item
  material: 262
  display name: 'blinding arrow'
  recipe:
  - i@air|i@air|i@spider_eye
  - i@air|i@stick|i@air 
  - i@feather|i@air|i@air
arrowofweakening:
  type: item
  material: 262
  display name: 'arrow of weakening'
  recipe:
  - i@air|i@weaknesspotion|i@weaknesspotion
  - i@air|i@weakeningarrow|iweaknesspotionair 
  - i@feather|i@air|i@air
arrowofwithering:
  type: item
  material: 262
  display name: 'arrow of withering'
  recipe:
  - i@air|i@witherskeleton_skull|i@witherskeleton_skull
  - i@air|i@stick|i@witherskeleton_skull 
  - i@feather|i@air|i@air
arrowofpoisening:
  type: item
  material: 262
  display name: 'arrow of poisening'
  recipe:
  - i@air|i@poisonpotion|i@poisonpotion
  - i@air|i@poisonarrow|i@poisonpotion 
  - i@feather|i@air|i@air
arrowofharming:
  type: item
  material: 262
  display name: 'arrow of harming'
  recipe:
  - i@air|i@harmingpotion|i@harmingpotion
  - i@air|i@harmingarrow|i@harmingpotion 
  - i@feather|i@air|i@air
arrowofblinding:
  type: item
  material: 262
  display name: 'arrow of blinding'
  recipe:
  - i@spider_eye|i@spider_eye|i@spider_eye
  - i@spider_eye|i@blindingarrow|i@spider_eye 
  - i@feather|i@spider_eye|i@spider_eye
icearrow:
  type: item
  material: 262
  display name: 'ice arrow'
  recipe:
  - i@air|i@ice|i@ice
  - i@air|i@stick|i@ice
  - i@feather|i@air|i@air
confusionarrow:
  type: item
  material: 262
  display name: 'confusion arrow'
  recipe:
  - i@air|i@air|i@raw_pufferfish
  - i@air|i@stick|i@air
  - i@feather|i@air|i@air
arrowofconfusion:
  type: item
  material: 262
  display name: 'arrow of confusion'
  recipe:
  - i@raw_pufferfish|i@raw_pufferfish|i@raw_pufferfish
  - i@raw_pufferfish|i@confusionarrow|i@raw_pufferfish
  - i@raw_pufferfish|i@raw_pufferfish|i@raw_pufferfish
arrowofwithering1:
  type: task
  script:
  - cast wither <%location%.find.living_entities.within[6.0].exclude[<player>]> power:5 duration:30s
witheringarrow1:
  type: task
  script:
  - cast wither <%hit_entities%> power:30 duration:15s
arrowofweakening1:
  type: task
  script:
  - cast weakness <%location%.find.living_entities.within[6.0].exclude[<player>]> power:5 duration:30s
weakeningarrow1:
  type: task
  script:
  - cast weakness <%hit_entities%> power:30 duration:15s
arrowofpoisoning1:
  type: task
  script:
  - cast poison <%location%.find.living_entities.within[6.0].exclude[<player>]> power:5 duration:30s
poisonarrow1:
  type: task
  script:
  - cast poison <%hit_entities%> power:30 duration:15s
arrowofharming1:
  type: task
  script:
  - cast harm <%location%.find.living_entities.within[6.0].exclude[<player>]> power:5 duration:30s
harmingarrow1:
  type: task
  script:
  - cast harm <%hit_entities%> power:30 duration:15s
arrowofblinding1:
  type: task
  script:
  - cast blindness <%location%.find.living_entities.within[6.0].exclude[<player>]> power:5 duration:30s
blindingarrow1:
  type: task
  script:
  - cast blindness <%hit_entities%> power:30 duration:15s
icearrow1:
  type: task
  script:
  - define freeze <%location%.highest>
  - foreach <%freeze%.find.surface_blocks[stationary_water|water].within[2]> {
    - modifyblock m@ice %value%
    }
  - run icearrowthaw def:%location% delay:10s
icearrowthaw:
  type: task
  script:
  - define freeze <%1%.highest>
  - foreach <%freeze%.find.surface_blocks[ice].within[2]> {
    - modifyblock water %value%
    }
confusionarrow1:
  type: task
  script:
  - foreach %hit_entities% {
    - attack %value% target:<%value%.location.find.living_entities.within[20].exclude[<player>].exclude[%value%].random>
    }

arrowofconfusion1:
  type: task
  script:
  - foreach <%location%.find.living_entities.within[20]> {
    - attack %value% target:<%location%.find.living_entities.within[20].exclude[<player>].exclude[%value%].random>
    }
customarrowpackage:
  type: task
  script:
  - give i@blindingarrow qty:64
  - give i@arrowofblinding qty:64
  - give i@witheringarrow qty:64
  - give i@arrowofwithering qty:64
  - give i@harmingarrow qty:64
  - give i@grapplearrow qty:64
  - give i@arrowofharming qty:64
  - give i@poisonarrow qty:64
  - give i@arrowofpoisening qty:64
  - give i@ziplinearrow qty:64
  - give i@weakeningarrow qty:64
  - give i@arrowofweakening qty:64
  - give i@thebabymaker qty:64
  - give i@arrowoftornado qty:64
  - give i@arrowofwind qty:64
  - give i@arrowofarrows qty:64
  - give i@waterarrow qty:64
  - give i@firearrow qty:64
  - give i@arrowofburning qty:64
  - give i@frostarrow qty:64
  - give i@arrowoffrost qty:64
  - give i@tntarrow qty:64
  - give i@icearrow qty:64
  - give i@confusionarrow qty:64
  - give i@arrowofconfusion qty:64
  - give i@sniperbow
  - give i@quiver