Particles while flying

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

Status
Not open for further replies.

JackZero

Member
Nov 19, 2020
1
0
1
I'm trying to make a Skript that allows players to fly and other perks while wearing 4 pieces of armor with some specific lore. I've gotten the 4 piece perks/flight to work, but is there a way to display particles under the player's feet while they are flying in the air? I can sort of make it work with skDragon but can't seem to figure out how to only have the particles show while they're flying.

Code:
function checkEquipment(p: player, l: text) :: boolean:
    set {_items::*} to helmet of {_p}, chestplate of {_p}, leggings of {_p} and boots of {_p}
    loop {_items::*}:
        delete {_lores::*}
        set {_lores::*} to lore of loop-value
        loop {_lores::*}:
            if loop-value-2 contains "%{_l}%":
                add 1 to {_buff}
                exit 1 loop
    if {_buff} >= 4:     
        return true
    return false

on armor equip:
    wait 1 ticks
    if checkEquipment(player, "Flight") is true:
        if {FlightTimer.%player%.disabled} is not true:
            set player's flight mode to true
            set player's flight speed to 0.025
        if {FlightEnabled.%player%} is not true:
            set {FlightEnabled.%player%} to true
 
Status
Not open for further replies.