Language

blockbench import library

blockbench import library

Modrinth

This library simplifies model import, generates item models & textures, and leverages polymer for resource pack creation. Supports animations, Molang expressions, and various Blockbench features.

14.2k downloads 49 followers updated 2mo ago
latest v2.0.5+26.1 Modrinth
Fabric 1.20.1 – 26.2 LibraryMagicMobs

This mod will no longer be updated on modrinth!

See https://www.curseforge.com/minecraft/mc-mods/blockbench-import-library for the latest version!

blockbench import library

This library streamlines the process of integrating Blockbench models (generic and from the AnimatedJava Blockbench Plugin) into your Fabric mods.

It automates item model and texture creation and leverages resource packs in combination with item display entities for client-side integration, eliminating the need for players to install additional mods.

The library offers comprehensive support for animations, including Molang expressions for keyframes, along with a variety of Blockbench features and additionally support for one of its plugins, AnimatedJava.

Features:

  • Animation Support: Import models with pre-rendered animations and utilize Molang expressions (currently only q.anim_time and q.life_time) for dynamic animation control.
  • CustomModelData & Item Displays: Employs CustomModelData and Item Displays to represent the model with minimal server impact through "virtual" item display entities. - Item Display transformations are asynchronously updated for smooth performance.
  • Large Bone Support: Breaks free from vanilla's limitations, allowing for bones exceeding the standard 3x3x3 size restriction.
  • Blockbench Feature Support: Offers compatibility with various Blockbench features, including effect keyframes (commands & sound effects), animation loop modes, interpolations, and more.
  • AnimatedJava Extensions: Provides additional functionality for AnimatedJava, including variant support, bone blacklisting, conditional effects, and locator support
  • Vanilla Mob Feature Integration: Out-of-the-box support for many vanilla mob features like accurate hitboxes (visible in F3+B), ridability, name tags, invisibility, glowing, fire animations, particle effects, leashes, death animations, smooth collisions, dynamic hitboxes/scale, and entity-specific ticking for optimized performance.

Checkout the Github README and the documentation for more infos!

Setup

repositories {
    maven { url "https://maven.tomalbrc.de" }
}

dependencies {
    modImplementation include("de.tomalbrc:blockbench-import-library:[TAG]")
}

Usage

Documentation is available here

Commands

  • /bil model create id<.ajmodel>|filepath <model>

    Spawns a model ingame based on mob identifier or a file path (from server root folder) to the model json file. These models are not saved and are mostly intended for testing. If you want load an .ajmodel file, make sure to append .ajmodel to either the id or file path.

  • /bil model <targets> animation|variant|scale <args>

    Modifies the model of any entity selected in that has a custom model. Allows you to temporarily change the scale of the model, update the variant and play / pause / stop animations. This is also mostly intended for testing and playing with the models.

Roadmap

1.x

  • Bone modifier for more dynamic animations
  • Handle pre/post values for keyframes
  • mcmeta generation for animated textures
  • Bezier support for keyframes

2.x

  • Dynamic Animations for dynamic animation speed, right now all animations are pre-rendered during import
  • Per-player animations; Show animations to only a single player or a group of players. Right now all animations are played globally, visible for all players
  • Multiple rider (for entities), currently only 1 is supported
  • Multiple hitboxes (requires the same changes as multiple rider support)
  • Particle effects (?)

Test Sever

Join the test server with a 1.20.5-1.21+ client on

mc.tomalbrc.de:25565

to test this mod and my other mods + upcoming, unreleased mods and features!

Versions

Release
2.0.5+26.1
fabric · 26.1, 26.1.1, 26.1.2 · 2mo ago
Update to 26.1
384
Release
1.8.0+1.21.11
fabric · 1.21.11 · 6mo ago
- Minor fixes 1.21.11 support
1.1k
Release
1.2.7+1.21
fabric · 1.21, 1.21.1 · 6mo ago
- Minor fixes
647
Release
1.7.2+1.21.9
fabric · 1.21.9, 1.21.10 · 6mo ago
- Minor fixes
239
Release
1.7.0+1.21.9
fabric · 1.21.9, 1.21.10 · 8mo ago
Blockbench 5 format and Animated-Java .ajlueprint support
267
Release
1.7.0+1.21.6
fabric · 1.21.6, 1.21.7, 1.21.8 · 8mo ago
Blockbench 5 format and Animated-Java .ajlueprint support
332
Release
1.2.5+1.21
fabric · 1.21, 1.21.1 · 8mo ago
Blockbench 5 format and Animated-Java .ajlueprint support
172
Release
1.6.0+1.21.9
fabric · 1.21.9, 1.21.10 · 8mo ago
version bump
76
Release
1.5.6+1.21.6
fabric · 1.21.6, 1.21.7, 1.21.8 · 8mo ago
Minor fixes
105
Release
1.5.0+1.21.6
fabric · 1.21.6, 1.21.7, 1.21.8 · 11mo ago
- Adds support for per-player animations - Minor bug fixes for bbmodel deserialization
341
Release
1.4.2+1.21.6
fabric · 1.21.6 · 12mo ago
- Fix incorrect UV for some models
87
Release
1.4.1+1.21.6
fabric · 1.21.6 · 12mo ago
1.21.6 update - Fixes small living entities using `LivingEntityHolder` not being able to show their nametags
43

Comments 0

No comments yet. Be the first to share your thoughts.

Download blockbench import library

R 2.0.5+26.1 26.1, 26.1.1, 26.1.2 fabric 343 KB R 1.8.0+1.21.11 1.21.11 fabric 346 KB R 1.2.7+1.21 1.21, 1.21.1 fabric 326 KB R 1.7.2+1.21.9 1.21.9, 1.21.10 fabric 380 KB R 1.7.0+1.21.9 1.21.9, 1.21.10 fabric 382 KB R 1.7.0+1.21.6 1.21.6, 1.21.7, 1.21.8 fabric 381 KB R 1.2.5+1.21 1.21, 1.21.1 fabric 325 KB R 1.6.0+1.21.9 1.21.9, 1.21.10 fabric 376 KB R 1.5.6+1.21.6 1.21.6, 1.21.7, 1.21.8 fabric 375 KB R 1.5.0+1.21.6 1.21.6, 1.21.7, 1.21.8 fabric 375 KB R 1.4.2+1.21.6 1.21.6 fabric 324 KB R 1.4.1+1.21.6 1.21.6 fabric 324 KB R 1.3.0+1.21.5 1.21.5 fabric 335 KB R 1.2.4+1.21.5-rc1 1.21.5 fabric 313 KB B 1.2.2+1.21.5-rc1 1.21.5 fabric 312 KB R 1.2.2+1.21.4 1.21.4 fabric 311 KB R 1.2.2+1.21 1.21, 1.21.1 fabric 310 KB R 1.2.0+1.21.4 1.21.4 fabric 309 KB R 1.2.0+1.21 1.21, 1.21.1 fabric 308 KB R 1.1.20+1.21.4 1.21.4 fabric 308 KB R 1.1.20+1.21.2 1.21.2, 1.21.3 fabric 308 KB R 1.1.20+1.21 1.21, 1.21.1 fabric 307 KB R 1.1.19+1.21.4 1.21.4 fabric 308 KB R 1.1.19+1.21.2 1.21.2, 1.21.3 fabric 307 KB R 1.1.19+1.21 1.21, 1.21.1 fabric 307 KB R 1.1.18+1.21.4 1.21.4 fabric 308 KB R 1.1.18+1.21.2 1.21.2, 1.21.3 fabric 307 KB R 1.1.18+1.21 1.21, 1.21.1 fabric 307 KB R 1.1.17+1.21.4 1.21.4 fabric 308 KB R 1.1.17+1.21.2 1.21.2, 1.21.3 fabric 307 KB R 1.1.17+1.21 1.21.1 fabric 307 KB R 1.1.15+1.21.4 1.21.4 fabric 308 KB R 1.1.14+1.21.4 1.21.4 fabric 308 KB R 1.1.14+1.21.2 1.21.2, 1.21.3 fabric 307 KB R 1.1.14+1.21 1.21, 1.21.1 fabric 307 KB R 1.1.13+1.21.2 1.21.2, 1.21.3 fabric 307 KB R 1.1.13+1.21 1.21, 1.21.1 fabric 307 KB R 1.1.12+1.21.2 1.21.2-rc1, 1.21.2-rc2, 1.21.2 fabric 307 KB B 1.1.12+1.21.2-rc1 1.21.2-rc1, 1.21.2-rc2, 1.21.2 fabric 306 KB R 1.1.12+1.21 1.21, 1.21.1 fabric 307 KB R 1.1.12+1.20.6 1.20.6 fabric 318 KB R 1.1.12+1.20.4 1.20.4 fabric 318 KB R 1.1.12+1.20.1 1.20.1 fabric 319 KB R 1.1.10+1.21 1.21, 1.21.1 fabric 306 KB R 1.1.9+1.21 1.21 fabric 306 KB R 1.1.9+1.20.6 1.20.6 fabric 317 KB R 1.1.9+1.20.4 1.20.4 fabric 317 KB R 1.1.9+1.20.1 1.20.1 fabric 318 KB R 1.1.8+1.21 1.21 fabric 306 KB R 1.1.8+1.20.6 1.20.6 fabric 317 KB

Files are served directly from the original source. Modgrid does not host or modify them.