{
  "format_version": "1.10.0",
  "particle_effect": {
    "description": {
      "identifier": "minecraft:electric_spark_particle",
      "basic_render_parameters": {
        "material": "particles_alpha",
        "texture": "textures/particle/particles"
      }
    },
    "components": {
      "minecraft:emitter_rate_instant": {
        "num_particles": 1
      },        
      "minecraft:emitter_lifetime_once": {
      },
     "minecraft:emitter_shape_point": {
      "direction": [
        "(variable.particle_random_1 * variable.direction.x) - (variable.direction.x / 2.0)",
        "(variable.particle_random_2 * variable.direction.y) - (variable.direction.y / 2.0)",
        "(variable.particle_random_3 * variable.direction.z) - (variable.direction.z / 2.0)"
      ]
    },
    "minecraft:emitter_initialization": {
      "creation_expression": "variable.size = Math.random(0.1, 0.2);" 
    },

    "minecraft:particle_initial_speed": "-1",
     
      "minecraft:particle_lifetime_expression": {
        "max_lifetime": "((variable.particle_random_1 * 2) + 3) / 20"
      },
      "minecraft:particle_motion_dynamic": {
        "linear_acceleration": [ 0,0,0 ],
        "linear_drag_coefficient": 0.96
      },
      "minecraft:particle_appearance_billboard": {
        "size": ["variable.size", "variable.size" ],
        "facing_camera_mode": "rotate_xyz",
        "uv": {
          "texture_width": 128,
          "texture_height": 128,
          "uv": [ 16, 48 ],
          "uv_size": [ 8, 8 ]
        }
      },
      "minecraft:particle_appearance_tinting": {
        "color": [ 1, 0.9, 1, 1.0 ]
      }
    }
  }
}

