Paste #54615: Script re-paste from https://pastebin.com/860QBFvE

Date: 2019/06/12 02:08:19 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


on player left clicks with magenta_dye:
        - if <player.item_in_hand.display.contains[explo]>:
            - if !<player.has_flag[armagedonczas]>: 
              - shoot fireball origin:<player> speed:1 
              - flag <player> armagedonczas duration:5s
            - else: 
              - narrate "<&e>xxxxx"   

        on fireball damages entity: 
        - define center <context.entity.location> 
        - inject explo

        on fireball hits block: 
        - define center <context.location> 
        - inject explo





explo: 
    type: task 
    speed: 1t 
    script: 
    - playeffect <def[center]> effect:huge_explosion visibility:50 
    - define targets <def[center].find.entities.within[7].exclude[<player>]> 
    - if <def[target]> != null: 
        - foreach <def[targets]>: 
          - if <def[value].has_effect[NIGHT_VISION]>: 
            - hurt 30 <def[value]> 
        - ^repeat 6: 
          - define center <def[center].add[0,2,0]> 
          - ^playeffect effect:flame <def[center]> offset:1 qty:40 visibility:50 
          - wait 1t