{
	"format_version": "1.10.0",
	"particle_effect": {
		"description": {
			"identifier": "shapescape_mb:sculkpion_death_charge",
			"basic_render_parameters": {
				"material": "particles_blend",
				"texture": "textures/shapescape/mb/particle/sculkpion_death_charge_particle"
			}
		},
		"components": {
			"minecraft:emitter_local_space": {
				"position": true,
				"rotation": false
			},
			"minecraft:particle_initialization": {
				"per_render_expression": "v.age_progress=v.particle_age/v.particle_lifetime;v.age_countdown=1-v.age_progress;v.r_scaling=math.pow(v.age_countdown, 3);v.phi=math.acos(v.particle_random_1*2-1)*180/math.pi;v.theta=v.particle_random_2*360;v.r=15*v.r_scaling;v.random_sphere_point_x=math.sin(v.phi)*math.cos(v.theta);v.random_sphere_point_y=math.sin(v.phi)*math.sin(v.theta);v.random_sphere_point_z=math.cos(v.phi);v.x=v.r*v.random_sphere_point_x;v.y=v.r*v.random_sphere_point_y;v.z=v.r*v.random_sphere_point_z;",
				"per_update_expression": "v.age_progress=v.particle_age/v.particle_lifetime;v.age_countdown=1-v.age_progress;v.r_scaling=math.pow(v.age_countdown, 3);v.phi=math.acos(v.particle_random_1*2-1)*180/math.pi;v.theta=v.particle_random_2*360;v.r=15*v.r_scaling;v.random_sphere_point_x=math.sin(v.phi)*math.cos(v.theta);v.random_sphere_point_y=math.sin(v.phi)*math.sin(v.theta);v.random_sphere_point_z=math.cos(v.phi);v.x=v.r*v.random_sphere_point_x;v.y=v.r*v.random_sphere_point_y;v.z=v.r*v.random_sphere_point_z;"
			},
			"minecraft:emitter_rate_steady": {
				"spawn_rate": 40,
				"max_particles": 400
			},
			"minecraft:emitter_lifetime_once": {
				"active_time": 1
			},
			"minecraft:emitter_shape_point": {},
			"minecraft:particle_lifetime_expression": {
				"max_lifetime": 2
			},
			"minecraft:particle_initial_spin": {
				"rotation": "math.random(-10,10)"
			},
			"minecraft:particle_motion_parametric": {
				"relative_position": ["v.x", "v.y", "v.z"]
			},
			"minecraft:particle_appearance_billboard": {
				"size": [1.5, 1.5],
				"facing_camera_mode": "lookat_xyz",
				"uv": {
					"texture_width": 32,
					"texture_height": 512,
					"flipbook": {
						"base_UV": [0, 0],
						"size_UV": [32, 32],
						"step_UV": [0, 32],
						"frames_per_second": 8,
						"max_frame": 16,
						"stretch_to_lifetime": true,
						"loop": false
					}
				}
			},
			"minecraft:particle_appearance_tinting": {
				"color": [
					"variable.particle_random_1 * 0.3 + 0.7",
					"variable.particle_random_1 * 0.3 + 0.7",
					"variable.particle_random_1 * 0.3 + 0.7",
					"1-v.particle_age/v.particle_lifetime"
				]
			}
		}
	}
}
