Skip to content

Fix modern Minecraft exports and add Settings presets - #316

Closed
Flok-mk wants to merge 8 commits into
jmc2obj:masterfrom
Flok-mk:mmpilot/modern-export-and-presets
Closed

Flok-mk wants to merge 8 commits into
jmc2obj:masterfrom
Flok-mk:mmpilot/modern-export-and-presets

Conversation

@Flok-mk

@Flok-mk Flok-mk commented Nov 4, 2026 •

Copy link
Copy Markdown

AI disclosure: These changes were implemented with the assistance of OpenAI Codex.

Changes

  • Extract bundled configuration beside the JAR, including when the working directory contains an unrelated file called conf.
  • Preserve support for older Minecraft assets and resolve renamed chain, banner and end portal resources. Keep the current master's 26.x texture-object, model-rotation and export-edge handling.
  • Honor face tint indices, inherited texture aliases, weighted plant variants, positional offsets, and biome grass, foliage and dry-foliage colors. Bake coplanar overlays into the exported textures so grass-block sides retain their dirt and overlay layers.
  • Export full spritesheets and animation metadata. Transparent materials use the same PNG for diffuse color and opacity. The optional Blender add-on connects both inputs to one image node so a single UV animation drives them together.
  • Add named Settings presets with ordered resource packs, controls, language, preview threads and the default resource-pack toggle. Include English and Russian UI strings.

Validation

  • Built with mvn clean compile assembly:single, targeting Java 8.
  • Checked resource compatibility with Minecraft 1.20.4, 1.21.11, 26.2 and 26.3-snapshot-4. Verified 64 paired tall plants, grass and fern variants, grass-side overlays, and the baked plains bush and leaf-litter textures.
  • Regenerated the Minecraft 1.21.11 debug save and verified all 29,671 block states across 484 chunks. The animation-focused export produced 53 spritesheets and kept the same 12,942 OBJ faces and 86 MTL materials as the single-frame reference.
Texture Before With this PR
Still water 16 × 16 16 × 512
Still lava 16 × 16 16 × 320
Nether portal 16 × 16 16 × 512
Prismarine 16 × 16 16 × 64
  • The legacy base,alpha request produced zero separate alpha masks. In Blender 5.2.2, the add-on consolidated 32 imported transparent materials, including on a fresh import. The spritesheets are ready for a separate UV animation workflow.
  • Verified scaled atlas metadata and preset save, selection, overwrite and reopen on Java 8 and 22. See tests/README.md for the regression drivers.

@Flok-mk Flok-mk closed this Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant