Giter Site home page Giter Site logo

mcbe_shader_redirector's Introduction

MCBER

This crate is made to redirect MCBE shaders to ones from resource packs externally so that it can work with any mcbe version and even multiple platforms. for now it only supports android

Note

This repo is used by draco-injector.

The redirector is still unstable and might have some bugs or crashes, please report those in this repo.

Confirmed working with

  • 1.20.73
  • 1.20.81 (shaders are broken but it does load successfully)

How to build(pc):

  • Install rust using rustup if you dont have it
  • Download the ndk
  • Add android target using "rustup target add"
  • Setup rust to use the ndk depending on your platform
  • cd to this repo and do "cargo build --release --target your-android-target"
  • Search for your .so in target folder
  • Now you have it

How to build(android)

  • Install termux if you dont have it
  • Update packages using "pkg upg"
  • Install essential stuff for building using "pkg install build-essential"
  • Install rust using "pkg install rust"
  • git clone this repo
  • do "cargo build --release" on where the repo is
  • Now you should have your lib in target folder in repo dir

Tutorial on how to use:

step 1: Go to releases and open the latest one

step 2: Download the .so for your arch and rename it to "libmcbe_r.so"

step 2: Place it in the mc APK at this path: "libs/(arch)/"

step 3: Make the library start with mc by any of these methods:

Method 1 (Dex):

  • Open/Extract classes.dex in minecraft APK
  • Search the com.mojang.minecraftpe.MainActivity class
  • Inside of it, search the function OnCreate and paste this inside of it:
const-string v0, "mcbe_r"
invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

image
image
Done using MT Manager

Method 2 (Patchelf):

  • Install patchelf
  • Extract the libminecraftpe.so library in "libs/(arch)"
  • Run patchelf on it to make libmcbe_r a needed library: (replace path/to/ with the path to the library)
patchelf path/to/libminecraftpe.so --add-needed libmcbe_r.so

step 4: now if you did everything correctly you should have a patched mcbe that redirects shaders.

mcbe_shader_redirector's People

Contributors

mcbegamerxx954 avatar includedberry11 avatar atashi764 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.