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]")
}
用法
命令
-
/bil model create id<.ajmodel>|filepath <model>根据生物标识符或指向模型 JSON 文件的路径(从服务器根文件夹开始)在游戏中生成一个模型。这些模型不会保存,主要用于测试。如果要加载
.ajmodel文件,请确保在 ID 或文件路径后附加.ajmodel。 -
/bil model <targets> animation|variant|scale <args>修改
<targets>中选中的任何具有自定义模型的实体的模型。允许您临时更改模型的缩放比例、更新变体以及播放/暂停/停止动画。这也主要用于测试和玩弄模型。
路线图
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
-
/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
.ajmodelto either the id or file path. -
/bil model <targets> animation|variant|scale <args>Modifies the model of any entity selected in <targets> 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!
下载 blockbench import library
下载 blockbench import library
下载 blockbench import library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 blockbench import library
下载 blockbench import library
下载 blockbench import library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 blockbench import library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 blockbench import library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 blockbench import library
下载 blockbench import library
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复了新版 ajblueprints 中的 NPE
- 修复了 CME
Public 26.3 版本发布
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧