{
	"format_version": "1.10.0",
	"particle_effect": {
		"description": {
			"identifier": "mythicus_im:hdc.craft_items_home_in",
			"basic_render_parameters": {
				"material": "particles_alpha",
				"texture": "textures/mythicus/hdc/particle/generic_items"
			}
		},
		"curves": {
			"variable.pace": {
				"type": "linear",
				"input": "v.particle_age",
				"horizontal_range": "v.particle_lifetime",
				"nodes": [0, 1]
			}
		},
		"components": {
			"minecraft:emitter_initialization": {
				"creation_expression": "v.x = v.x ?? 0; v.y = v.y ?? 0; v.z = v.z ?? 0; v.y_offset = v.y_offset ?? 0; v.i=0.5;v.p_life=0.5;v.p_nbr=5;v.p_delay=0.10;v.size=0.25;v.xyz_length=math.sqrt(math.pow(v.x,2)+math.pow(v.y,2)+math.pow(v.z,2));v.ay=math.acos(v.y/v.xyz_length);v.axz=math.atan2(v.z,v.x);",
				"per_update_expression": "v.xyz_length=math.sqrt(math.pow(v.x,2)+math.pow(v.y,2)+math.pow(v.z,2));v.ay=math.acos(v.y/v.xyz_length);v.axz=math.atan2(v.z,v.x);"
			},
			"minecraft:emitter_local_space": {
				"position": true,
				"rotation": false
			},
			"minecraft:emitter_rate_steady": {
				"spawn_rate": "v.emitter_age <= v.p_nbr*v.p_delay ? 1/v.p_delay : 0",
				"max_particles": "v.p_nbr"
			},
			"minecraft:emitter_lifetime_expression": {
				"expiration_expression": "v.emitter_age>v.p_nbr*v.p_delay"
			},
			"minecraft:emitter_shape_point": {
				"direction": ["math.random(-0.1,0.1)", 1, "math.random(-0.1,0.1)"]
			},
			"minecraft:particle_lifetime_expression": {
				"max_lifetime": "v.p_life"
			},
			"minecraft:particle_motion_parametric": {
				"relative_position": ["math.lerp(v.x-v.x*v.pace, 0.5*(v.x+v.xyz_length*math.sin(-v.pace*180+v.ay)*math.cos(v.axz)), v.i)", "math.lerp(v.y-v.y*v.pace, 0.5*(v.y+v.xyz_length*math.cos(-v.pace*180+v.ay)), v.i)+v.y_offset", "math.lerp(v.z-v.z*v.pace, 0.5*(v.z+v.xyz_length*math.sin(-v.pace*180+v.ay)*math.sin(v.axz)), v.i)"],
				"rotation": "v.particle_random_1*90 * (math.cos(v.particle_age/v.particle_lifetime*180)*0.5+0.5)"
			},
			"minecraft:particle_appearance_billboard": {
				"size": ["v.size*(1-math.pow(v.particle_age/v.particle_lifetime,2)*0.4)", "v.size*(1-math.pow(v.particle_age/v.particle_lifetime,2)*0.4)"],
				"facing_camera_mode": "lookat_xyz",
				"uv": {
					"texture_width": 128,
					"texture_height": 16,
					"uv": ["math.round(v.particle_random_4*7)*16", 0],
					"uv_size": [16, 16]
				}
			},
			"minecraft:particle_appearance_lighting": {},
			"minecraft:particle_appearance_tinting": {
				"color": ["math.min(v.particle_random_1*0.05+0.6-v.particle_random_4*0.1, 1)", "math.min(v.particle_random_2*0.05+0.6-v.particle_random_4*0.1, 1)", "math.min(v.particle_random_3*0.05+0.6-v.particle_random_4*0.1, 1)", 1]
			}
		}
	}
}