Paste #117521: Unnamed Denizen Script Paste

Date: 2023/11/13 00:04:24 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


gravity_gauntlet_handler:
    type: world
    events:
        on player left clicks block with:gravity_gauntlet:
          - ratelimit <player> 1s
          - ~shoot snowball[item=ender_pearl] origin:<player> destination:<player.cursor_on> save:gravity_bullet speed:3
          - wait
          - foreach <entry[gravity_bullet].hit_entities> as:entity:
            - cast levitation duration:3s amplifier:0 <[entity]>
        on player right clicks block with:gravity_gauntlet:
          - ratelimit <player> 1s
          - ~shoot snowball[item=ender_pearl] origin:<player> destination:<player.cursor_on> save:gravity_bullet speed:3
          - wait
          - foreach <entry[gravity_bullet].hit_entities> as:entity:
            - flag <[entity]> grav expire:3s
            - while <[entity].has_flag[grav]>:
              - ratelimit <[entity]> 1t
              - adjust <[entity]> velocity:<[entity].location.below[10].sub[<[entity].location>]>