Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_gYomIZoZ.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Json Entity Animation - 墨喵 Minecraft 资源
Json Entity Animation 图标

Json Entity Animation

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.2.1+1.19.4
本资源为搬运资源,原资源地址: https://modrinth.com/mod/json-entity-animation
资源信息

Minecraft 版本: 1.19.4 1.20 1.20.1

平台: fabric quilt

标签: library

资源介绍

Json Entity Animation

Json Entity Animation (JsonEA) for short is a library mod for other mods to be able to define animations through JSON instead of through code. A Blockbench plugin (also available in the Blockbench plugins browser) is also provided in order to export your animations to this format.

For developers

Add the mod as a dependency using the Modrinth Maven.

dependencies {
    include(modImplementation("maven.modrinth:json-entity-animation:0.2.1+1.19.4"))
}

Once added, put your animation JSONs in the assets/modid/jsonea directory. To load the animations, your entity model must subclass SinglePartEntityModel/HierarchicalModel. Then define a JsonAnimator field and animation IDs.

public class MyEntityModel extends SinglePartEntityModel<MyEntity> {
    private static final Identifier PUNCH_ANIMATION = new Identifier("modid", "my_entity/punch");

    private final JsonAnimator animator = new JsonAnimator(this);

    // ...

    @Override
    public void setAngles(MyEntity entity, float limbAngle, float limbDistance, float animationProgress, float headYaw, float headPitch) {
        getPart().traverse().forEach(ModelPart::resetTransform);
        animator.animate(entity.punchState, PUNCH_ANIMATION, animationProgress);
    }
}
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
SemiVanilla+

价格:0 墨喵币
下载量:0

查看详情
Endit!

价格:0 墨喵币
下载量:0

查看详情
ManaMetalMod Tweaks

价格:0 墨喵币
下载量:0

查看详情
Classic Improvements ADD-ON 7 Origins

价格:0 墨喵币
下载量:0

查看详情