Back to mods
Pexlib project artwork

CurseForge · Hytale mod

Pexlib

Library for rendering UV 2D maps to pngs

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Pexlib release should I use?

Updated 5 months ago
Latest stable file Pexlib-1.0.0.jar
Game version Not listed
Mod system Built-in Hytale mod system

Pexlib-1.0.0.jar targets Hytale. Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer. No required dependencies listed for this file.

Where it goes

Where should Pexlib be installed in Hytale?

Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

Separate client mod Not supported
World host / dedicated server Required
Mod system for this release Built-in Hytale mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

Put Hytale mods on the world host or dedicated server. Singleplayer runs a local server too; Hytale does not use separate client mods.

What else does Pexlib-1.0.0.jar need?

Pexlib-1.0.0.jar. Change the file and its required mods may change too.

No required dependencies listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional project dependencies. Check the creator notes before changing an existing world.

Before you install it

Add Pexlib without breaking your instance.

Built for Pexlib-1.0.0.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Pexlib-1.0.0.jar. It targets Hytale; another release may target a different game build or dependency set.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Enable it on the world host

    Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Pexlib-1.0.0.jar. It opens that exact file at the source.

About this project

What does Pexlib add?

Pexlib

A server-side rendering library for Hytale that generates isometric PNG previews from .blockymodel files.

What it does

Pexlib reads creature models and textures from Hytale's Assets.zip, renders them as isometric 2D images, and exposes a simple API for other mods to use. It handles the full pipeline: model parsing, texture extraction, face UV mapping (including rotation and mirroring), depth sorting, and isometric projection.

Features

  • Parses .blockymodel JSON files with full node hierarchy support
  • Extracts per-face textures with UV offset, rotation (0/90/180/270), and mirroring
  • Handles negative stretch values (geometry mirroring with correct face swapping)
  • Isometric projection with front-facing camera angle
  • Back-to-front depth sorting for correct occlusion
  • Render caching to avoid redundant work
  • Batch rendering for all creatures in Assets.zip
  • Supports custom/modded .blockymodel files via InputStream API

API Usage

// Render a creature by name
BufferedImage img = PexlibApi.renderCreature("Bear_Grizzly");

// With custom options (size, scale)
RenderOptions opts = RenderOptions.builder().width(256).height(256).scale(4.0).build();
BufferedImage img = PexlibApi.renderCreature("Wolf", opts);

// Cached rendering (returns cached result if available)
BufferedImage img = PexlibApi.getCachedRender("Rat", RenderOptions.defaults());

// List all available creatures
List<String> creatures = PexlibApi.listCreatures();

// Render a custom model from any mod
BlockyModel model = PexlibApi.parseModel(inputStream);
BufferedImage img = PexlibApi.renderModel(model, texturePng, opts);

Asset Structure

Pexlib reads from Hytale's asset system:

  • Models: Common/NPC/{Category}/{CreatureName}/Models/Model.blockymodel
  • Textures: Common/NPC/{Category}/{CreatureName}/Models/Texture.png
  • Model configs: Server/Models/{Category}/{Name}.json

Build

./gradlew build

The shadow JAR is automatically deployed to %APPDATA%/Hytale/UserData/Mods/.

Package

dev.hytalemod.pexlib

Author

uwudwagon

Project description from CurseForge.

Recent files

Pexlib releases and Hytale builds

1 of 1 releases match

Looking for an older file? The official CurseForge project page is in Resources.