This repository is a fork of Animated Java with support for exporting projects to DiamondFire.
- Download
animated_java.jsfrom the latest release. - In Blockbench, go to
File > Pluginsand clickLoad Plugin from Filenext to the search bar. - Select the downloaded file.
- Restart Blockbench.
Important
Use Blockbench 4.12.6 (Animated Java is not compatible with version >=5): Download 4.12.6.
- Install CodeClient.
- Enable CodeClient API
- Run
/ccconfig CodeClientAPI true.
or - Open the config menu using
/ccconfigor mod menu, under theGeneraltab, enable CodeClient API.
- Run
- Restart Minecraft.
- In Blockbench, click
Animated Java > DiamondFire > Export.
Important
You must be in dev mode on DiamondFire for export to work.
- Send both template sets from Blockbench.
Animated Java > DiamondFire > Exportsends your project-specific init function asrig.init.<project_name>.Animated Java > DiamondFire > Base Templates > ...... > Get Required Templatessends the core helpers (rig.spawn,rig.animate, etc.).... > Get Optional Templatessends useful helpers (rig.setVariant, offset helpers, etc.).... > Get All Templatessends both sets at once.
- Initialize each model once (for example in your setup/load code).
- Use
rig.init.rig("<project_name>")for one model, orrig.init.rigs(<list>)for multiple.
- Use
- Spawn a rig instance.
- Use
rig.spawn(<entities_return_var>, "<instance_id>", "<project_name>", <location>). <instance_id>is the unique runtime instance key, while<project_name>is the exported model id from the previous steps.
- Use
- Animate the spawned instance.
- Use
rig.animate("<instance_id>", "<project_name>", "<animation_name>", <tick>, <interp_optional>). <tick>is the current frame.<interp_optional>should always match the amount of ticks waiting between each frame. (set to 0 to disable interpolation)- Use
rig.animate.noReset(...)when you want to keep the rig-entities selection active after animating. - Use
rig.animate(...)when you want that selection reset automatically and restore your previous selection.
- Use
- Removing the rig.
- Use
rig.remove("<instance_id>").
- Use
Note
rig.spawn automatically applies animation default at tick 0 after spawning.
If you need lower-level control, rig.load_animation(...) and rig.decodeMatrices(...) are available.
This fork is based on Millo5/animated-java-df, with the goal of being more up to date, user friendly and feature complete.
For questions or discussion: join the Discord server.
Animated Java is a cutting-edge Blockbench plugin designed for Minecraft: Java Edition mapmakers and Data Pack developers. By leveraging Blockbench's familiar interface, and the power of Java Edition's Data Pack and Resource Pack systems, Animated Java allows you to create complex animations with ease!
-
Function API - Simple, yet powerful, API for summoning, and controlling animated models.
-
Variants - Swap between different textures in-game.
-
Text Displays - Preview, edit, and animate text displays in Blockbench.
-
Keyframe Easing Curves - Create smooth animations with ease.
-
Locators - Execute commands using Function Keyframes, teleport entities in an animation, and more.
-
Animation Tweening - Smoothly transition between animations.
-
Camera Support - Install the Official Camera Plugin to create cinematic camera paths with ease.
-
Well Optimized - Hours of effort have been poured into making Animated Java's Data Pack as low-impact as possible.
-
Resource Packs are Optional - Animate Vanilla block and item models using Item and Block Display entities.
-
Molang Support - If Blockbench can render your Molang expressions in the preview, you can use it in Animated Java.
- ❔ Getting Started
- 📚 Documentation
- 🌐 Website
- 🗣️ Discord
I love AJ 3000!— MrMakistein
Wonderful tool, thank you for contributing to the creative possibilities in this game!— Leroidesafk
Super thankful for AJ Snave! Its allowed me to create some insane sh**— phiac
Thank you for the lovely tool!— LeCarbonator
Contributions are always welcome! Check out CONTRIBUTING.md for more information.