#How to attach your own death animation to a custom mob so that the minecraft mechanics don't turn on

1 messages · Page 1 of 1 (latest)

fallen shell
#

How to attach your own death animation to a custom mob so that the minecraft mechanics don't turn on. I came up with the idea of ​​turning on the animation when the mob has 1 hp, but then the game considers it alive and it doesn't disappear

safe ice
#
      "minecraft:on_death": {
        "event": "death",
        "target": "self"
      }```
#

add this in the components of ur entity

#

then add an event to it named "death"

#

and make it run an event from the component groups with this code

#
        "minecraft:transformation": {
          "into": "mcd:endersent_death"
        }```
#

(change the values to ur stuff obv)

#

and then i use this as dummy entity which has the death animation and then converts into another dummy entity which instant despawns

#

well, at least this is how i do for my death animations