MaterialBinLoader
让渲染龙从资源包读取.material.bin文件。Make the RenderDragon read the .material.bin file from the resource packs.
Install / Use
/learn @ddf8196/MaterialBinLoaderREADME
MaterialBinLoader
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 15 supports 1.21.20, 1.21.30, 1.21.40, 1.21.50 release and 1.21.60.21 preview. --> <!--maybe check latest preview support?-->How to use
- 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.
How to load the shader
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
How to compile
Windows
- Install Android NDK and add
NDKfolder\toolchains\llvm\prebuilt\windows-x86_64\bin to your PC's environment variables. - Run
.\build.batfile and wait it build. - Find the compiled .so file in the
buildfolder.
Linux
- Install Android NDK and set
NDKfolderas ANDROID_NDK_HOME - Run
./build.shfile and wait it build. - Find the compiled .so file in the
buildfolder.
Note
This Program is not affiliated with Mojang Studios.
