{
    "scripts": {
        "animate": [
          "coffin:start_dance"
        ]
      },
      "animations": {
        "coffin:start_dance": "controller.animation.start_dance"
      }

    "minecraft:start_dance": {
        "minecraft:variant": {
          "value": 40
        }
      },


    "minecraft:damage_sensor": {
      "triggers": {
        "on_damage": {
          "filters": {
            "all_of": [
              {
                "test": "has_damage",
                "value": "fatal"
              },
              {
                "test": "is_family",
                "subject": "other",
                "value": "player"
              }
            ]
          },
          "event": "minecraft:start_dance",
          "target": "self"
        }
      }
    },

      "minecraft:start_dance": {
        "add": {
          "component_groups": [
            "minecraft:start_dance"
          ]
        }
      },
}