{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "silverlabs_nat:kangaroo",
      "materials": {
        "default": "entity_alphatest"
      },

      "textures": {
        "default": "textures/sf/nba/entity/kangaroo/kangaroo",
        "baby": "textures/sf/nba/entity/kangaroo/kangaroo_baby",
        "boxing_gloves": "textures/sf/nba/entity/kangaroo/boxing_gloves"
      },

      "geometry": {
        "default": "geometry.silverlabs_nat.kangaroo",
        "baby": "geometry.silverlabs_nat.kangaroo_baby"
      },

      "sound_effects": {
        "punch": "silverlabs_nat.kangaroo.punch",
        "step": "silverlabs_nat.lion.step",
        "step_-6dB": "silverlabs_nat.lion.step_-6dB",
        "step_-12dB": "silverlabs_nat.lion.step_-12dB"
      },

      "animations": {
        "controller.kangaroo": "controller.animation.silverlabs_nat.kangaroo",
        "controller.kangaroo_baby": "controller.animation.silverlabs_nat.kangaroo.baby_main",
        "controller.kangaroo_punch": "controller.animation.silverlabs_nat.kangaroo_punch",
        "controller.kangaroo_idle_event": "controller.animation.silverlabs_nat.kangaroo_idle_event",

        "look_at_target": "animation.silverlabs_nat.kangaroo.look_at_target",
        "baby_look_at_target": "animation.silverlabs_nat.look_at_target",
        "idle": "animation.silverlabs_nat.kangaroo.idle",
        "walk": "animation.silverlabs_nat.kangaroo.walk",
        "run": "animation.silverlabs_nat.kangaroo.run",
        "punch_left": "animation.silverlabs_nat.kangaroo.punch_left",
        "punch_right": "animation.silverlabs_nat.kangaroo.punch_right",
        "right_ear_flick": "animation.silverlabs_nat.kangaroo.right_ear_flick_event",
        "left_ear_flick": "animation.silverlabs_nat.kangaroo.left_ear_flick_event",
        "baby_hidden_transform": "animation.silverlabs_nat.kangaroo.baby_hidden_transform",
        "pouch": "animation.silverlabs_nat.kangaroo.pouch",

        "baby_idle": "animation.silverlabs_nat.kangaroo_baby.idle",
        "baby_walk": "animation.silverlabs_nat.kangaroo_baby.walk",
        "baby_run": "animation.silverlabs_nat.kangaroo_baby.run",
        "baby_sit": "animation.silverlabs_nat.kangaroo_baby.sit",
        "baby_sit_idle": "animation.silverlabs_nat.kangaroo_baby.sit_idle",
        "baby_unsit": "animation.silverlabs_nat.kangaroo_baby.unsit"
      },

      "scripts": {
        "scale": "q.is_riding ? 0.95 : 1.0",
        "initialize": [
          "v.delay = 0.0;",
          "v.current_delay = 0.0;",
          "v.idle_selector = 0.0;",
          "v.is_walking = 0.0;",
          "v.is_sprinting = 0.0;"
        ],

        "pre_animation": [
          "v.is_walking = q.modified_move_speed > 0.1;",
          "v.is_sprinting = (q.modified_move_speed * (q.is_baby ? 0.7 : 1) - (q.distance_from_camera * 0.000001)) >= 0.4 ? 1;",
          "v.anim_speed_multiplier = 1.35;",
          "v.anim_speed_movement_max = 0.3;"
        ],

        "animate": [
          {
            "baby_hidden_transform": "!q.property('silverlabs_nat:has_baby_in_pouch')"
          },
          { "controller.kangaroo": "!q.is_baby" },
          { "controller.kangaroo_baby": "q.is_baby" },
          "controller.kangaroo_punch",
          "controller.kangaroo_idle_event",
          { "look_at_target": "!q.is_baby" },
          { "baby_look_at_target": "q.is_baby" }
        ]
      },

      "render_controllers": [
        "controller.render.silverlabs_nat.kangaroo",
        {
          "controller.render.silverlabs_nat.kangaroo_boxing_gloves": "q.mark_variant == 1"
        }
      ],

      "spawn_egg": {
        "texture": "silverlabs_nat.kangaroo_spawn_egg"
      }
    }
  }
}
