Force Fly

  • 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 comminuty!

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

feerko

Member
Feb 19, 2017
70
1
0
28
Suggested name:
ForceFly

What I want:
Make player fly without double jump

Ideas for commands:
/fly

Ideas for permissions:
forcefly.fly

When I'd like it by:
A reasonable time
 
Its possible with umbaska 2.0 but umbaska its very buggy a lot and i trying to find another solution.
(Not tested, but I know this works, since I used it before)
code_language.skript:
command /fly:
    permission: forcefly.fly
    trigger:
        if {fly.%uuid of player%} is not set:
            set {fly.%uuid of player%} to true
            set player's fly mode to true
            message "&fFly mode &aenabled&f!"
        else:
            delete {fly.%uuid of player%}
            set player's fly mode to false
            message "&fFly mode &cdisabled&f!"

Code:
Addon: SkQuery
Patterns:
%players%'s fl(y|ight) (state|ability|mode)
[the] fl(y|ight) (state|ability|mode) of %players%
 
(Not tested, but I know this works, since I used it before)
code_language.skript:
command /fly:
    permission: forcefly.fly
    trigger:
        if {fly.%uuid of player%} is not set:
            set {fly.%uuid of player%} to true
            set player's fly mode to true
            message "&fFly mode &aenabled&f!"
        else:
            delete {fly.%uuid of player%}
            set player's fly mode to false
            message "&fFly mode &cdisabled&f!"

Code:
Addon: SkQuery
Patterns:
%players%'s fl(y|ight) (state|ability|mode)
[the] fl(y|ight) (state|ability|mode) of %players%

It's doesn't work. I still have to double jump.
 
try to push the player in the air with the on jump: event and with a delay so wenn they are in the air setting the fly state to true