Paste #74896: being able to enter

Date: 2020/08/24 07:16:52 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


shadowend_world:
    type: world
    debug: false
    events:
        on player enters shadowend:
        - if <server.has_flag[boss_restore]>:
            - narrate "wait <&b><server.flag[boss_restore].expiration.in_seconds><&f>s until you can enter again" format:info_text
            - determine cancelled
        - if <server.has_flag[shadowendfight]>:
            - narrate "A fight is already going on, wait until it is finished" format:info_text
            - determine cancelled
        - ratelimit player 1s
        - flag server shadowendfight:!
        - flag server lasertarget:!
        - flag server shadowend_hit:!
        - flag server shadow_attack:!
        - title "title:<&5>Auria <&f>S<&color[#E5CCFF]>h<&color[#CC99FF]>a<&color[#B266FF]>d<&color[#9933FF]>o<&color[#7F00FF]>w<&color[#6600CC]>e<&color[#4C0099]>n<&color[#330066]>d" "subtitle:you can't hide nor run." targets:<player>
        - flag server shadowendfight:<player>
        - run shadowend_quotes
        - wait 2s
        - bossbar Shadowend players:<player> "title:<&5>Auria <&f>S<&color[#E5CCFF]>h<&color[#CC99FF]>a<&color[#B266FF]>d<&color[#9933FF]>o<&color[#7F00FF]>w<&color[#6600CC]>e<&color[#4C0099]>n<&color[#330066]>d" color:purple style:segmented_6 progress:1
        - wait 3s
        - run shadowend_attack
        - wait 2s
        - playsound <player> sound:minecraft:music.vaati custom
        on player exits shadowend:
        - bossbar remove shadowend
        - flag server boss_restore duration:10s
        - flag server shadowendfight:!
        - flag server lasertarget:!
        - flag server shadow_hit:!
        - flag server shadowend_hit:!
        - flag server shadow_attack:!
        - remove <location[shadowendbeam4].find.entities[shulker].within[20]>
        on player dies in:shadowend:
        - determine passively cancelled
        - teleport <player> <location[shadowend_spawn]>
        - cast blindness amplifier:5 duration:5 no_ambient hide_particles no_icon
        - cast speed amplifier:-6 duration:5 no_icon no_ambient hide_particles
        - cast jump amplifier:-6 duration:5 no_ambient no_icon hide_particles
        - title "title:<&4><&l>You Died" stay:5s targets:<player>
        after player steps on black_concrete in:shadowend:
        - teleport <player> <location[shadowend_spawn]>
        - cast blindness amplifier:5 duration:5 no_ambient hide_particles no_icon
        - cast speed amplifier:-6 duration:5 no_icon no_ambient hide_particles
        - cast jump amplifier:-6 duration:5 no_ambient no_icon hide_particles
        - title "title:<&4><&l>You Died" stay:5s targets:<player>
        on player steps on purple_stained_glass in:shadowend:
        - teleport <player> <location[shadowend_spawn]>
        - cast blindness amplifier:5 duration:5 no_ambient hide_particles no_icon
        - cast speed amplifier:-6 duration:5 no_icon no_ambient hide_particles
        - cast jump amplifier:-6 duration:5 no_ambient no_icon hide_particles
        - title "title:<&4><&l>You Died" stay:5s targets:<player>
        on player damages shadoweye:
        - flag server shadowend_hit
        - flag server shadow_hit:++
        - random:
            - narrate "That left barely a scratch!" format:shadowend targets:<server.flag[shadowendfight]||null>
            - narrate "You think 1 arrow can stop me?" format:shadowend targets:<server.flag[shadowendfight]||null>
            - narrate "This playtime is getting less fun by the minute" format:shadowend targets:<server.flag[shadowendfight]||null>
        - if <server.flag[shadow_hit]> == 3:
            - run shadowend_dies
            - stop
        - narrate "that seemed to hurt it. keep on going" format:info_text targets:<server.flag[shadowendfight]||null>
        - wait 2s
        - run shadowend_attack