Blockbench 导入库
本库简化了在 Fabric 模组中集成 Blockbench 模型(通用模型及来自 AnimatedJava Blockbench 插件的模型)的流程。
它自动化了物品模型和纹理的创建,并结合资源包与物品展示实体实现客户端集成,无需玩家安装额外的模组。
该库提供全面的动画支持,包括用于关键帧的 Molang 表达式,以及多种 Blockbench 特性,并额外支持其插件之一:AnimatedJava。
功能:
- 动画支持:导入带有预渲染动画的模型,并利用 Molang 表达式(目前仅支持
q.anim_time 和 q.life_time)进行动态动画控制。
- CustomModelData 与物品展示:使用 CustomModelData 和物品展示来呈现模型,通过“虚拟”物品展示实体将对服务器的影响降至最低。物品展示的变换会异步更新以确保流畅的性能。
- 大型骨骼支持:摆脱原版限制,允许使用超出标准 3x3x3 尺寸限制的骨骼。
- Blockbench 特性支持:兼容多种 Blockbench 特性,包括效果关键帧(命令与音效)、动画循环模式、插值等。
- AnimatedJava 扩展:为 AnimatedJava 提供额外功能,包括变体支持、骨骼黑名单、条件效果和定位器支持。
- 原版生物特性集成:开箱即用支持许多原版生物特性,如精确的碰撞箱(在 F3+B 中可见)、可骑乘、命名牌、隐身、发光、火焰动画、粒子效果、拴绳、死亡动画、平滑碰撞、动态碰撞箱/缩放,以及针对实体优化的特定 ticking。
查看 GitHub README 和文档以获取更多信息!
设置
repositories {
maven { url "https://maven.tomalbrc.de" }
}
dependencies {
modImplementation include("de.tomalbrc:blockbench-import-library:[TAG]")
}
用法
文档在此处可用
命令
路线图
1.x
- 骨骼修改器以实现更动态的动画
- 处理关键帧的前置/后置值
- 为动画纹理生成 mcmeta
- 关键帧的贝塞尔曲线支持
2.x
- 动态动画以实现动态动画速度,目前所有动画均在导入时预渲染
- 按玩家区分的动画;仅向单个玩家或一组玩家显示动画。目前所有动画均全局播放,对所有玩家可见
- 多个骑手(针对实体),目前仅支持 1 个
- 多个碰撞箱(需要与多骑手支持相同的更改)
- 粒子效果 (?)
测试服务器
请使用 1.20.5-1.21+ 客户端加入测试服务器
mc.tomalbrc.de:25565
以测试此模组以及我的其他模组 + 即将推出但未发布的模组和功能!
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
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!
评论 0
登录后参与评分
还没有评论,来抢沙发吧