{
  "format_version": "1.10.0",
  "particle_effect": {
    "description": {
      "identifier": "minecraft:sparkler_emitter",
      "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_custom": {
        "direction": [ "Math.random(-0.1, 0.1)", "Math.random(-0.125, 0.125)", "Math.random(-0.1, 0.1)" ]
      },
      "minecraft:particle_initial_speed": "(Math.random(0, 1) + Math.random(0, 1) + 1) * 0.09",
      "minecraft:particle_lifetime_expression": {
        "max_lifetime": "1.7 + Math.random(0, 0.6)"
      },
      "minecraft:particle_motion_dynamic": {
        "linear_acceleration": [
          0,
          "(variable.particle_age * 0.4) * -1.5",
          0
        ],
        "linear_drag_coefficient": 1
      },
      "minecraft:particle_motion_parametric": {
        "rotation": "math.floor((variable.particle_age)/2) * 45"
      },
      "minecraft:particle_motion_collision": {
        "enabled": 0,
        "collision_drag": 1.0,
        "coefficient_of_restitution": 1.0,
        "collision_radius": 0.5
      },
      "minecraft:particle_appearance_billboard": {
        "size": [ 0.075, 0.075 ],
        "facing_camera_mode": "rotate_xyz",
        "uv": {
          "texture_width": 128,
          "texture_height": 128,
          "flipbook": {
            "base_UV": [ 64, 96 ],
            "size_UV": [ 8, 8 ],
            "step_UV": [ -8, 0 ],
            "frames_per_second": 10,
            "max_frame": 9,
            "stretch_to_lifetime": true,
            "loop": false
          }
        }
      },
      "minecraft:particle_appearance_tinting": {
        "color": [ "variable.color.r", "variable.color.g", "variable.color.b", "variable.color.a" ]
      }
    }
  }
}
