Solved How to check if player is in air

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

Andrew2000

Member
Aug 21, 2017
34
0
0
How to check if player is in air and then if they are, send message "You are unable to do command /help"
 
do you mean in air as flying? or just surrounded by air? there's an condition in the docs for a player flying. elsewise you can just loop the blocks around a player and check if they are air
 
Im bad at script, @Wynnevir could you give me an example

I tried this but if im on the ground wont work
code_language.skript:
if block at player is air:
 
Im bad at script, @Wynnevir could you give me an example

I tried this but if im on the ground wont work
code_language.skript:
if block at player is air:
The code you have will check for air, but only at the block at the player. You could do something like this to check the blocks in the radius of a player, but you still haven't posted code or thoroughly explained your goal here so it may or may not work for what you want to accomplish.
code_language.skript:
loop blocks in radius 2 of player:
    if loop-block is not air:
 
  • Like
Reactions: Zak_Not_Zach
Or with skellet
code_language.skript:
if ground state of player is false:
 
Status
Not open for further replies.