Skip to content

Customization

devendrn edited this page Aug 11, 2024 · 3 revisions

Android

Note

Requires around 400Mb data to download necessary apps and files.

Setup

Install Termux and NMM File Manager.

Open Termux. Then copy-paste and run the following commands:

Upgrade Termux packages:

pkg upgrade

Install dependencies:

pkg install python git

Now clone the repository:

git clone https://github.com/devendrn/newb-x-mcbe

Go inside directory, install required packages and run setup:

cd newb-x-mcbe
pip install -r requirements.txt
./build.sh setup

Accessing Termux storage

  1. Launch NMM File Manager and open sidebar.
  2. Click + icon and choose External Storage.
  3. Select Termux app in sidebar and accept permission.

You can now see a new storage entry in sidebar from which you can access Termux files.

Building shader materials

Tip

Double tap to autcomplete commands in Termux. Install bash-completion for better completion.

In Termux, go inside newb-x-mcbe folder:

cd newb-x-mcbe

Now to build all materials (takes more time), run:

./build.sh mats

To build only some materials, run:

./build.sh mats -m RenderChunk Sky

The output will be in build/android folder.

Building shader pack

To build final pack with all shader materials, run:

./build.sh pack

The output will be in build/ as mcpack. Pack configuration is in pack_config.toml

Editing config

Open NMM, go inside Termux home and navigate to newb-x-mcbe/src/newb. Open config.h and make your changes. After making a change, build the shader and test it to make sure it works.

Clone this wiki locally