Paste #106945: Unnamed Denizen Script Paste

Date: 2023/03/05 13:52:23 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


momentum:
    type: world
    events:
        on player jumps:
            - adjust <player> has_friction:false
        on player starts sprinting:
            - while <player.is_sprinting>:
                - if <player.speed> <= 0.29:
                    - wait 0.1s
                    - adjust <player> speed:<player.speed.add[0.02]>
                    - announce <player.speed>
                    - adjust <player> has_friction:true
        on player stops sprinting:
            - adjust <player> speed:0.11