{
	"file_type": "particle",
	"display_name": "Example Entity Sparkle Box Particle",
	"template": {
		"force_default_scope": true,
		"data_path": "particle_effect",
		"data": {
			"description": {
				"identifier": "minecraft:example_entity_sparkle_box",
				"basic_render_parameters": {
					"material": "particles_alpha",
					"texture": "textures/particle/particles"
				}
			},
			"components": {
				"minecraft:emitter_local_space": {
					"position": true,
					"rotation": true
				},
				"minecraft:emitter_rate_steady": {
					"spawn_rate": "math.random(30, 60)",
					"max_particles": 100
				},
				"minecraft:emitter_lifetime_expression": {
					"activation_expression": 1
				},
				"minecraft:emitter_shape_box": {
					"offset": [
						0,
						"0.5 * variable.entity_scale",
						"0.2 * variable.entity_scale"
					],
					"half_dimensions": [
						"0.5 * variable.entity_scale",
						"0.5 * variable.entity_scale",
						"0.75 * variable.entity_scale"
					],
					"direction": "outwards",
					"surface_only": true
				},
				"minecraft:particle_initial_speed": 0,
				"minecraft:particle_initialization": {
					"per_render_expression": "variable.size = (variable.particle_random_1*0.05 + 0.05) * variable.entity_scale;"
				},
				"minecraft:particle_appearance_billboard": {
					"size": [
						"variable.size",
						"variable.size"
					],
					"face_camera_mode": "lookat_xyz",
					"uv": {
						"texture_width": 16,
						"texture_height": 16,
						"flipbook": {
							"base_UV": [
								8,
								12
							],
							"size_UV": [
								1,
								1
							],
							"step_UV": [
								-1,
								0
							],
							"max_frame": 8,
							"stretch_to_lifetime": true
						}
					}
				},
				"minecraft:particle_appearance_tinting": {
					"color": [
						1,
						0.85,
						0
					]
				},
				"minecraft:particle_lifetime_expression": {
					"max_lifetime": "math.random(0.5, 0.75)"
				}
			}
		}
	}
}