{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      
      "identifier": "mythicus_im:hdc.outline",
      "spawn_egg": {
        "base_color": "#288483",
        "overlay_color": "#2B7135"
      },

      "materials": {
        "default": "entity_alphatest",
        "cube": "mythicus_im_cube"
      },
      "textures": {
        "cube": "textures/mythicus/hdc/entity/cube_2"
      },
      "geometry": {
        "cube": "geometry.mythicus_im.hdc.cube"
      },

      "scripts": {
        "initialize": [
          
          "v.radius = q.property('mythicus_im:radius') + 0.99;",
          "v.scale = (1 + v.radius * 2);",
          "v.pos_init = 0;",
          "v.scale_init = 16 * v.scale;",

          "v.pos2 = -v.scale_init;",
          "v.pos3 = v.pos2;"

        ],
        "should_update_bones_and_effects_offscreen": true,
        "animate": [
          "scale"
        ]
      },

      "animations": {
        "scale": "animation.mythicus_im.hdc.cube.scale"
      },

      "render_controllers": [
        { "controller.render.mythicus_im.hdc.cube": "q.distance_from_camera < (v.scale + 5)" }
      ]

    }
  }
}