StargazerLib

Library for rendering entities that support GLB models and animations, inspired by GeckoLib's interface.
2026-07-25_23.21.02.png

2026-07-25_23.21.02.png

Description

It is a HUGE WIP, but i'll get there eventually. The docs and wiki are yet to be published too.

Description

StargazerLib is a library that renders and animates glTF / GLB models directly on Minecraft entities, with their skeleton, animations and textures.

In short: it's like GeckoLib, but for real meshes instead of cubes.

It was born out of a simple frustration: GeckoLib only renders cubes. When your artists work in Blender and hand you low-poly models, your options are bad ones.

  • Why voxelize a clean low-poly model, when that makes it both uglier and heavier than the original ?
  • Why rebuild an entire model by hand in Blockbench, when it already exists as a .glb ?
  • Why lose your skeleton, your animations and your textures on the way in ?

StargazerLib takes the other route: it loads the .glb as-is and renders the actual mesh through Minecraft's own pipeline, so lighting and shaders keep working. Skinning, animation clips (with cross-fading between them), textures and auto-scaling are all handled for you.

It is meant to be used by other mods much like GeckoLib, but you keep the Blender workflow your artists already use.

For developers

Drop your model in assets/<modid>/models/entity/<name>.glb, then have your entity declare it:

public class Dragon extends Entity implements GltfAnimatable {

    public ResourceLocation getGltfModel() {
        return new ResourceLocation("mymod", "dragon");
    }

    public float getGltfSize() {
        return 2.0f; // ~2 blocks on the largest dimension
    }

    public void registerControllers(ControllerRegistrar registrar) {
        registrar.add(new AnimationController<>("main",
                state -> state.isMoving() ? "fly" : "idle"));
    }
}

Then register the provided generic renderer:

event.registerEntityRenderer(DRAGON_TYPE, GltfEntityRenderer::new);

That's it, the Blender model shows up on your entity, animated and textured. Two demo entities (stargazerlib:gltf_test and stargazerlib:gltf_dragon) are included so you can see it in-game.

The StargazerLib Team

profile avatar
Owner
  • 7
    Projects
  • 356
    Downloads

A Minecraft Java developper with a catastrophic ton a different projects

More from Nqtsu91View all

  • SALM project image

    SALM

    Sorry, Another Library Mod

    • 14
    • July 30, 2026
  • Creaking Trial Backport project image

    Creaking Trial Backport

    Backports updates from 26.2 to 1.20 to earlier version, starting at 1.18.2. Features creatures like the Breeze, Creaking, Nautilus, items like Mace and Spears, and structures like the Trial Chambers.

    • 18
    • July 30, 2026
  • Greed project image

    Greed

    Rebalance Enchanting, Potion brewing and Farming, by adding 7 new curses, 4 new Enchantments, reworking Cauldrons and Villager Trades ! Comes with configuration for vanilla enchantment max levels and rarities !

    • 89
    • July 30, 2026
  • Elixirs (Cristallite) project image

    Elixirs (Cristallite)

    Adds 26 new Potion effects (6 buffs, 20 debuffs), and brings brewing recipes for uncraftable vanilla potions.

    • 115
    • July 30, 2026
  • SALM project image

    SALM

    Sorry, Another Library Mod

    • 14
    • July 30, 2026
  • Creaking Trial Backport project image

    Creaking Trial Backport

    Backports updates from 26.2 to 1.20 to earlier version, starting at 1.18.2. Features creatures like the Breeze, Creaking, Nautilus, items like Mace and Spears, and structures like the Trial Chambers.

    • 18
    • July 30, 2026
  • Greed project image

    Greed

    Rebalance Enchanting, Potion brewing and Farming, by adding 7 new curses, 4 new Enchantments, reworking Cauldrons and Villager Trades ! Comes with configuration for vanilla enchantment max levels and rarities !

    • 89
    • July 30, 2026
  • Elixirs (Cristallite) project image

    Elixirs (Cristallite)

    Adds 26 new Potion effects (6 buffs, 20 debuffs), and brings brewing recipes for uncraftable vanilla potions.

    • 115
    • July 30, 2026