How to animate mobs in 1.16.5?

Started by DoctorWafflePhD on Wed, 09/15/2021 - 06:53

Topic category: Help with modding (Java Edition)

Last seen on 05:33, 20. Sep 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to animate mobs in 1.16.5?
Wed, 09/15/2021 - 06:53

I recently modeled, textured, rigged, and animated a dragonfly using Blockbench as a personal project, and wanted to see if I could use MCreator (I have no prior mod experience) to put it into the game. While I figured out how to implement the dragonfly just fine, I don't know how to give it its animation (it only has one animation). I've spent hours searching for answers, and everything I've found is outdated by at least three months, and when I attempt to do it myself, I get numerous build errors, likely because I'm attempting to follow outdated guides. Is there any current method to animating mobs in 1.16.5?

Last seen on 19:42, 20. Sep 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Main thing that is important…
Wed, 09/15/2021 - 08:01

Main thing that is important for you to know is "block groups" built in Blockbench. If you are making model, you need to separate your blocks into groups (for example, legs, arms, body, head, wings, and so on). This way you will be able to animate separate parts and not one mob as a whole. Animation checker appear for any Blockbench group, so if you make only one general group/no groups, it's likely that there won't be possibility to control its parts.

Last seen on 05:33, 20. Sep 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I should probably specify…
Wed, 09/15/2021 - 19:26

I should probably specify the issue a bit more. I rigged and animated it in Blockbench just fine, making block groups as necessary, but I don't know how to make the mob animated in MCreator - when spawned in-game, it just flies around without any animation.

Last seen on 19:42, 20. Sep 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If you import it as .java…
Thu, 09/16/2021 - 07:35

If you import it as .java model, MCreator shows up list of animations which you can set for each part. Did you set it up properly there?

Also, as far as I remember, 2021.2 changed some animation features. From changelog, it says: "moved entity animation definitions to plugins so plugins can add more entity animations". It may be that issue. I will ask devs for that, because if there's no animation picker in newest version, you will need to wait for plugin to support it (but if so, then theoretically you will be able to get more animation possibilities than it was previously available)

Last seen on 05:33, 20. Sep 2021
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I imported it as a .java…
Thu, 09/16/2021 - 16:24

I imported it as a .java model, which makes this window appear. However, I do not know how to import my custom animations made in Blockbench into the program. Just to test, I set head to "Head movement animation" which does allow the mob to look around, but I was wondering how to make, say, an idle animation, similarly to how Bees have a constant animation.

Model animation definition wizard window

Last seen on 19:42, 20. Sep 2021
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay, so at least now I know…
Thu, 09/16/2021 - 17:02

Okay, so at least now I know whole issue in detail. If I'm not wrong, you can't import your custom animations as is, you can only use the ones that are within MCreator. Although, since 2021.2 expanded plugin support for them, you can probably wait for some plugins/make one yourself which would allow for specific, custom animations.

Again, I can be wrong on that, but as far as I know, it is this way.