Date: 2016/01/20 12:52:52 UTC-08: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
40
41
42
NVG:
type: item
material: i@chainmail_helmet
display name: 'Night Vision'
lore:
- '<&e>Inscribed on the side is <&4>4<&e>e<&2>2<&9>9<&e>'
- '<&e>Legendary Item Rewarded To All Master Builders'
bound: true
recipe:
- i@ink_sack,15|i@redstone_block|i@ink_sack,1
- i@glass|i@chainmail_helmet|i@glass
- i@ink_sack,2|i@quartz|i@ink_sack,4
NVG_Listen:
type: world
debug: true
events:
on player equips helmet:
- define armor <context.armor>
- if <def[armor].simple> == i@NVG {
- narrate '<context.armor.simple> and <context.reason>'
- cast night_vision <player> duration:23h hide_particles
}
NVG_OFF_LISTEN:
type: world
debug: true
events:
on player unequips helmet:
- define armor_off <context.armor>
- if <def[armor_off].simple> == i@NVG {
- adjust <player> remove_effects
}
NVG_Craft_listen:
type: world
debug: true
events:
on i@NVG crafted:
- if !<player.has_permission[bruno.builder]> {
- narrate '<red>You must be a Builder for that item, pal.'
- determine cancelled
}