Back to projects
ToolsComplete

Minecraft Lohse Skin Generator

A Python PIL-based script that programmatically generates Minecraft character skins featuring Lohse from Divinity: Original Sin 2.

PythonPIL

Overview

This project uses a Python script (PIL library) to programmatically generate Minecraft Java Edition 64x64 skins. Based on the companion character Lohse from Divinity: Original Sin 2, it recreates character features within Minecraft's pixel-art aesthetic constraints.

Technical Implementation

Skin generation is entirely code-defined pixel positioning without manual image editing:

  • RGB color blending functions simulate shading gradients and material transitions
  • Separate implementations for Steve (4px arm) and Alex (3px arm) models
  • Hat layer supports both fully transparent (flat) and locally thickened (volumetric hair) modes

Output files include Lohse.png, Lohse_steve.png, Lohse_alex.png, and corresponding volumetric hair versions.

Generation Pipeline

Define palette → Draw head/torso base → Draw arms (Steve/Alex) →
Draw legs → Overlay decorations (cloak, magic effects) → Output PNG

Limitation

Current implementation is pure pixel generation without a graphical editor or in-game preview. Skins must be manually imported into Minecraft.