Set Block at (x y z)

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

zeibo

Member
May 16, 2017
11
0
0
27



How can I set the block to block-2 at the specified coordinates(red point)?
Assuming that I already know the coordinate of the yellow point, what should I do?

code_language.skript:
on leftclick on a grass:
    player is holding {city_center}
    set {lx.citycenter} to the event-block's x-coordinate
    set {ly.citycenter} to the event-block's y-coordinate
    set {lz.citycenter} to the event-block's z-coordinate
    set the block to air
 
code_language.skript:
set block at location at 50, 50, 50 in world "world" to air
Just put in your wanted coordinates instead of 50 50 50
 
Status
Not open for further replies.