Paste #134048: Crawl Command

Date: 2025/06/15 01:54:25 UTC-07: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


crawlCommand:
    type: command
    debug: false
    name: crawl
    description: crawl on the ground
    usage: /crawl
    permission: crawl.command
    script:
    - if <player.has_flag[Crawling]>:
        - flag <player> Crawling:!
        - stop
    - flag <player> Crawling:true
    - adjust <player> swimming:true
    - adjust <player> visual_pose:swimming
    - while <player.has_flag[Crawling]> && !<player.eye_location.material.name.contains_any[water]||false> && <player.is_online>:
        - fakespawn <entity[shulker].with[visible=false;invulnerable=true;silent=true]> <player.eye_location.above[-0.5]> duration:1t players:<player>
        - wait 1t