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.

How to detect above of the player is air?

Discussion in 'Skript' started by BrownMee, Nov 15, 2020.

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

    BrownMee Active Member

    Joined:
    Apr 16, 2018
    Messages:
    126
    Likes Received:
    6
    How do I test if above players is a block or is air?
     
  2. Tistay

    Tistay New Member

    Joined:
    Nov 15, 2020
    Messages:
    7
    Likes Received:
    0
    Hey there.
    Code (Text):
    1. if block 2 meters above player is air:
    This should do the job.
     
  3. BrownMee

    BrownMee Active Member

    Joined:
    Apr 16, 2018
    Messages:
    126
    Likes Received:
    6
    How to detect if you are not expose to sunlight or moonlight?
     
  4. Tistay

    Tistay New Member

    Joined:
    Nov 15, 2020
    Messages:
    7
    Likes Received:
    0
    I believe you can check the sunlight level at a location, so just check the light level at the player. Smarter people could give you a more complete answer tho :emoji_disappointed_relieved:

    Edit:
    Ye, https://docs.skunity.com/syntax/search/id:5177.
     
  5. BrownMee

    BrownMee Active Member

    Joined:
    Apr 16, 2018
    Messages:
    126
    Likes Received:
    6
    Code (Text):
    1. if block 1 meters above event-block is air:
    is it possible to do 1 blocks above instead of meters?
     
  6. Marsbar

    Marsbar Active Member

    Joined:
    Mar 31, 2019
    Messages:
    131
    Likes Received:
    4
    if sunlight level at block above event-block > 5
     
  7. BrownMee

    BrownMee Active Member

    Joined:
    Apr 16, 2018
    Messages:
    126
    Likes Received:
    6
    I don't want to check light level now. I want to check above is 3x3 above me is air or not
     
  8. Ankoki

    Supporter

    Joined:
    Nov 5, 2020
    Messages:
    55
    Likes Received:
    12
    pretty sure 1 block is 1 meter. Could be wrong.
     
  9. BrownMee

    BrownMee Active Member

    Joined:
    Apr 16, 2018
    Messages:
    126
    Likes Received:
    6
    nope i tried and its actually like 100 blocks
     
  10. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    You'd be right. Minecraft blocks are actually just 1 cubic meter in size.

    EDIT:
    Could try
    Code (Text):
    1. if block above player is air
     
  11. BrownMee

    BrownMee Active Member

    Joined:
    Apr 16, 2018
    Messages:
    126
    Likes Received:
    6
    sorry,
    i wanna check the entire block above me is air or not? is that possible?
    i wanna make something to triggers it only when player is in house or shelter
     
Thread Status:
Not open for further replies.

Share This Page

Loading...