1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved How to detect if block above player is all air?

Discussion in 'Skript' started by YK_DZ, Jan 18, 2022.

Thread Status:
Not open for further replies.
  1. YK_DZ

    YK_DZ Member

    Joined:
    Jan 14, 2022
    Messages:
    24
    Likes Received:
    0
    I want to make an event that will only trigger when the player is in the house.

    I try to use

    if block above player is not air:

    and

    if block above player is not all air:

    but none of them work correctly.
     
  2. Best Answer:
    Post #2 by Allan Noyd, Jan 18, 2022
  3. Allan Noyd

    Allan Noyd Member

    Joined:
    Apr 29, 2021
    Messages:
    48
    Likes Received:
    0
    Try
    Code (Text):
    1. every second:
    2.     loop all players:
    3.         altitude of highest block at location of loop-player > y-coordinate of loop-player
    4.         #the code it should execute goes here
    Hope it helps.
     
  4. YK_DZ

    YK_DZ Member

    Joined:
    Jan 14, 2022
    Messages:
    24
    Likes Received:
    0
    It actually worked! Thanks for your help.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...