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.

Not being able to set a block at clicked block's location

Discussion in 'Skript' started by KingDooms, Sep 5, 2021.

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

    KingDooms Member

    Joined:
    Jun 10, 2020
    Messages:
    23
    Likes Received:
    0
    So i don't know why but you can't set a block at the clicked block's location, idk if im doing it wrong because there is no errors.


    Code (Text):
    1.  
    2. on right click on a stone button:
    3.     set {_button1} to location 1 meter west clicked block
    4.     set {_button2} to location at clicked block
    5.     set block at {_button1} to stone
    6.     set block at {_button2} to red concrete
     
  2. TweedeKamer

    TweedeKamer Member

    Joined:
    Sep 6, 2021
    Messages:
    25
    Likes Received:
    1
    I tested your code and it works fine for me 2 blocks spawn next to each other you just need to place the stone button on the ground.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...