Solved Saving targeted block

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

    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.

Hackusater

Active Member
Aug 5, 2017
74
2
8
I can't seem to get this to work:
code_language.skript:
command /test:
    trigger:
        set {_block} to targeted block
#here it is the block it is supposed to be
        set block at {_block} to gold block
#now {_block} is gold block but I want it to stay the block before it was changed to gold
        wait 1 second
        set block at {_block} to {_block
 
I can't seem to get this to work:
code_language.skript:
command /test:
    trigger:
        set {_block} to targeted block
#here it is the block it is supposed to be
        set block at {_block} to gold block
#now {_block} is gold block but I want it to stay the block before it was changed to gold
        wait 1 second
        set block at {_block} to {_block

code_language.skript:
command /test:
    trigger:
        set {_block} to "%target block%" parsed as item type
        set {_loc} to location of target block
        set block at target block to gold block
        wait 1 second
        set block at {_loc} to {_block}
 
Status
Not open for further replies.