Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Model Engine 4 Model Engine 4
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 110
    • Issues 110
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • Model Engine 4Model Engine 4
  • Issues
  • #36

Closed
Open
Created Oct 21, 2023 by KillerCreeper@KillerCreeper112

Random Death Animation

This does not happen often but sometimes when a mob with a model spawns, the death animation will instantly play and from that point on, the model is stuck on the last frame of the death animation. It'll still walk around and attack (if it's hostile). Basically, acting like a normal mob. The only thing I can think of that may be causing it is setting the mob's max health and health:

mob.getAttribute(Attribute.GENERIC_MAX_HEALTH).setBaseValue(30D);
mob.setHealth(30D);

But it's too random and out of nowhere to really understand what is going on.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking