I've read a few (many) posts about distance, but I'm having problem with understanding the distance when you have different hight (Y) on the start/stop point.
(My example image is a view from the side)
For example, monsters can spawn 24 blocks from you.
so If I'm standing on the blue blocks, monsters can spawn on the red blocks.
But, how do you calculate when it's both Y & X?
Can monster spawn on the green blocks?
And how do you calculate if the distance is both x,y,z?, (Monster spawn that is higher and diagonally?)
I've tried for a long time to get my head around this, but I'm just failing..