{
	"parent": "minelittlepony:races/steve/pegasus",
  "locals": {
    "tight_arm_width": [ "#arm_width", "-", 1 ],
    "knee_point": [ "#arm_length", "/", 2 ],
    "fore_leg_length": [ "#arm_length", "-", "#knee_point" ],
    "fore_leg_y": [ 4, "+", "#knee_point" ],
    
    "elbow_point": [ "#arm_length", "/", 3 ],
    "fore_arm_length": [ "#arm_length", "-", "#elbow_point" ],
    "back_leg_outset_z": [ "#arm_z", "-", 0.5 ],
    "front_leg_outset_z": [ "#arm_z", "-", 0.5 ],
    
    "claws_z": [ "#arm_z", "-", 1 ]
  },
	"data": {
    "head": {
      "pivot": [ 0, "#head_pivot_y", 0 ],
      "dilate": ["#head_elongation", "#head_elongation", 0],
      "cubes": [
        { "from": [-4, -6, -6], "size": [ 8,  8,  8] }
      ],
      "children": {
        "nose": {
          "dilate": [-1, 0, -1],
          "visible": false,
          "cubes": [
            { "from": [-4, -6, -13], "size": [ 8,  8,  8] }
          ]
        },
        "snout": {
          "implementation": "com.minelittlepony.client.model.part.PonySnout",
          "data": "minelittlepony:components/beak"
        },
        "ears": {
          "implementation": "com.minelittlepony.client.model.part.PonyEars",
          "data": "minelittlepony:components/ears"
        },
        "hat": {
          "texture": { "u": 32, "v": 0 },
          "dilate": ["#head_elongation", "#head_elongation", 0],
          "pivot": [ 0, "#head_pivot_y", 0 ],
          "cubes": [
            { "from": [-4, -6, -6], "size": [ 8,  8,  8], "dilate": 0.5 }
          ]
        }
      }
    },
    "wings": {
      "data": "minelittlepony:components/gryphon_wings",
      "implementation": "com.minelittlepony.client.model.part.PonyWings"
    },
    "left_arm": {
      "pivot": ["#arm_rotation_x", "#arm_rotation_y", 0],
      "texture": { "u": 32, "v": 49 },
      "cubes": [
        {
          "from": [ "#arm_x", 4, "#front_leg_outset_z"],
          "size": [ "#arm_width", "#elbow_point", "#arm_depth" ],
          "dilate": [0, 0, -0.5]
        }
      ],
      "children": {
        "left_forearm": {
          "type": "mson:import",
          "data": "minelittlepony:components/cube",
          "locals": {
            "x": "#arm_x",
            "y": 8,
            "z": "#arm_z",
            "u": 32,
            "v": 48,
            "side_v": 56,
            "width": "#arm_width",
            "height": "#fore_arm_length",
            "depth": "#arm_depth"
          }
        },
        "left_sleeve": {
          "visible": false,
          "texture": { "u": 48, "v": 48 },
          "cubes": [
            {
              "from": [ "#arm_x", 4, "#arm_z"],
              "size": [ "#arm_width",  "#arm_length",  "#arm_depth" ],
              "dilate": 0.25
            }
          ]
        }
      }
    },
    "right_arm": {
      "pivot": ["#arm_rotation_x_neg", "#arm_rotation_y", 0],
      "texture": { "u": 40, "v": 17 },
      "cubes": [
        {
          "from": [ "#arm_x_neg", 4, "#front_leg_outset_z"],
          "size": [ "#arm_width", "#elbow_point", "#arm_depth" ],
          "dilate": [0, 0, -0.5]
        }
      ],
      "children": {
        "right_forearm": {
          "type": "mson:import",
          "data": "minelittlepony:components/cube",
          "locals": {
            "x": "#arm_x_neg",
            "y": 8,
            "z": "#arm_z",
            "u": 40,
            "v": 16,
            "side_v": 24,
            "width": "#arm_width",
            "height": "#fore_arm_length",
            "depth": "#arm_depth"
          }
        },
        "right_sleeve": {
          "visible": false,
          "texture": { "u": 40, "v": 32 },
          "cubes": [
            {
              "from": [ "#arm_x_neg", 4, "#arm_z"],
              "size": [ "#arm_width",  "#arm_length",  "#arm_depth" ],
              "dilate": 0.25
            }
          ]
        }
      }
    },
    "left_leg": {
      "pivot": ["#arm_rotation_x", "#arm_rotation_y", 11],
      "texture": { "u": 16, "v": 49 },
      "cubes": [
        {
          "from": [ "#arm_x", 4, "#back_leg_outset_z"],
          "size": [ "#arm_width", "#knee_point", "#arm_depth" ],
          "dilate": [0, 0, -0.5]
        }
      ],
      "children": {
        "left_thigh": {
          "type": "mson:import",
          "data": "minelittlepony:components/cube",
          "locals": {
            "x": "#arm_x",
            "y": "#fore_leg_y",
            "z": "#arm_z",
            "u": 16,
            "v": 48,
            "side_v": 58,
            "width": "#arm_width",
            "height": "#fore_leg_length",
            "depth": "#arm_depth"
          }
        },
        "left_pants": {
          "visible": false,
          "texture": { "u": 0, "v": 48 },
          "cubes": [
            {
              "from": [ "#arm_x", 4, "#arm_z"],
              "size": [ "#arm_width",  "#arm_length",  "#arm_depth" ],
              "dilate": 0.25
            }
          ]
        }
      }
    },
    "right_leg": {
      "pivot": ["#arm_rotation_x_neg", "#arm_rotation_y", 11],
      "texture": { "u": 0, "v": 17 },
      "cubes": [
        {
          "from": [ "#arm_x_neg", 4, "#back_leg_outset_z"],
          "size": [ "#arm_width", "#knee_point", "#arm_depth" ],
          "dilate": [0, 0, -0.5]
        }
      ],
      "children": {
        "right_thigh": {
          "type": "mson:import",
          "data": "minelittlepony:components/cube",
          "locals": {
            "x": "#arm_x_neg",
            "y": "#fore_leg_y",
            "z": "#arm_z",
            "u": 0,
            "v": 16,
            "side_v": 26,
            "width": "#arm_width",
            "height": "#fore_leg_length",
            "depth": "#arm_depth"
          }
        },
        "right_pants": {
          "visible": false,
          "texture": { "u": 0, "v": 32 },
          "cubes": [
            {
              "from": [ "#arm_x_neg", 4, "#arm_z"],
              "size": [ "#arm_width",  "#arm_length",  "#arm_depth" ],
              "dilate": 0.25 
            }
          ]
        }
      }
    }
  }
}
