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

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

KingDooms

Member
Jun 10, 2020
26
0
1
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:
on right click on a stone button:
    set {_button1} to location 1 meter west clicked block
    set {_button2} to location at clicked block
    set block at {_button1} to stone
    set block at {_button2} to red concrete
 
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:
on right click on a stone button:
    set {_button1} to location 1 meter west clicked block
    set {_button2} to location at clicked block
    set block at {_button1} to stone
    set block at {_button2} to red concrete
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.
 
Status
Not open for further replies.