Solved Block 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.

Jeroeno_Boy

Active Member
Jun 2, 2017
61
2
8
24
So i want to set Yellow concrete to green concrete, but it doesnt place, no errors

Code:
set {_Block} to block at location at X-location of event-block + 5, Y-location of event-block - 1, Z-location of event-block in world of event-block
                        message "%Location of event-block%"
                        message "%{_Block}%"
                        message "%Location of {_Block}%, %World of {_Block}%"
                        if {_Block} is a yellow concrete block:
                            message "8"
                            set {_Block} to grass block
 
code_language.skript:
set {_loc} to location at X-location of event-block + 5, Y-location of event-block - 1, Z-location of event-block in world of event-block
if block at {_loc} is a yellow concrete block:
    message "8"
    set block at {_loc} to grass block
 
Status
Not open for further replies.