How to detect if you are standing flat lands?

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

BrownMee

Active Member
Apr 16, 2018
126
6
18
I'm not sure if skript able to do this. Using this code doesn't works
Code:
loop blocks in radius 3 around player:

since it loops the air as well. I just want to check if theres any cliff or mountain beside me. Triggers when you the ground is flat
 
If you don't want it to check for air


code_language.skript:
loop blocks in radius 3 around player:
    if loop-block is not air:
        # Your code here
 
If you don't want it to check for air


code_language.skript:
loop blocks in radius 3 around player:
    if loop-block is not air:
        # Your code here
it check the inner ground floor so is not working
[doublepost=1586865584,1586865322][/doublepost]
If you don't want it to check for air


code_language.skript:
loop blocks in radius 3 around player:
    if loop-block is not air:
        # Your code here
Is it possible to work with this code? I can't somehow make it to work

Code:
loop 5 block in west of the player
 
code_language.skript:
loop blocks in radius 3 around player:
    if loop-block is not air:
        if y coord of location of loop-block is y coord of location of player:
[doublepost=1586865642,1586865589][/doublepost]
it check the inner ground floor so is not working
[doublepost=1586865584,1586865322][/doublepost]
Is it possible to work with this code? I can't somehow make it to work

Code:
loop 5 block in west of the player
Nope not possible
 
code_language.skript:
loop blocks in radius 3 around player:
    if loop-block is not air:
        if y coord of location of loop-block is y coord of location of player:
[doublepost=1586865642,1586865589][/doublepost]
Nope not possible
Code:
on right click with campfire:
    loop blocks in radius 3 around player:
        if loop-block is not air:
            if y coord of location of loop-block is y coord of location of player:
                send "s"

Testing it no message was sent and i keep spamming on floor and on sky
 
loop all blocks in radius 3 of player where [y-coordinate of input = (y-coordinate of player)+1]:
loop-block != Air
send "not flat"
 
Status
Not open for further replies.