{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:ghast",
      "materials": { "default": "ghast" },
      "textures": {
        "default": "textures/entity/ghast/ghast",
        "shooting": "textures/entity/ghast/ghast_shooting"
      },
      "geometry": {
        "default": "geometry.crl.ghast"
      },
      "spawn_egg": {
        "texture": "spawn_egg",
        "texture_index": 19
      },
      "scripts": {
        "initialize": [
          "variable.random_variant = Math.random_integer(0,100);",
          "v.head_y_rotation_old = 0;"
        ],
        "pre_animation": [
          "variable.is_alive=q.is_alive;",
          "v.vertical_adjustment_weight = 5;"
          
        ],
        "animate": [
          "move",
          "particles",

          "control_death",
          "vertical_adjustment"
        ]
      },
      "animations": {
        "move": "animation.crl.ghast.move",

        "particles": "controller.animation.crl.ghast.particles",

        "death_scaling": "animation.crl.common.death_scaling",
        "control_death": "controller.animation.crl.common.death",

        "vertical_adjustment": "animation.crl.common.vertical_adjustment"
      },
      "particle_effects": {
        "ghast_smoke": "crl:particle.ghast.smoke",
        "ghast_death": "crl:particle.ghast.death"
      },
      "render_controllers": [ "controller.render.crl.ghast" ]
    }
  }
}