{
  "format_version": "1.8.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "mobs:spectre",
      "materials": {
        "default": "phantom",
        "invisible": "phantom_invisible"
      },
      "textures": {
        "default": "textures/entity/pamobile/mobs_spectre"
      },
      "geometry": {
        "default": "geometry.mobs_spectre"
      },
      "scripts": {
        "pre_animation": [
          "variable.wingRotZ = 16.0 * Math.sin((variable.RuntimeID * 3 + query.life_time * 20.0) * 7.448454);",
          "variable.tailRotX = -5.0 * Math.sin((variable.RuntimeID * 3 + query.life_time * 20.0) * 14.896908) - 5.0;"
        ]
      },
      "animations": {
        "phantom_base_pose": "animation.mobs_spectre.base_pose",
        "move": "animation.mobs_spectre.fly"
      },
      "animation_controllers": [
        {
          "phantom_base_pose": "controller.animation.phantom.base_pose"
        },
        {
          "move": "controller.animation.phantom.move"
        }
      ],
      "particle_effects": {
        "wing_dust": "minecraft:phantom_trail_particle"
      },
      "render_controllers": [
        "controller.render.phantom"
      ],
      "spawn_egg": {
        "texture": "mobs:spectre",
        "texture_index": 0
      }
    }
  }
}