1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Amount of blocks within 2 locations without loops?

Discussion in 'Skript' started by TheCubPlays, Aug 29, 2021.

Thread Status:
Not open for further replies.
  1. TheCubPlays

    TheCubPlays Member

    Joined:
    Jun 22, 2021
    Messages:
    35
    Likes Received:
    3
    Hello! So I was wondering if there was a way to check the amount of blocks within 2 locations without using loops? What I mean is something like this:
    Code (Text):
    1. set {_count} to amount of {_block} within {loc1} and {loc2}
    That would obviously not work but is there something that could do it?
     
  2. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    597
    Likes Received:
    37
    maybe something like
    Code (Text):
    1. set {_count} to amount of all blocks within ...
     
  3. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    Code (Text):
    1. size of (all blocks within x and y)
     
  4. TheCubPlays

    TheCubPlays Member

    Joined:
    Jun 22, 2021
    Messages:
    35
    Likes Received:
    3
    Oh yeah sorry forgot to say that I find out how to do this:
    Code (Text):
    1. set {_blocks} to size of ((blocks between {_location-1} and {_location-2}) where [input != air])
    Thanks for the help though.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...