Solved Set blocks diagonally?

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

CloudSwap

Member
Oct 5, 2020
4
0
1
16
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".
 
Code:
set {_loc} to %your location% #eg. 'location of player' or 'location at 3, 5, 18 in world "world"'
add 1 to x-coordinate of {_loc}
add 1 to z-coordinate of {_loc}
set block at {_loc} to diamond block
 
  • Like
Reactions: CloudSwap
Thanks so much, it worked! I honesty don't know how I didn't think of this, but thanks for the help.
 
Status
Not open for further replies.