Solved Double Jump

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Turtlord

Member
Feb 11, 2021
14
0
1
Hello,
I found a double jump skript that works and I tried adding that only if the player is wearing specific armor it would let him double jump put then I saw that if the player doesn't wear the armor he starts flying
Code:
on flight toggle:
    player's gamemode is not creative
        player is wearing a leather boots
        if name of player's boots is "&9Plummer Boots":
            cancel event
            wait a tick
            set player's flight state to false
            push player upwards at speed 0.8
            push player forwards at speed 0.8
            make 10 of poof at player with offset vector(2, 2, 2) with extra 0.5
            morkazsk play sound "entity_bat_takeoff" at player  with pitch 1.0 and volume 2.0
       
on jump:
    player's gamemode is not creative:
        player has permission "{@DoubleJumpPerm}":
            {DoubleJump%player's uuid%} is not set:
                block below player is not air or water:
                    set player's flight state to true

on damage:
    damage cause is fall:
        {DoubleJump%victim's uuid%} is not set:
            cancel event