{
	"format_version": "1.10.0",
	"particle_effect": {
		"description": {
			"identifier": "mythicus_im:hdc.smelter.flames",
			"basic_render_parameters": {
				"material": "particles_alpha",
				"texture": "textures/particle/particles"
			}
		},
		"events": {
			"smoke": {
				"particle_effect": {
					"effect": "mythicus_im:hdc.smelter.smoke",
					"type": "emitter"
				}
			}
		},
		"components": {
			"minecraft:emitter_initialization": {
				"creation_expression": "v.dir_x=v.dir_x??0;v.dir_z=v.dir_z??-1;"
			},
			"minecraft:emitter_rate_steady": {
				"spawn_rate": 50,
				"max_particles": 5
			},
			"minecraft:emitter_lifetime_once": {
				"active_time": 0.1
			},
			"minecraft:emitter_shape_box": {
				"offset": ["v.dir_x*0.51", 0.3, "v.dir_z*0.51"],
				"half_dimensions": ["v.dir_z*0.3", 0.1, "v.dir_x*0.3"],
				"direction": ["math.random(-1,1)", "math.random(0,1)", "math.random(-1,1)"]
			},
			"minecraft:particle_lifetime_expression": {
				"max_lifetime": "math.random(0.6,2)"
			},
			"minecraft:particle_lifetime_events": {
				"creation_event": "smoke"
			},
			"minecraft:particle_initial_speed": 0.1,
			"minecraft:particle_appearance_billboard": {
				"size": ["math.max((0.1+v.particle_random_1*0.1)/1.5*(1-v.particle_age/2), 0)", "math.max((0.1+v.particle_random_1*0.1)/1.5*(1-v.particle_age/2), 0)"],
				"facing_camera_mode": "lookat_y",
				"uv": {
					"texture_width": 16,
					"texture_height": 16,
					"uv": [0, 3],
					"uv_size": [1, 1]
				}
			}
		}
	}
}