Giter Club home page Giter Club logo

armor-stand-animator's Introduction

Armor Stand Animator

Modified version of Armor Stand Animator to export to JSON instead of a data pack.

Provides an interface for Blockbench to animate armor stands which is converted to a data pack JSON file with keyframes.

Usage

This must be loaded by file or URL via the plugins menu. Then, add both the "Create Armor Stand Model" and "Export Armor Stand Animation" actions to your toolbar.

Next, create a new Blockbench project. You can use whatever format you like (Bedrock works best in my experience). Since you get 360 degrees of freedom in each axis, you can use the Generic Model format if you like.

In any case, click the "Create Armor Stand Model" action to create a new armor stand. This will also import a basic texture for you. Then, in the "Animate" menu, create a new animation. Name it whatever you like, but make sure the snapping value is set to 20. If it's not 20, any keyframe time will be rounded up, which can create undesirable results. You can set the Loop Mode or the Start Delay if you wish. Note that "Hold On Last Frame" and "Play Once" do the same thing in the final data pack. Now, it's time to animate your armor stand. You can move the base armor_stand bone around to change the position of the armor stand (it teleports relative to its current position), and you can modify the rotation of any bone except you cannot modify the X or Z axis of the armor_stand bone. Changing the Y axis will edit the Rotation of the armor stand. To make this process easier, I highly recommend installing the Bakery plugin. It turns the interpolated preview into real keyframes. Without these keyframes, the final animation will "skip" directly to the next keyframe. Simply select a starting keyframe, select an ending keyframe, and then use the "Bake Animations" action in the toolbar.

Now that you have a finished animation, use the "Export Armor Stand Animation" action. You can edit the following parameters:

  • Block/Unit Ratio - This describes the ratio between Blockbench units and minecraft blocks. By default, 1 Blockbench unit is 1/16th of a minecraft block.
  • Time Scale - This describes the scale your animation will play at. Setting this to 2 will make your animation play in half speed.

This version of the plugin exports the animation to a JSON file with an array of keyframes for use in various programs.


Found a bug? Create an issue on the GitHub repository.

Special thanks to vdvman1 for helping me optimize the data pack, and to many others in the Minecraft Commands Discord for feedback.

armor-stand-animator's People

Contributors

doublef3lix avatar ioasaph avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.