#Custom glider item not working as intended

1 messages · Page 1 of 1 (latest)

late shadow
#

I want to make a custom elytra item but whenever i use the boost ability it sometimes pushes me down instead of in the direction I am facing

#
    if event-item is not air:
        if name of event-item is "&eSinister Cape":
            set {cape.glide::%uuid of player%} to true
            push player upwards at speed 0.8
            wait 5 ticks
            if player is not on ground:
                set gliding state of player to on

on jump:
    if name of chestplate of player is "&eSinister Cape":
        set {cape.glide::%uuid of player%} to true
        wait 3 ticks
        if player is not on ground:
            set gliding state of player to on

every 1 tick:
    loop all players:
        if {cape.glide::%uuid of loop-player%} is true:
            if name of chestplate of loop-player is "&eSinister Cape":
                if loop-player is not on ground:
                    set gliding state of loop-player to on
                else:
                    wait 3 ticks
                    if loop-player is on ground:
                        delete {cape.glide::%uuid of loop-player%}
                        set gliding state of loop-player to off
            else:
                delete {cape.glide::%uuid of loop-player%}
                
on swap hand items:
    if chestplate of player is not air:
        if name of chestplate of player is "&eSinister Cape":
            cancel event

            send "test" to player

            if {cape.glide::%uuid of player%} is true:
                if item cooldown of leather chestplate for player is 0 seconds:
                    set item cooldown of leather chestplate for player to 2 seconds
                    push player in direction of player at speed 1.1
                    send "test1" to player```
late shadow
#

nvm i fixed it

visual prawn
#

why not use a glider component