{
  "format_version": "1.10.0",
  "minecraft:attachable": {
    "description": {
      "identifier": "minecraft:wolf_armor",
      "materials": {
        "default": "wolf_armor"
      },
      "textures": {
        "default": "textures/entity/wolf/wolf_armor",
        "dyed": "textures/entity/wolf/wolf_armor_dyed",
        "cracked_none": "textures/entity/wolf/wolf_armor_cracked_none",
        "cracked_low": "textures/entity/wolf/wolf_armor_cracked_low",
        "cracked_medium": "textures/entity/wolf/wolf_armor_cracked_medium",
        "cracked_high": "textures/entity/wolf/wolf_armor_cracked_high"
      },
      "geometry": {
        "default": "geometry.wolf.armor"
      },
      "scripts": {
        "pre_animation": [
          "variable.is_dyed = query.armor_color_slot(4, 0) != 1.0 || query.armor_color_slot(4, 1) != 1.0 || query.armor_color_slot(4, 2) != 1.0 || query.armor_color_slot(4, 3) != 1.0;",
          "variable.damage = query.armor_damage_slot(4);",
          "variable.cracks_index = variable.damage < 4 ? 0 : (variable.damage < 20 ? 1 : (variable.damage < 44 ? 2 : 3));"
        ]
      },
      "render_controllers": [
        "controller.render.wolf_armor"
      ]
    }
  }
}
