Paste #30908: Meteorite

Date: 2016/02/27 16:22:48 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21


MeteoriteCast:
  type: task
  debug: false
  definitions: player|target
  script:
  - ^if !<proc[CooldownCheckItem].context[<script.name>]> {
     - shoot e@fireball height:0.02 gravity:0.9 speed:0.3 s@moltenearth
     - cooldown 3
    }

MoltenEarth:
  type: task
  debug: true
  definitions: damager
  script:
  - ^foreach <def[location].find.surface_blocks.within[3]> {
    - if <util.random.int[1].to[100]> > 50 {
      - showfake m@glass <def[value]> players:<def[location].find.players.within[20].as_list> d:5
      - run s@timed_effect d:<def[value]>|smoke|25|0|.1,.1,0|8
      }
    }