A beet plugin that render all models in the beet project.
Usage
Renders project
Without any installlation, all vanilla models are rendered in this repository
As a beet service
Example plugin to render an apple:
from beet import Context
from model_resolver import Render, Item
def beet_default(ctx: Context):
render = Render(ctx)
item = Item(
id="minecraft:apple",
)
render.add_item_task(item, path_ctx="my_namespace:my_apple")
render.run()
Additionally, you can customize the config :
meta:
model_resolver:
# load vanilla item models
minecraft_version: "1.21.4-pre1"
use_cache: true
special_rendering: true
Installation
Windows
Install https://visualstudio.microsoft.com/fr/visual-cpp-build-tools/ and add C++ build tools in the installation.
Ubuntu
Generally, you don't need to install anything, but if you have an error, you can try to install the following packages:
sudo apt-get -y install \
freeglut3-dev \
libgl1-mesa-dev \
libxcursor-dev \
libpulse-dev \
libxinerama-dev \
libxrandr-dev \
libxv-dev \
mesa-utils \
libgl1-mesa-glx \
mesa-common-dev \
libglapi-mesa \
libgbm1 \
libgl1-mesa-dri \
libsdl1.2-dev \
libfreetype6-dev \
xvfb \
x11-utils
This is particularly useful in CI, see the github action for an example.
Common installation
Install the plugin by running:
pip install model-resolver
Pypi: https://pypi.org/project/model-resolver/
Credits
- RedCoal27 for this big item model : https://github.com/RedCoal27/Custom-Item
Metadata
Release files for model-resolver 1.15.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| model_resolver-1.15.2.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| model_resolver-1.15.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.3 MB
Release files / model_resolver-1.15.2.tar.gz
| Download URL | model_resolver-1.15.2.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d6743b9b114ca2c01de9c87198deb9a64af5af6f36297b42d1cbe3be0722628
|
|
BLAKE2b-256 checksum How to use checksums |
bf57af01f478c624ccf5d8dedb9059119e35ac4c2011df5fa44c38afc8931a78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / model_resolver-1.15.2-py3-none-any.whl
| Download URL | model_resolver-1.15.2-py3-none-any.whl |
|---|---|
| Size | 60.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7adf17913d78671639436662563e6dd95ed2a098b57792ee6fb9be1855dda917
|
|
BLAKE2b-256 checksum How to use checksums |
d6f2e3191c5ab37f70f21909ca79ed39ac5c5241ca354d17e8e29f5159e06571
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|