Paste #77215: Blade_Vortex

Date: 2020/11/06 00:38:52 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


Spell_Blade_Vortex:
    type: task
    debug: false
    definitions: caster
    script:
        - spawn Blade_Vortex <[caster].location> save:center
        - flag <[caster]> Blade_Vortex:++ duration:5s
        - define yaw 40
        - while <[caster].is_online> && <[caster].is_spawned> && <[caster].has_flag[Blade_Vortex]>:
            - define yaw <[yaw].add[0.3]>
            - teleport <entry[center].spawned_entity> <[caster].location.add[<location[0,0.5,1.5].rotate_around_y[<[yaw]>]>]>
            - define nearby_entities <[caster].location.find.living_entities.within[2.5]>
            - hurt <[caster].flag[Blade_Vortex]> <[nearby_entities].exclude[<[caster]>]>
            - wait 1T
        - remove <entry[center].spawned_entity>