Skip to content

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

License

Notifications You must be signed in to change notification settings

ddf8196/MaterialBinLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 10 supports 1.21.1, 1.21.2 release and 1.21.10.24 preview.

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages