{
  "format_version": "1.26.10",
  "particle_effect": {
    "description": {
      "identifier": "minecraft:trial_spawner_detection",
      "basic_render_parameters": {
        "material": "particles_alpha",
        "texture": "textures/particles/trial_spawner_atlas"
      }
    },
    "components": {
      "minecraft:emitter_initialization": {
        "creation_expression": {
          "expression": "variable.player_count = 1;",
          "version": 12
        }
      },
      "minecraft:emitter_lifetime_once": {
        "active_time": 1
      },
      "minecraft:emitter_rate_instant": {
        "num_particles": {
          "expression": "30 + math.min(variable.player_count, 10) * 5",
          "version": 12
        }
      },
      "minecraft:emitter_shape_box": {
        "offset": [
          {
            "expression": "0.5 + math.random(-0.65, 0.65)",
            "version": 12
          },
          {
            "expression": "0.1 + math.random(0.0, 0.8)",
            "version": 12
          },
          {
            "expression": "0.5 + math.random(-0.65, 0.65)",
            "version": 12
          }
        ],
        "half_dimensions": [
          0,
          0,
          0
        ],
        "direction": [
          0,
          1,
          0
        ]
      },
      "minecraft:particle_appearance_billboard": {
        "size": [
          {
            "expression": "return variable.quadSizeX * math.clamp(variable.particle_age / variable.particle_lifetime * 32, 0, 1);",
            "version": 12
          },
          {
            "expression": "return variable.quadSizeY * math.clamp(variable.particle_age / variable.particle_lifetime * 32, 0, 1);",
            "version": 12
          }
        ],
        "facing_camera_mode": "lookat_y",
        "direction": {
          "mode": "derive_from_velocity",
          "custom_direction": [
            0,
            0,
            0
          ],
          "min_speed_threshold": 0.1
        },
        "uv": {
          "texture_width": 8,
          "texture_height": 8,
          "uv": [
            0,
            0
          ],
          "uv_size": [
            1,
            1
          ],
          "flipbook": {
            "base_UV": [
              0,
              0
            ],
            "size_UV": [
              1,
              6
            ],
            "step_UV": [
              1,
              0
            ],
            "frames_per_second": 5,
            "max_frame": 5,
            "stretch_to_lifetime": true
          }
        }
      },
      "minecraft:particle_appearance_tinting": {
        "color": {
          "gradient": {
            "0.000000": [
              1,
              1,
              1,
              1
            ]
          },
          "interpolant": 0
        }
      },
      "minecraft:particle_initial_speed": {
        "expression": "math.random(1,4)",
        "version": 12
      },
      "minecraft:particle_initialization": {
        "per_render_expression": {
          "expression": "variable.quadSizeY = (variable.particle_random_1 * 0.1125) + 0.11; variable.quadSizeX = variable.quadSizeY / 6.0;",
          "version": 12
        }
      },
      "minecraft:particle_lifetime_expression": {
        "max_lifetime": {
          "expression": "variable.lifetime = math.ceil(8.0 / math.random(0.75, 1.5)); return math.max(variable.lifetime, 1.0)/10.0;",
          "version": 12
        }
      },
      "minecraft:particle_motion_dynamic": {
        "linear_acceleration": [
          0,
          {
            "expression": "math.random(1.0,1.5)",
            "version": 12
          },
          0
        ]
      }
    }
  }
}