{
    "format_version": "1.10.0",
    "particle_effect": {
      "description": {
        "identifier": "fireworksrocket",
        "basic_render_parameters": {
          "material": "particles_alpha",
          "texture": "textures/particle/particles"
        }
    },
    "events": {
        "smoke_trail": {
            "particle_effect": { 
                "effect": "fireworkstrail",
                "type": "particle_with_velocity"
            } 
        },
        "pop": {
            "particle_effect": {
                "effect": "fireworkspop",
                "type": "emitter",
                "pre_effect_expression": "variable.size = 0.05;"
            }
        }
    },
    "components": {
        "minecraft:emitter_rate_instant": {
          "num_particles": 1
        },
        "minecraft:emitter_lifetime_once": {
          "active_time": 0
        },
        "minecraft:emitter_shape_point": {
          "direction": [ "math.random(-1, 1)", 1, "math.random(-1, 1)"]
        },
        "minecraft:particle_lifetime_expression": {
          "max_lifetime": "Math.random(1.75, 1.8)"
        },
        "minecraft:particle_lifetime_events": {
            "expiration_event": "pop",
            "timeline": {
                "0.1": "smoke_trail",
                "0.2": "smoke_trail",
                "0.3": "smoke_trail",
                "0.4": "smoke_trail",
                "0.5": "smoke_trail",
                "0.6": "smoke_trail",
                "0.7": "smoke_trail",
                "0.8": "smoke_trail",
                "0.9": "smoke_trail",
                "1.0": "smoke_trail",
                "1.1": "smoke_trail",
                "1.2": "smoke_trail",
                "1.3": "smoke_trail",
                "1.4": "smoke_trail",
                "1.5": "smoke_trail",
                "1.6": "smoke_trail",
                "1.7": "smoke_trail"
            }
        },
        "minecraft:particle_motion_dynamic": {
          "linear_acceleration": [ 0, 30.0, 0 ],
          "linear_drag_coefficient": 5
        },
        "minecraft:particle_motion_collision": {
            "collision_radius": 0.1,
            "expire_on_contact": true
        },
        "minecraft:particle_appearance_billboard": {
          "size": [ 0.1, 0.1 ],
          "facing_camera_mode": "lookat_xyz",
          "uv": {
            "texture_width": 16,
            "texture_height": 16,
            "uv": [0, 4],
            "uv_size": [1, -1]
          }
        }
      }
    }
  }
  