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