{
	"format_version": "1.10.0",
	"particle_effect": {
		"description": {
			"identifier": "mythicus_im:hdc.craft_trail",
			"basic_render_parameters": {
				"material": "mythicus_im_particles_alpha_two_sided",
				"texture": "textures/mythicus/hdc/particle/trail_polar"
			}
		},
		"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=4;v.y=0;v.z=0;v.i=1;v.p_life=1;v.p_nbr=10;v.p_delay=0.05;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);v.e_rnd_1=0;v.rot_correct=v.e_rnd_1>=0.25 && v.e_rnd_1;v.y_offset=0.93;",
				"per_update_expression": "v.xyz_length=math.sqrt(math.pow(v.x,2)+math.pow(v.y,2)+math.pow(v.z,2));v.axz=math.atan2(-v.z,v.x);v.ay=math.acos(-v.y/v.xyz_length);"
			},
			"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": "math.max(v.p_nbr*0.3,1)"
			},
			"minecraft:emitter_lifetime_expression": {
				"expiration_expression": "v.emitter_age>v.p_nbr*v.p_delay"
			},
			"minecraft:emitter_shape_point": {},
			"minecraft:particle_lifetime_expression": {
				"max_lifetime": "v.p_life"
			},
			"minecraft:particle_initial_speed": 1,
			"minecraft:particle_motion_parametric": {
				"relative_position": ["v.x*0.5 + (v.particle_random_1-0.5)*0.5", "v.y*0.5 + (v.particle_random_2-0.5)*0.5 + v.y_offset", "v.z*0.5 + (v.particle_random_3-0.5)*0.5"],
				"rotation": "-90 + v.ay + v.rot_correct*180"
			},
			"minecraft:particle_appearance_billboard": {
				"size": ["0.5 * v.xyz_length", "0.5 * v.xyz_length*v.i"],
				"facing_camera_mode": "direction_z",
				"direction": {
					"mode": "custom",
					"custom_direction": ["math.sin(v.e_rnd_1*360)*math.cos(v.ay)*math.cos(v.axz) + math.sin(v.axz)", "math.sin(v.e_rnd_1*360)*math.sin(v.ay)", "-math.sin(v.e_rnd_1*360)*math.cos(v.ay)*math.sin(v.axz) + math.cos(v.axz)"]
				},
				"uv": {
					"texture_width": 2048,
					"texture_height": 2048,
					"uv": ["math.mod(math.floor(v.particle_age/v.particle_lifetime*64),8)*256", "math.floor(v.particle_age/v.particle_lifetime*8)*256"],
					"uv_size": [256, 256]
				}
			},
			"minecraft:particle_appearance_lighting": {},
			"minecraft:particle_appearance_tinting": {
				"color": ["v.particle_random_4*0.15+0.85", "v.particle_random_4*0.15+0.85", "v.particle_random_4*0.15+0.85", 1]
			}
		}
	}
}