#How would i get the amount of blocks in a selection?

1 messages · Page 1 of 1 (latest)

jolly lodge
#

if I set the 2 positions like so... how would i get how many blocks are selected?

command //pos1:
    trigger:
        set {pos1::%player's uuid%} to player's target block
        send "&aSet position 1 to &6%player's target block's location%"

command //pos2:
    trigger:
        set {pos2::%player's uuid%} to player's target block
        send "&aSet position 2 to &6%player's target block's location%"```
zinc latch
#

Try size of all blocks within ... and ...

jolly lodge
zinc latch
#

I guess you can do some math
x * y * z would include everything

jolly lodge
#

I dont know how to think

zinc latch
#

You just multiply 3 numbers

jolly lodge
#

Nope still lost

zinc latch
#

The 2 selected possitions form a cuboid
To get the volume of that you need to multiple the lenght, width, and height of the selection
Volume meaning the amount of blocks within

#

Does that make sense?

jolly lodge
#

Kinda

#

I failed first grade math

zinc latch
#

Now just get those 3 values you need to multiply by substracting the x y or z coord of the smaller pos from the larger pos

jolly lodge
#

wait fuck
I just switched on my brain