How can i add animations to exiting vanilla mobs

Started by petrosvais on

Topic category: Help with MCreator software

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i add animations to exiting vanilla mobs
Mon, 04/07/2025 - 17:27 (edited)

I am making a villager voting mod and i made a voting animation in Blockbench for the villager but how do i play it for the vanilla villager i am using the geckolib plugins but anything even not using it will help

Edited by petrosvais on Mon, 04/07/2025 - 17:27
Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Suggest something that you…
Tue, 04/08/2025 - 16:38

Suggest something that you might think it would work even if it doesn't

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean the simplest method I…
Thu, 04/10/2025 - 19:38

I mean the simplest method I can think of is to make duplicate entities for all types of villagers and when you commence the voting you despawn the original villagers and replace them with your custom duplicates in the same places. These custom duplicates will have your geckolib animations and after the voting is over you can respawn the previous villagers.

Although for perfect synchronicity you would need to save all of the villagers data and then reapply it when spawning the villagers back. Also recording their velocity and momentum would make it look as if nothing has happened but that's not really necessary. You can just override their velocities to 0 while voting, unless they need to move during the process.

Another way would be to teleport the villagers to a different dimension and allocate a number which would then switch back when the voting was done however this will remove professions and trades so thinking about it it's not really a great idea.

I actually don't know anything about villagers and their data so this is all hypothetical.