Staff Pick: Brunos Night Vision Goggles
By
BrunoCreated: 2016/01/20 12:52:52 UTC-08:00 (8 years and 338 days ago)
Edited: 2016/01/20 12:52:52 UTC-08:00 (8 years and 338 days ago)
Likes: 0
Staff pick as of: 2016/01/20 19:14:51 UTC-08:00 (8 years and 338 days ago)
Denizen Version: 0.9.7 dev
Script Version: 1.0
Description:
Night Vision Goggles for those who have the permission bruno.builder
Download script |
View raw scriptNVG:
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
}
View History