A Frida module let Minecraft read the .material.bin file from the resource pack, just like how we load third-party shaders before.
Note
Release 10 supports 1.21.1, 1.21.2, 1.21.20 release and 1.21.10.24 preview.
- Extract libminecraftpe.so from the Minecraft APK.
- Download or manually compile the .so files from the releases.
- Download patchelf.
- For 32 bit (armeabi-v7a) Minecraft run the following command:
patchelf --add-needed libmaterialbinloader-arm.so libminecraftpe.so
- For 64 bit (arm-v8a) Minecraft run the following command:
patchelf --add-needed libmaterialbinloader-arm64.so libminecraftpe.so
- Put the modified libminecraftpe.so and libmaterialbinloader.so file back into the apk
- Sign and install.
Put the .material.bin file into the renderer/materials/ directory of the resource pack (the same directory structure as in assets)
put your shader name here
|-renderer
|-materials
|-Put the shader .material.bin files at here
|-manifest.json
|-textures(if you want add)
|-pack_icon.png
- Install Android NDK and add
NDKfolder
\toolchains\llvm\prebuilt\windows-x86_64\bin to your PC's environment variables. - Run
.\build.bat
file and wait it build. - Find the compiled .so file in the
build
folder.
- Install Android NDK and set
NDKfolder
as ANDROID_NDK_HOME - Run
./build.sh
file and wait it build. - Find the compiled .so file in the
build
folder.
This Program is not affiliated with Mojang Studios.