Definition (affine cone)
For a projective algebraic set $X \subseteq \mathbb{P}^n$ Define the affine cone over $X$ as $$ \begin{align*} C(X) ={}& \sb{(a_0,\ldots, a_n)\in \mathbb{A}^{n+1}}{(a_0: \ldots:a_n)\in X} \cup \set{0} \\ ={}& q\inv(X) \cup \set{0} \end{align*} $$ where $q: \mathbb{A}^{n+1} \twoheadrightarrow \mathbb{P}^n: (a_0, \ldots, a_n) \mapsto (a_0:\ldots:a_n)$.
Write $Z_a$, $I_a$ for the affine case and $Z_p$, $I_p$ for the projective case.
By definition (or from here), $q\inv(Z_p(J)) = Z_a(J) \setminus \set{0}$. Therefore $$ \begin{align*} C(Z_p(J)) = \begin{cases} Z_a(J), &Z_p(J)\neq \emptyset, \\ \set{0}, &Z_p(J) = \emptyset. \end{cases} \end{align*} $$
Moreover by definition $$ \begin{align*} I_a(C(X)) = \begin{cases} I_p(X), &X\neq \emptyset, \\ I_a(\set{0}) = (x_1, \ldots, x_n), &X = \emptyset. \end{cases} \end{align*} $$
$C(X)$ is irreducible iff $X$ is irreducible. > (Proof)