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