{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "numberblocks:seven",
      "materials": {
        "default": "entity_alphatest",
        "numberling": "numberling"
      },
      "textures": {
        "default": "textures/entity/numberblocks/seven"
      },
      "geometry": {
        "default": "geometry.seven"
      },
      "scripts": {
        "pre_animation": [
          "variable.helmet_layer_visible = 1.0;",
          "variable.leg_layer_visible = 1.0;",
          "variable.boot_layer_visible = 1.0;",
          "variable.chest_layer_visible = 1.0;",
          "variable.attack_body_rot_y = Math.sin(360*Math.sqrt(variable.attack_time)) * 5.0;",
          "variable.tcos0 = (math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
          "variable.item_use_normalized = query.main_hand_item_use_duration / query.main_hand_item_max_duration;"
        ],
        "animate": [
          "move.arms",
          "move.legs",
          "bob",
          "holding",
          { "riding.arms" : "query.is_riding && !query.is_riding_any_entity_of_type('numberblocks:one_times_table','numberblocks:two_times_table','numberblocks:three_times_table','numberblocks:four_times_table','numberblocks:five_times_table','numberblocks:six_times_table','numberblocks:seven_times_table','numberblocks:eight_times_table','numberblocks:nine_times_table','numberblocks:ten_times_table')" },
          { "riding.legs" : "query.is_riding && !query.is_riding_any_entity_of_type('numberblocks:one_times_table','numberblocks:two_times_table','numberblocks:three_times_table','numberblocks:four_times_table','numberblocks:five_times_table','numberblocks:six_times_table','numberblocks:seven_times_table','numberblocks:eight_times_table','numberblocks:nine_times_table','numberblocks:ten_times_table')" },
          { "riding.times_table" : "query.is_riding && query.is_riding_any_entity_of_type('numberblocks:one_times_table','numberblocks:two_times_table','numberblocks:three_times_table','numberblocks:four_times_table','numberblocks:five_times_table','numberblocks:six_times_table','numberblocks:seven_times_table','numberblocks:eight_times_table','numberblocks:nine_times_table','numberblocks:ten_times_table')" },
          {
            "attack.positions" : "variable.attack_time >= 0.0"
          },
          {
            "attack.rotations" : "variable.attack_time >= 0.0"
          }
        ]
      },
      "animations": {
        "move.arms": "animation.player.move.arms",
        "move.legs": "animation.player.move.legs",
        "bob": "animation.player.bob",
        "holding": "animation.humanoid.holding",
        "riding.arms": "animation.player.riding.arms",
        "riding.legs": "animation.numberblocks.mob.riding.legs",
        "riding.times_table": "animation.numberblocks.mob.riding.times_table",
        "attack.positions": "animation.player.attack.positions",
        "attack.rotations": "animation.player.attack.rotations"
      },
      "render_controllers": [ "controller.render.seven" ],
      "enable_attachables": true,
      "spawn_egg": {
        "texture": "numberblocks_egg_seven"
      }
    }
  }
}
