Script that allows you to extract and scale Minecraft's item and block textures.
Project description
texture_miner
textureminer
is a Python script that allows you to extract and scale Minecraft's item and block textures. It automates the process of downloading the necessary files and performing the required operations.
Table of Contents
Getting Started
Prerequisites
Install/update the pip package manager.
python3 -m pip install --upgrade pip
It's also recommended to use a virtual environment.
- Linux / MacOS
python3 -m venv <venv-name> source venv/bin/activate
- Windows
python3 -m venv <venv-name> <venv-name>/Scripts/activate
Installation
Use pip to install texture_miner
.
python3 -m pip install --upgrade textureminer
Install the required dependencies as listed on requirements.txt.
python3 -m pip install -r requirements.txt
Usage
To download and scale textures for the most recent stable Java release do the following.
python3 -m textureminer
You can also specify the version and edition.
python3 -m textureminer <version> <edition>
# for example
python3 -m textureminer 1.20 java
At a high level, the script follows the following steps.
- Download the client
.jar
file for the specified version from Mojang's servers. - Extract the textures from the
.jar
file. - Filter the extracted files, only leaving item and block textures to the specified output directory (default:
~/Downloads/mc-textures
). - Scale the textures by a specified factor (default: 100).
- Merge the block and item textures into a single directory by default.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for textureminer-1.1.2a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8f66e196dce2320437060f6ebebeff6592f29f709647df78818f455ba9aa8c9 |
|
MD5 | 7120a9c3010f75245114f04139a1e271 |
|
BLAKE2b-256 | 8da04d1ae6ae66775d505e3066d4f53a3204eb096f70ac01faa303926b7c6916 |