promotional bannermobile promotional banner

BlockbenchModelLib

A modular Java library for loading, animating, and rendering Blockbench models in Minecraft NeoForge mods. Includes model parsing, geometry generation, texture management, hierarchical animations, and rendering utilities.

BlockbenchModelLib

Bring your Blockbench creations into Minecraft!

BlockbenchModelLib is an open-source, modular Java library designed to make loading, managing, animating, and rendering Blockbench models in Minecraft mods easier.

The library provides a reusable pipeline for loading Blockbench Generic Model (.bbmodel) files, generating Minecraft-compatible geometry, managing textures, evaluating animations, and rendering models.

Instead of implementing your own model loader, geometry generator, texture management, or animation system, you can use BlockbenchModelLib to handle these tasks.

Features

  • Model Loading: Load and parse Blockbench Generic Model (.bbmodel) files.
  • Geometry Generation: Convert Blockbench model elements into Minecraft-compatible geometry.
  • Texture Management: Resolve and register model textures, including embedded texture data.
  • UV Mapping: Preserve face-specific UV coordinates and rotations.
  • Model Hierarchy: Preserve model groups, pivots, and nested structures.
  • Model Bounds: Calculate geometry bounds for accurate positioning and scaling.
  • Animation System: Load and play animations created in Blockbench.
  • Animation Playback: Play, pause, resume, stop, seek, and control animation speed and looping.
  • Hierarchical Animations: Apply animated position, rotation, and scale transformations throughout nested model hierarchies.
  • Rendering: Render both static and animated models using Minecraft's rendering infrastructure.
  • Resource Integration: Load models and textures through Minecraft's resource manager.

Animation Support

BlockbenchModelLib includes an animation system that allows mod developers to use animations created directly in Blockbench.

Animations support position, rotation, and scale transformations, with playback controls for managing animation states, playback speed, and looping.

This makes it possible to create animated machines, mechanical components, custom entities, decorative objects, and other animated models without implementing a separate animation system for each mod.

Modular Architecture

The library is divided into three modules:

  • Core: Minecraft-independent model data structures, parsing, and animation evaluation.
  • Common: Geometry generation, model hierarchy, texture management, animation playback, and rendering.
  • NeoForge: Minecraft and NeoForge-specific integration.

This separation makes the library easier to maintain and allows model processing functionality to remain independent of Minecraft-specific code where possible.

Compatibility

  • Minecraft: 1.21.1
  • Mod Loader: NeoForge 21.1.x
  • Java: 21
  • Model Format: Blockbench Generic Model (.bbmodel)

Documentation and Examples

For installation instructions, dependency configuration, API documentation, and practical integration examples, visit the GitHub repository.

GitHub: https://github.com/HandsOnDigits/BlockbenchModelLib

Important Notes

  • BlockbenchModelLib is an independent, community-developed project. It is not officially made by, affiliated with, endorsed by, or maintained by the Blockbench team.
  • For the best positioning results, apply the appropriate model rotation before rendering. Correct rotation is important for aligning models with Minecraft's coordinate system and rendering orientation.

License

BlockbenchModelLib is open source. See the GitHub repository for licensing information.


Developed by HandsOnDigits

BlockbenchModelLib Team

profile avatar
  • 9
    Projects
  • 3.1K
    Downloads

More from HandsOnDigitsView all