{
  "format_version": "1.10.0",
  "particle_effect": {
    "description": {
      "identifier": "minecraft:magic_critical_hit_emitter",
      "basic_render_parameters": {
        "material": "particles_alpha",
        "texture": "textures/particle/particles"
      }
    },
    "components": {
      "minecraft:emitter_rate_steady": {
        "spawn_rate": 520,
        "max_particles": "variable.particle_count ?? 16.0"
      },
      "minecraft:emitter_lifetime_once": {
        "active_time": 0.15
      },
      "minecraft:emitter_shape_point": {
        "offset": [ 0.0, "Math.random(-0.9, -0.5)", 0.0 ],
        "direction": [ "Math.random(-0.75, 0.75)", "Math.random(-1.0, 1.0)", "Math.random(-0.75, 0.75)" ]
      },
      "minecraft:particle_initial_speed": "Math.random(10.0, 20.0)",
      "minecraft:particle_lifetime_expression": {
        "max_lifetime": "6.0 / (Math.random(0.0, 16.0) + 12.0)"
      },
      "minecraft:particle_motion_dynamic": {
        "linear_acceleration": [ 0, -12.0, 0 ],
        "linear_drag_coefficient": 10
      },
      "minecraft:particle_appearance_billboard": {
        "size": [
          "0.10 + variable.particle_random_1 * 0.05",
          "0.10 + variable.particle_random_1 * 0.05"
        ],
        "facing_camera_mode": "lookat_xyz",
        "uv": {
          "texture_width": 128,
          "texture_height": 128,
          "uv": [ 16, 32 ],
          "uv_size": [ 8, 8 ]
        }
      },
      "minecraft:particle_appearance_tinting": {
        "color": {
          "gradient": [
            [
              "variable.particle_random_1 * 0.3 + 0.6",
              "variable.particle_random_2 * 0.3 + 0.6",
              0.8,
              1.0
            ],
            [ 0.5, 0.5, 0.8, 1.0 ]
          ],
          "interpolant": "variable.particle_age/variable.particle_lifetime"
        }
      },
      "minecraft:particle_appearance_lighting": {}
    }
  }
}
