Solved Set blocks in an area

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

Blep

New Member
Jun 23, 2020
9
0
1
25
Ive been trying to work around this problem but I just cant get this to work. The blocks dont appear but the messages do. There are no errors. Whats up with this?

Code:
command /mine:
        trigger:
                broadcast "executing"
                set {_x} to location 0, 10, 0
                set {_y} to location 10, 20, 10
                set {_block} to "bedrock"
                broadcast "vars setup"
                set all blocks within {_x} and {_y} to {_block}
                broadcast "complete"
                broadcast "%{_block}%"
 
remove the "" around bedrock.
you are setting your variable {_block} to the string "bedrock" instead of the block bedrock.

other than that it is working as expected when i tested your code. keep in mind that you are making a 10 block cube close to the bottom (under the ground) of your map. it might be easier to see if you change the 20 to something like 100 while testing.
but i assume you dug a hole to the y 10-20 level.
 
Status
Not open for further replies.