#How to create a Animated Item
8 messages · Page 1 of 1 (latest)
Please make sure to read #1029373817119838218 as it may answer your question!
Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.
define "animated"
like, are you talking about animation where parts of the model move or are you just asking about animated textures? If you are talking about moving parts, do you want it to be something the player holds in their hand or should it be some kind of fake entity?
etc.
I want to create a Item where one part of the model moves
well, depending on the kind of movement you need, you'd either need to:
- replace the model every tick in the player's hand with a different model that's slightly differently posed etc. or
- fake movement with an animated texture
!faq animation
Minecraft: Bedrock Edition: Models can be animated using the animation tab in the top right corner
Minecraft: Java Edition Vanilla: Java block and item models don't support animations natively. There is a trick to use animated textures to simulate movement, but its options are fairly limited. This video shows how to create models like this: https://youtu.be/Ub7JlZfktBA
OptiFine Entities: Optifine entities support expression based animations. More info here: https://github.com/sp614x/optifine/blob/master/OptiFineDoc/doc/cem_animation.txt
Minecraft: Java Edition Servers: Mobs on Minecraft servers can be animated using Model-Engine (https://github.com/Ticxo/Model-Engine-Wiki)
Minecraft: Modded (Forge, Fabric, Quilt): There are multiple ways to make animations based on your version. Simply put you can either use the Animation to Java Converter plugin for 1.19+ or Geckolib (https://github.com/bernie-g/geckolib/wiki). For more details use the command !faq modded-animation
"Generic"-Format Models: Models can be animated using the animation tab in the top right corner. The animated models can be exported using the export format glTF.
that youtube link shows the animated texture trick
One tip: give the animated part a separate texture than the static parts, else your texture is gonna be unnecessarily big.