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 Set blocks diagonally?

Discussion in 'Skript' started by CloudSwap, Feb 22, 2021.

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

    CloudSwap Member

    Joined:
    Oct 5, 2020
    Messages:
    4
    Likes Received:
    0
    I just wanted to know if there's any way to set blocks diagonally, preferably through "set block (num) (direction) event-block to (block)."

    Skript Version: 2.5.3 (Minehut)
    Minecraft Version: 1.16.5

    Addons using (including versions):
    (though not used) TuSKe

    Troubleshooting:

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes
    What other methods have you tried to fix it? Tried using things like "1 right and 1 above".
     
  2. Best Answer:
    Post #2 by Nikd0, Feb 22, 2021
  3. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    204
    Likes Received:
    19
    Code (Text):
    1. set {_loc} to %your location% #eg. 'location of player' or 'location at 3, 5, 18 in world "world"'
    2. add 1 to x-coordinate of {_loc}
    3. add 1 to z-coordinate of {_loc}
    4. set block at {_loc} to diamond block
     
    • Like Like x 1
  4. CloudSwap

    CloudSwap Member

    Joined:
    Oct 5, 2020
    Messages:
    4
    Likes Received:
    0
    Thanks so much, it worked! I honesty don't know how I didn't think of this, but thanks for the help.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...