#how to get the bat animation in minecraft?
4 messages · Page 1 of 1 (latest)
Welcome to the help forum! Once your question has been resolved, please mark the post as closed by typing !close.
You can download the Vanilla pack to import the animations. I assume you used the Blockbench skin editor so far?
Go to https://github.com/Mojang/bedrock-samples/releases, download a source code zip under 'Assets', extract the resource pack, navigate to models > entity and open "Bat.geo.json" in Blockbench (it should open in the Bedrock Entity format).
It should have loaded the texture and the animations directly, you can check them out in the Animate tab, there is "flying" and "resting". You'll notice some keyframes use molang expressions, and both animations have 0s in length.
You'll want to give them a fixed length so that they work after exporting, and also adjust the frequency of the wings flapping, head bobbing etc. Spot the keyframes that have some molang in them thanks to the little M icon on them, and change every coefficient to a multiple of 90 so that you can adjust the animation length to make a seamless loop.
For instance in my screenshot, 1440 is a better number than 1489.6. Some other keyframes use 343.774, that should be changed to 360, it's close enough for your uses.
You'll also want to delete everything with "-this", or "query.target_y_rotation", that won't work outside of Minecraft Bedrock.
!close