Paste #6141: Untitled Paste

Date: 2014/07/02 18:29:42 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


'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
      }