Flying then unflying on right click

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

  • 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.
Feb 8, 2022
20
0
1
15
How do you make it so while a player is holding an item that lets them fly and gets hit while flying in the air they fall and need to wait 5 seconds to fly again? and once you unequipped that item then you fall?

never mind, I figured it out. but can someone still help me with the second question?
[doublepost=1644420934,1644344178][/doublepost]my skript so far is
on leftclick:
if player's held item is iron axe named "&f&l&oStormbreaker":
if player is not flying:
if player is not sneaking:
set player's fly mode to true
else:
if player is flying:
if player is not sneaking:
set player's fly mode to false



on damage:
if victim is flying:
set victim's fly mode to false
wait 5 seconds
[doublepost=1644420990][/doublepost]that works but Idk how to make it so when you unequipped the item and your flying you fall
 
What are you trying to do exactly?
[doublepost=1644436617,1644436507][/doublepost]If i am right, This is what exactly you need.
Code:
on armor unequip:
    if event-item is iron boots named "&f&lFeather Boots":
        if player is flying:
            set player's flying mode to false
 
like if you equipped an item that lets you fly, and start flying. but once you unequipped that item you stop flying

Code:
on armor equip:
    if event-item is iron boots named "&f&lFeather Boots":
        if player is not flying:
            set player's flying mode to true

# Opposite of Feather Boots

on armor unequip:
    if event-item is iron boots named "&f&lFeather Boots":
        if player is flying:
            set player's flying mode to false
pretty much it
 
Code:
on armor equip:
    if event-item is iron boots named "&f&lFeather Boots":
        if player is not flying:
            set player's flying mode to true

# Opposite of Feather Boots

on armor unequip:
    if event-item is iron boots named "&f&lFeather Boots":
        if player is flying:
            set player's flying mode to false
pretty much it
it works, thank you for helping!
 
the skript works and has no errors but as soon as I put it in my server it says "Can't understand this event:'on armor equip' then the same thing with unequip, do you know how to fix that?
 
put ur same exact addons on ur server that worked on "on armor equip" or "on armor unequip" server
 
Status
Not open for further replies.