Mod
Json Entity Animation
No reviews yet
Library mod for creating your entity animations in JSON
Provides a framework or library for other mods to use.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
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);
}
}
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers