GeckoMesh
一款面向 GeckoLib 的高级轻量级 PolyMesh 渲染库。
为你的实体带来 Bedrock 风格的多边形网格几何体 — 零运行时开销。
什么是 GeckoMesh?
GeckoMesh 是一款面向开发者的兼容库,它为基于 GeckoLib 的模组解锁了Bedrock 风格的 PolyMesh 几何体。它直接挂钩到模型烘焙管线,并将烘焙好的 PolyMesh 面片直接追加到 GeckoLib 原生的 GeoBone 结构中 — 因此你的自定义低多边形网格可以直接工作,无需进行任何重大修改。
无论你是正在构建新的实体模组,还是扩展现有模组,GeckoMesh 都能无声且高效地嵌入其中,支持来自单个库 JAR 文件的Fabric、Forge和NeoForge。
功能特性
| 特性 |
详情 |
| ⚡ 零运行时开销 |
所有 PolyMesh 处理均在模型烘焙阶段完成。无逐帧成本。 |
| ? GeckoLib 原生集成 |
烘焙后的 PolyMesh 几何体直接追加到 GeckoLib 的 GeoBone 列表中。 |
| ? 跨平台 |
单一代码库同时针对 Fabric、Forge 和 NeoForge。 |
| ? 智能 UV 与法线计算 |
自动标准化 UV 坐标并计算平面着色面片的法线。 |
| ? 即插即用库 |
无需配置文件,无需注册。添加 JAR 即可使用。 |
| ? 轻量级 |
极小的 JAR 体积。无臃肿内容,除 GeckoLib 外无其他不必要的依赖项。 |
工作原理
GeckoMesh 使用了一个自定义的Mixin来拦截 GeckoLib 的骨骼构建阶段。当在模型 JSON 中检测到 PolyMesh 块时,库的反序列化器会介入,将网格几何体展平为一组 GeoCube 条目,并在管线继续之前将其注入到骨骼中。结果是完全烘焙好的几何体,由 GeckoLib 原生渲染 — 无需自定义渲染层,也无需光影技巧。
兼容性
| 平台 |
加载器版本 |
Minecraft 版本 |
| ? Fabric |
Fabric Loader >= 0.14 |
1.20.1 → 1.21.11 |
| ⚒️ Forge |
Forge 47.x |
1.20.1 → 1.21.11 |
| ? NeoForge |
NeoForge 20.4.x |
1.20.4 → 1.21.11 |
必需依赖项:GeckoLib | Java:17 或更高版本
安装
- 确保已为你的加载器和 Minecraft 版本安装了 GeckoLib。
- 从Files(文件)选项卡下载适用于你平台的 GeckoMesh JAR:
geckomesh-fabric-1.20.1-1.21.11-1.0.0.jar
geckomesh-forge-1.20.1-1.21.11-1.0.0.jar
geckomesh-neoforge-1.20.4-1.21.11-1.0.0.jar
- 将下载的 JAR 放入你的
.minecraft/mods 文件夹。
- 启动游戏 — GeckoMesh 会自动注册。无需配置。
开发者指南
GeckoMesh 主要是一个库模组。如果你正在构建一个使用 GeckoLib 并希望发布基于 PolyMesh 几何体的模组,只需在你的模组元数据中将 GeckoMesh 声明为依赖项即可。你模型 JSON 中的所有 PolyMesh 块都会被自动识别。
该库提供了一个清晰的 Mixin 插件 API 和一个用于高级用法的 JSON 实用类 (MixinJsonUtil)。源代码和示例可在下方链接的仓库中找到。
致谢
- 作者:Bay4lly
- 许可证:MIT
- 灵感来源:由 Bernie-G 及 GeckoLib 团队开发的 GeckoLib
? 加入 Discord | ? CurseForge | ? GitHub
Blockbench Meshy Plugin 的 GeckoMesh 分支:
安装方法:
GeckoMesh
A premium, lightweight PolyMesh rendering library for GeckoLib.
Bring Bedrock-style geometry to your entities — with zero runtime cost.
What is GeckoMesh?
GeckoMesh is a developer-focused compatibility library that unlocks Bedrock-style PolyMesh geometry for GeckoLib-powered mods. It hooks directly into the model baking pipeline and appends baked PolyMesh faces straight to GeckoLib's native GeoBone structure — so your custom low-poly meshes just work, no overhauls needed.
Whether you're building a new entity mod or extending an existing one, GeckoMesh slots in silently and efficiently, supporting Fabric, Forge, and NeoForge from a single library JAR.
Features
| Feature |
Details |
| ⚡ Zero Runtime Overhead |
All PolyMesh processing happens during model baking. No per-frame cost. |
| ? GeckoLib Native Integration |
Baked PolyMesh geometry is appended directly to GeckoLib's GeoBone list. |
| ? Cross-Platform |
A single codebase targeting Fabric, Forge, and NeoForge simultaneously. |
| ? Smart UV & Normal Calculation |
Automatically normalizes UV coordinates and computes flat-shaded face normals. |
| ? Drop-in Library |
No config files, no registrations. Add the JAR and it works. |
| ? Lightweight |
Minimal JAR size. No bloat, no unnecessary dependencies beyond GeckoLib. |
How It Works
GeckoMesh uses a custom Mixin that intercepts GeckoLib's bone construction phase. When a PolyMesh block is detected inside a model JSON, the library's deserializer kicks in, flattens the mesh geometry into a set of GeoCube entries, and injects them into the bone before the pipeline continues. The result is fully baked geometry that GeckoLib renders natively — no custom render layer, no shader trickery.
Compatibility
| Platform |
Loader Version |
Minecraft Versions |
| ? Fabric |
Fabric Loader >= 0.14 |
1.20.1 → 1.21.11 |
| ⚒️ Forge |
Forge 47.x |
1.20.1 → 1.21.11 |
| ? NeoForge |
NeoForge 20.4.x |
1.20.4 → 1.21.11 |
Required dependency: GeckoLib | Java: 17 or newer
Installation
- Make sure GeckoLib is installed for your loader and Minecraft version.
- Download the GeckoMesh JAR for your platform from the Files tab:
geckomesh-fabric-1.20.1-1.21.11-1.0.0.jar
geckomesh-forge-1.20.1-1.21.11-1.0.0.jar
geckomesh-neoforge-1.20.4-1.21.11-1.0.0.jar
- Place the downloaded JAR into your
.minecraft/mods folder.
- Launch the game — GeckoMesh registers automatically. No configuration needed.
For Developers
GeckoMesh is primarily a library mod. If you're building a mod that uses GeckoLib and want to ship PolyMesh-based geometry, simply declare GeckoMesh as a dependency in your mod metadata. All PolyMesh blocks in your model JSONs will be picked up automatically.
The library exposes a clean Mixin plugin API and a JSON utility class (MixinJsonUtil) for advanced usage. Source code and examples are available in the repository linked below.
Credits
- Author: Bay4lly
- License: MIT
- Inspired by: GeckoLib by Bernie-G & the GeckoLib team
? Join the Discord | ? CurseForge | ? GitHub
Blockbench Meshy Plugin's GeckoMesh fork:
TO INSTALL:
评论 0
登录后参与评分
还没有评论,来抢沙发吧