How do I make the mob play an animation when the player disappears?

Started by MisterSmeet on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make the mob play an animation when the player disappears?

How do I make the mob play an animation when the player disappears? I have an animation that should be played when an entity loses sight of the player. How do I do this?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I have method that'd…
Mon, 03/31/2025 - 11:24

I think I have method that'd work but it requires locking the procedure

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh wait this would probably…
Mon, 03/31/2025 - 11:32

Oh wait this would probably only work with geckolib... or similar that allows you to play animations with procedure blocks