MCP ExplorerExplorer

Mcpelauncher Shadersmod Helper

@faizul726on 10 months ago
1 MIT
FreeCommunity
AI Systems
A helper script for mcpelauncher shadermod that copies materials based on top global pack

Overview

What is Mcpelauncher Shadersmod Helper

mcpelauncher-shadersmod-helper is a helper script designed for the mcpelauncher shadermod. It facilitates the copying of material files based on the top global pack into the shaders folder.

Use cases

Use cases include automating the management of shader materials for Minecraft, ensuring that the latest materials are always linked, and simplifying the process of switching between different resource packs.

How to use

To use mcpelauncher-shadersmod-helper, first ensure that you have jq and mcpelauncher-shadersmod installed. Modify the script to set the correct paths for your mcpelauncher installation, then download and execute the script using the provided commands.

Key features

Key features include symlinking ‘*.material.bin’ files from the top activated global pack to the shaders folder, support for subpacks and development packs, and clearing the shaders folder if the top pack is not a shader.

Where to use

mcpelauncher-shadersmod-helper is primarily used in the context of Minecraft Pocket Edition (MCP) to enhance the visual experience by managing shader resources efficiently.

Content

mcpelauncher-shadersmod-helper

A helper script for mcpelauncher shadermod that symlinks materials based on top global pack for mcpelauncher-shadersmod shaders folder

mcpelauncher-shadersmod-helper

Requirements

Limitations

  • Only tested on Ubuntu 22.04 (apt installation)
  • JQ can’t process JSONC (json with comments)
  • Can’t find marketplace packs

Features

  • Symlinks *.material.bin files from top most activated global pack to shaders folder
  • Subpacks are also supported
  • Development packs are supported
  • Empties shaders folder when top pack is not a shader

Planned features

  • [ ] Add flag/argument for launching mcpelauncher automatically
  • [ ] Workaround for JQ jsonc issue
  • [ ] Use material-updater to update shaders
  • [ ] Make an infinite loop that will keep scanning for resource pack changes and apply changes

Usage

[!IMPORTANT]
Make sure to change $mcpelauncher_root (line 4) and $mcpelauncher_data (line 8) according to your installations before using.

By default, those are set for apt installation in $HOME/.local/share/mcpelauncher

curl -L -O https://raw.githubusercontent.com/faizul726/mcpelauncher-shadersmod-helper/main/shadersmod-helper.sh
chmod +x shadersmod-helper.sh
./shadersmod-helper.sh

Or one liner if you prefer…

sudo apt install jq -y && curl -L -O https://raw.githubusercontent.com/faizul726/mcpelauncher-shadersmod-helper/main/shadersmod-helper.sh && chmod +x shadersmod-helper.sh && ./shadersmod-helper.sh

[!TIP]
You can modify the script to automatically launch the game after symlinking is done.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers