Paste #6668: Untitled Paste

Date: 2014/07/10 15:27:18 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


'vortex2':
  type: world 
  events:



    on player left clicks with Blaze_Rod:
          - if !<player.has_flag[vortex2]> {
            - flag vortex2 duration:5s
            - shoot fireball origin:<player> speed:3 script:dmg
            - playeffect "location:<context.location>" effect:MOBSPAWNER_FLAMES
            - determine fulfilled
            } else {
            - narrate "<&e>u must wait <&c><&l><player.flag[vortex2].expiration.formatted>"
            - determine fulfilled
            }

dmg:
      type: task
      debug: false
      script:
      - if <player.has_effect[NIGHT_VISION]> {
        - foreach %hit_entities%
        - hurt %value% 100
        }