Unable to download Minecraft Pi

Hi, my cousin is following a guide book on Minecraft pi edition for his pi 3 but recently the sd card used for storage got corrupted, we bought a new card and put the pi 3 os on it via the pi imager, however when i tried to install minecraft using the package method (sudo apt-get update
sudo apt-get install minecraft-pi) it couldn’t find the package and when i tried the method where you install the app centre (wget -qO- https://githubusercontent.com | bash) it was unable to run the download. Is there another method of installing or should i get a new pi, and if so would i face the same problem?

Thank you, Reuben

Was Minecraft installed and working before the SD card corruption?
I’m guessing the previous install was an older version of Pi OS, one that may have been archived. And the latest PiOS doesn’t support that guides instructions. Just a hunch / guess.

Don’t buy a new Pi—the Pi 3 isn’t the likely problem. Minecraft Pi Edition was discontinued, and the minecraft-pi package is not in current Raspberry Pi OS repositories, so both apt and that installer can fail. Your best route is to flash an older/legacy Raspberry Pi OS release that still includes or can install Minecraft Pi, then install minecraft-pi there. If you need the current OS for other things, use a second SD card for the legacy setup rather than replacing the Pi.

If you know what to look for, you can likely find it here,

This might help. Scroll down to the legend to match date with release name, Buster Bullseye etc. I have a couple of legacy setups here with Pi 3’s that I run Buster on.