Date: 2014/07/02 18:29:42 UTC-07:00
Type: Denizen Script
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
'bomablearrow':
type: item
material: arrow
display name: Bomb Arrow
recipe:
- i@air|i@77|i@air
- i@air|i@46|i@air
- i@air|i@262|i@air
bound: true
lore:
- Explosive
'Emerald Arrow':
type: item
material: arrow
display name: Bomb Arrow
recipe:
- i@air|i@77|i@air
- i@air|i@388|i@air
- i@air|i@262|i@air
bound: true
lore:
- Strong
'Arrow Power':
type: world
events:
on entity shoots bow:
- define consumed_arrow <player.inventory.slot[<player.inventory.find.material[arrow]>]>
- if %consumed_arrow% == i@bomablearrow {
- flag server <context.projectile>:bomablearrow duration:30s
} else if %consumed_arrow% == 'i@Emerald Arrow' {
- flag server <context.projectile>:Emerald Arrow' duration:30s
}
on projectile hits block:
- define consumed_arrow <server.flag[<context.projectile>]||none>
- if %consumed_arrow% == bomablearrow {
- put your stuff to do if this arrow is an exploding one here
} else if %consumed_arrow% == 'emerald Arrow' {
- put stuff for emerald arrow here
}