A shell script to patch the android arm32 and arm64 versions of minecraft bedrock edition
Tested on Minecraft Bedrock Edition 1.21.23 may not work in future versions
You need the official android version to use this script
Patches:
- allow construction on the nether roof;
- allow installation of shaders for renderdragon;
On Linux
-
Make a backup of your worlds
-
Install the following dependencies
- java-openjdk (openjdk)
- zsh
- patchelf
- wget
- sed
- android-tools (android-tools-adb)
-
Enable USB debugging on your phone in developer options
-
Connect your phone to your computer via USB cable
-
download the script and give it execution permissions with the following commands
wget -O ~/MCBE_Patcher.sh https://raw.githubusercontent.com/Coffee-0xFF/MCBE_Android_Patcher/main/Minecraft_Patcher.sh
chmod +x ~/MCBE_Patcher.sh
- Run the script with the option adb. If all processes are successful, the script will automatically modify the game, uninstall the original and install the new modded apk
~/MCBE_Patcher.sh adb
On Android
-
Make a backup of your worlds
-
Using a file manager, copy the APKs from the split APK downloaded from the Google Play Store to a folder, compress the files into a zip (some file managers, like X-Plore for example, do compression automatically), and rename the zip file to Minecraft.zip
-
Install the Termux app
-
Open termux and run the following commands one at a time to install the dependencies
termux-setup-storage
apt update
apt upgrade
apt install -y apksigner openjdk-17 sed zsh wget patchelf
- Now locate the folder with the zip file with the apks and go to it with the cd command
example:
cd ~/storage/shared/my_folder_with_the_zip_file/
you can use the ls command to list the folders and files in the path you are
ls
- download the script and give it execution permissions with the following commands
wget -O ~/MCBE_Patcher.sh https://raw.githubusercontent.com/Coffee-0xFF/MCBE_Android_Patcher/main/Minecraft_Patcher.sh
chmod +x ~/MCBE_Patcher.sh
- Run the script, if it is already in the folder with the zip file with the apks.
~/MCBE_Patcher.sh ./Minecraft.zip
- If everything went well, you now have a modified apk with the path ~/minecraft_modded.apk, so move it to your phone's internal memory with the following command
mv ~/tmp/output/minecraft_modded.apk ~/storage/shared/minecraft_modded.apk
- Now uninstall the original game and install the minecraft modded manually
You can disable one of the two patches, to do this, change the value 1 of the variables nether_roof_limit_to_256 or materialbinloader to 0. The materialbinloader patch allows the installation of shaders.
This script only works with Android versions downloaded from the Google Play Store
This script only works for the game compiled for arm or aarch64 (arm64)
DO NOT share the apk generated by you, this violates the EULA
-
MaterialBinLoader: source code
-
APK_Editor: source code
-
Uber Apk Signer source code