{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "sao:wyrm_boss",
      "materials": {
	    "default": "glow",
	    "invisible": "enderman_invisible"
        },
        "textures": {
                "default": "textures/entity/wyrm_boss"
        },
		"geometry": {
				"default": "geometry.white_wyrmboss"
			},
			"spawn_egg": {
				"texture": "spawnSCO3",
				"texture_index": 0
			},
			"scripts": {
				"pre_animation": [
          "variable.tcos0 = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
          "variable.tcos1 = -variable.tcos0;",
          "variable.attack_body_rot_y = Math.sin(Math.sqrt(variable.attack_time) * 360.0) * 11.46;",
          "variable.cos_attack_body_rot_y = Math.cos(variable.attack_body_rot_y);",
          "variable.sin_attack_body_rot_y = Math.sin(variable.attack_body_rot_y);",
          "variable.internal_swim_pos = Math.mod(query.modified_distance_moved, 26.0);",
          "variable.attack = Math.sin((1.0 - (1.0 - variable.attack_time) * (1.0 - variable.attack_time)) * 180.0) * 57.3;",
          "variable.attack2 = Math.sin(variable.attack_time * 180.0) * 57.3;",
          "variable.z_bob = Math.cos(query.life_time * 103.13244) * 2.865 + 2.865;",
          "variable.x_bob = Math.sin(query.life_time * 76.776372) * 2.865;"
				], 
				"animate": [
					"look_at_target_controller",
					"attack",
					{
					    "fly": "q.is_moving"
					},
					"bob",
					{
						"damage_nearby_mobs": "v.damage_nearby_mobs"
					},
					{
						"zombie_attack_bare_hand": "q.is_saddled"
					}
				]
			},
			"animations": {
				"look_at_target_controller": "controller.animation.humanoid.look_at_target",
				"look_at_target_default": "animation.humanoid.look_at_target.default",
				"look_at_target_gliding": "animation.humanoid.look_at_target.gliding",
				"look_at_target_swimming": "animation.humanoid.look_at_target.swimming",
				"fly": "animation.wyrm.fly",
				"bob": "animation.humanoid.bob",
				"attack": "animation.humanoid.attack.rotations",
				"damage_nearby_mobs": "animation.humanoid.damage_nearby_mobs",
				"zombie_attack_bare_hand": "animation.zombie.attack_bare_hand"
			},
   "render_controllers": [
    "controller.render.glow"
   ]
    }
  }
}