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.

Acid Rain?

Discussion in 'Skript' started by Jornvbr, Jun 6, 2020.

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

    Jornvbr Member

    Joined:
    Jun 6, 2020
    Messages:
    4
    Likes Received:
    0
    Hi guys,

    I'm working on a minigame, but I can't get acid rain to work.
    Do I need to check if there is a block above the player? What's the best method?

    This is my script now.

    upload_2020-6-6_13-55-35.png

    Thanks
     
  2. Killerz1243

    Killerz1243 Active Member

    Joined:
    Oct 31, 2019
    Messages:
    78
    Likes Received:
    7
    check if the y coordinate of the highest block is lesser than the y coordinate of the player
     
  3. Jornvbr

    Jornvbr Member

    Joined:
    Jun 6, 2020
    Messages:
    4
    Likes Received:
    0
    But how do you do that?
     
  4. Killerz1243

    Killerz1243 Active Member

    Joined:
    Oct 31, 2019
    Messages:
    78
    Likes Received:
    7
    Code (Text):
    1. if y coordinate of highest block at player's location < y coordinate of player:
    2.     #code
     
  5. Jornvbr

    Jornvbr Member

    Joined:
    Jun 6, 2020
    Messages:
    4
    Likes Received:
    0
    upload_2020-6-6_16-28-0.png
    Like this? Sorry I'm new :emoji_stuck_out_tongue:
     
  6. Killerz1243

    Killerz1243 Active Member

    Joined:
    Oct 31, 2019
    Messages:
    78
    Likes Received:
    7
  7. Jornvbr

    Jornvbr Member

    Joined:
    Jun 6, 2020
    Messages:
    4
    Likes Received:
    0
    Already did... It does not work :emoji_frowning:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...