could anyone tell me how i can find the closest air block to a player? i tried PHP: $to = rand(1,3); $block = $player->getLevel()->getBlockIdAt( $player->x - $to, $player->y + $to, $player->z - $to); if ($block === Item::AIR){ and got this error ClassCastException: "Object of class pocketmine\level\Location could not be converted to int any help?