SkillAgentSearch skills...

MaterialBinLoader

让渲染龙从资源包读取.material.bin文件。Make the RenderDragon read the .material.bin file from the resource packs.

Install / Use

/learn @ddf8196/MaterialBinLoader
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

  1. Extract libminecraftpe.so from the Minecraft APK.
  2. Download or manually compile the .so files from the releases.
  3. Download patchelf.
  4. For 32 bit (armeabi-v7a) Minecraft run the following command:
patchelf --add-needed libmaterialbinloader-arm.so libminecraftpe.so
  1. For 64 bit (arm-v8a) Minecraft run the following command:
patchelf --add-needed libmaterialbinloader-arm64.so libminecraftpe.so
  1. Put the modified libminecraftpe.so and libmaterialbinloader.so file back into the apk
  2. 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

  1. Install Android NDK and add NDKfolder\toolchains\llvm\prebuilt\windows-x86_64\bin to your PC's environment variables.
  2. Run .\build.bat file and wait it build.
  3. Find the compiled .so file in the build folder.

Linux

  1. Install Android NDK and set NDKfolder as ANDROID_NDK_HOME
  2. Run ./build.sh file and wait it build.
  3. Find the compiled .so file in the build folder.

Note

This Program is not affiliated with Mojang Studios.

View on GitHub
GitHub Stars122
CategoryDevelopment
Updated6d ago
Forks16

Languages

C

Security Score

95/100

Audited on Mar 26, 2026

No findings