{
  "format_version": "1.10.0",
  "particle_effect": {
    "description": {
      "identifier": "minecraft:evoker_spell",
      "basic_render_parameters": {
        "material": "particles_alpha",
        "texture": "textures/particle/particles"
      }
    },
    "components": {
      "minecraft:emitter_rate_steady": {
        "spawn_rate": 20,
        "max_particles": 50
      },

      "minecraft:emitter_lifetime_looping": {
        "active_time": 10
      },

      "minecraft:emitter_shape_point": {
        "direction": [
          "-0.5 + Math.Random(0, 1) + (Math.Random(0, 2) - 1) * 0.4",
          "(1 + (Math.Random(0, 2) - 1) * 0.4) * 0.5",
          "-0.5 + Math.Random(0, 1) + (Math.Random(0, 2) - 1) * 0.4"
        ]
      },

      "minecraft:particle_initial_speed": "(Math.Random(0, 1) + Math.Random(0, 1) + 1) * 0.6",

      "minecraft:particle_lifetime_expression": {
        "max_lifetime": "Math.Random(0.4, 2.0)"
      },

      "minecraft:particle_motion_dynamic": {
        "linear_acceleration": [ 0, 0.1, 0 ]
      },

      "minecraft:particle_motion_collision": {
        "collision_radius": 0.2
      },

      "minecraft:particle_appearance_billboard": {
        "size": [ 0.15, 0.15 ],
        "facing_camera_mode": "lookat_xyz",

        "uv": {
          "texture_width": 16,
          "texture_height": 16,
          "flipbook": {
            "base_UV": [ 7, 8 ],
            "size_UV": [ 1, 1 ],
            "step_UV": [ -1, 0 ],
            "frames_per_second": 8,
            "max_frame": 8,
            "stretch_to_lifetime": true,
            "loop": false
          }
        }
      },

      "minecraft:particle_appearance_tinting": {
        "color": [ "query.spellcolor.r", "query.spellcolor.g", "query.spellcolor.b", 1 ]
      },

      "minecraft:particle_appearance_lighting": {}
    }
  }
}
