Paste #122009: Unnamed Denizen Script Paste

Date: 2024/04/15 10:31:52 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


testwater:
    type: world
    events:
        on player enters antiwater:
        - if <player.location.direction> == north:
            - adjust <player> velocity:0,0.5,0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - else if <player.location.direction> == south:
            - adjust <player> velocity:0,0.5,0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - if <player.location.direction> == southwest:
            - adjust <player> velocity:0.5,0.5,-0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - else if <player.location.direction> == northeast:
            - adjust <player> velocity:0.5,0,-0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - if <player.location.direction> == southeast:
            - adjust <player> velocity:-0.5,0.5,-0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - else if <player.location.direction> == northwest:
            - adjust <player> velocity:-0.5,0.5,-0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - if <player.location.direction> == northeast:
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
            - adjust <player> velocity:-0.5,0.5,0.5
        - else if <player.location.direction> == southwest:
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
            - adjust <player> velocity:-0.5,0.5,0.5
        - if <player.location.direction> == northwest:
            - adjust <player> velocity:0.5,0.5,0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - else if <player.location.direction> == southeast:
            - adjust <player> velocity:0.5,0.5,0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - if <player.location.direction> == south:
            - adjust <player> velocity:0,0.5,-0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - else if <player.location.direction> == north:
            - adjust <player> velocity:0,0.5,-0.5
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - if <player.location.direction> == east:
            - adjust <player> velocity:-0.5,0.5,0
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - else if <player.location.direction> == west:
            - adjust <player> velocity:-0.5,0.5,0
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - if <player.location.direction> == west:
            - adjust <player> velocity:0.5,0.5,0
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - else if <player.location.direction> == east:
            - adjust <player> velocity:0.5,0.5,0
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - if <player.location.direction> == east:
            - adjust <player> velocity:-0.5,0.5,0
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>
        - else if <player.location.direction> == west:
            - adjust <player> velocity:-0.5,0.5,0
            - playsound <player> sound:entity_elder_guardian_curse pitch:0.5
            - actionbar "<yellow>You cannot enter the water!" targets:<player>