{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "numberblocks:four_times_table",
      "materials": { "default": "entity_alphatest" },
      "textures": {
        "default": "textures/entity/numberblocks/times_tables/four_times_table"
      },
      "geometry": {
        "default": "geometry.times_table"
      },
      "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": [
          "times_table_move",
          { "times_table_nosneaking": "!query.is_riding" },
          { "times_tables.legs": "query.is_riding" }
        ]
      },
      "animations": {
        "times_table_move": "controller.animation.times_table.move",
        "times_table_default": "animation.times_table.default",
        "times_table_moving": "animation.times_table.move",
        "times_table_nosneaking": "animation.times_table.nosneaking",
        "times_tables.legs": "animation.times_tables.mob.riding.legs"
      },
      "render_controllers": [ "controller.render.four_times_table" ],
      "spawn_egg": {
        "texture": "numberblocks_egg_four_times_table"
      }
    }
  }
}
