{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "mythicus_im:hdc.rm",
      "materials": {
        "default": "allay"
      },
      "textures": {
        "default": "textures/mythicus/hdc/entity/allay_chest"
      },
      "geometry": {
        "default": "geometry.mythicus_im.hdc.allay_chest"
      },
      "scripts": {
        "should_update_bones_and_effects_offscreen": true,
        "pre_animation": [
            "v.open_chest = math.lerp( q.variant, (v.open_chest??0), math.exp(-5 * query.delta_time));"//replace q.variant by the bool property / dummy query that signifies chest opened
        ],
        "animate": [
          "root",
          "open_chest"
        ]
      },
      "animations": {
        "root": "controller.animation.mythicus_im.hdc.allay_chest.root",

        "descend": "animation.mythicus_im.hdc.allay_chest.descend",
        "idle": "animation.mythicus_im.hdc.allay_chest.idle",
        "open_chest": "animation.mythicus_im.hdc.allay_chest.open_chest"
      },
      "particle_effects": {
        "ripple": "mythicus_im:hdc.allay_chest.ripple"
      },
      "render_controllers": [
        "controller.render.default"
      ],
      "spawn_egg": {
        "base_color": "#288483",
        "overlay_color": "#2B7135"
      }
    }
  }
}