Problem with looping over blocks in a set 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 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!

Death68093

Member
Nov 17, 2025
2
0
1
I'm trying to make a cmd to build simple maps, but I can't get it to work. There are no errors when I run this in skript 2.6.5 for 1.8.8, but it doesn't work:

Code:
command /buildmap <text>:
    permission: event.host.buildmap
    usage: /buildmap <4corners>
    trigger:
        set {_map} to arg-1

        if {_map} is "4corners":
            # Set the corner locations
            set {_loc1} to location at 1149, 37, -1300 in world "world"
            set {_loc2} to location at 1171, 37, -1324 in world "world"

            loop blocks within block {_loc1} and block {_loc2}:
                send block's location to player
                set block to blue stained clay

            send "&aMap built successfully!" to player