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)

Active 6 hours ago
Joined Mar 2024
Points:
442

User statistics:

  • Modifications: 0
  • Forum topics: 66
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 77
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?

Active 2 weeks ago
Joined Dec 2014
Points:
1082

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 672
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

Active 2 weeks ago
Joined Dec 2014
Points:
1082

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 672
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