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 Check if bedrock is near

Discussion in 'Skript' started by Nikola, Mar 16, 2020.

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

    Nikola Member

    Joined:
    Jul 10, 2019
    Messages:
    38
    Likes Received:
    1
    So, I made skript that pastes schematic when oak sapling grows, and I'm using world which has bedrock walls all around it. Players are able to plant, build and play inside those walls (in that world), and not go outside. I want to make a change to that skript which loops blocks in radius 50 around event-location (sapling growth), and if there is bedrock in that saved loop, stop the skript and don't allow tree to grow. (if schematic is being pasted next to a bedrock wall, it's leaves/logs will replace that wall with breakable blocks and that will allow them to go outside). I tried to loop all blocks in radius 50 around event-location, and then check if loop-block is bedrock or it isn't. If event-block is bedrock, then send message and stop the event, and if event-block isn't bedrock, then paste the schematic. BUT, there is an problem. When I stand next to border and plant a tree, it sends message that there is border nearby, but it pastes the tree. How can I fix that? Any ideas?
     
  2. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45
    if u post ur code instead
     
  3. Nikola

    Nikola Member

    Joined:
    Jul 10, 2019
    Messages:
    38
    Likes Received:
    1
    Nvm I fixed it with creating regions around walls that don't allow planting trees inside them.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...