Solved How to detect if block above player is all 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 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.

YK_DZ

Member
Jan 14, 2022
24
0
1
24
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.
 
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.
Try
Code:
every second:
    loop all players:
        altitude of highest block at location of loop-player > y-coordinate of loop-player
        #the code it should execute goes here
Hope it helps.
 
Try
Code:
every second:
    loop all players:
        altitude of highest block at location of loop-player > y-coordinate of loop-player
        #the code it should execute goes here
Hope it helps.

It actually worked! Thanks for your help.
 
Status
Not open for further replies.