- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





Staff Pick: Brunos Night Vision Goggles


By Bruno
Created: 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 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
43
4300

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
      }





View History