Solved Amount of blocks within 2 locations without loops?

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

TheCubPlays

Member
Jun 22, 2021
42
3
8
23
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:
set {_count} to amount of {_block} within {loc1} and {loc2}
That would obviously not work but is there something that could do it?
 
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:
set {_count} to amount of {_block} within {loc1} and {loc2}
That would obviously not work but is there something that could do it?

Code:
size of (all blocks within x and y)
 
Oh yeah sorry forgot to say that I find out how to do this:
Code:
set {_blocks} to size of ((blocks between {_location-1} and {_location-2}) where [input != air])
Thanks for the help though.
 
Status
Not open for further replies.