Hey, I’m making a plugin that fires user if there’s no blocks above him (except for light-ski for my project.
So… I saw that there is ‘BlockRay’ method to track is there any blocks (except light transmitting blocks), buy after ~20 attempts to use BlockRay i’ve got no result, so I just started to check blocks in the loop (for (int y = playerLocation.getFloorY(); y <= 256; y++)), is there a proper way to check is there any blocks above player?