Date: 2023/11/13 00:04:24 UTC-08:00
Type: Denizen Script
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>]>