Paste #64626: Velocity flag for players script - By Speeder323#2134

Date: 2020/01/27 10:07:28 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


velocity:
    debug: false
    type: world
    events:
        on player walks:
            - define loc:<context.new_location.sub[<context.old_location>]>
            - define worldname:<player.location.world.name>
            - define locX:<[loc].x.mul[1.7].round_to[7]>
            - define locY:<[loc].y.mul[1.05].round_to[7]>
            - define locZ:<[loc].z.mul[1.7].round_to[7]>
            - flag <player> velocity:l@<[locX]>,<[locY]>,<[locZ]>,<[worldname]>