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

Radius Thing Help

Discussion in 'Skript' started by OneMore, Jul 19, 2017.

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

    OneMore Member

    Joined:
    Jul 16, 2017
    Messages:
    7
    Likes Received:
    0
    Code (Skript):
    1. on right click on chest:
    2.     if event-block is in radius 2 of {chest1::location}:
    3.         if player is in {openedchest::uuid of player}:
    4.             send "&cThis chest is empty."
    So, I am trying to make it so when they right click the chest in radius 2 of "{chest1::location}" (I already set the coords of that variable) for it to say "&cThis chest is empty" I am getting an error on the line "if event-block is in radius 2 of {chest1::location}:" Please tell me how to fix this.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Code (Skript):
    1. on rightclick on chest:
    2.     loop all blocks in radius 2 of {chest1::location}:
    3.         if loop-block is event-block:
    4. #etc
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Thank you
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Mark the thread as solved please ^^
     
Thread Status:
Not open for further replies.
Loading...