{
	"format_version": "1.19.50",
	"minecraft:entity": {
		"description": {
			"identifier": "ldz:chill_blast_player_projectile",
			"runtime_identifier": "minecraft:snowball",
			"is_experimental": false,
			"is_spawnable": false,
			"is_summonable": true,
			"properties": {
				"ldz:on_hit": {
					"type": "bool",
					"default": false,
					"client_sync": true
				}				
			},
			"animations": {
				"ctrl.impact": "controller.animation.chill_blast_player_projectile.impact",
				"ctrl.despawn_timer":"controller.animation.chill_blast_player_projectile.despawn_timer"
			},
			"scripts": {
				"animate": [
					"ctrl.impact",
					"ctrl.despawn_timer"
				]
			}
		},
		"component_groups": {				
			"despawn": {
				"minecraft:instant_despawn": {}
			},
			"despawn_timer": {
				"minecraft:timer": {
					"time": 2,
					"looping": false,
					"time_down_event": {
						"event": "despawn",
						"target": "self"
					}
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": ["ldz", "projectile", "chill_blast_projectile"]
			},
			"minecraft:collision_box": {
				"width": 1,
				"height": 1
			},
			"minecraft:projectile": {
				"on_hit": {
					"impact_damage": {
						"damage": 5,
						"knockback": false
					},
					"stick_in_ground": {},
					"definition_event": {
						"event_trigger": {
							"event": "set_on_hit_to true",
							"target": "self"
						}
					}
				},
				"power": 2,
				"gravity": 0.03,
				"inertia": 1,
				"liquid_inertia": 1,
				"uncertainty_base": 2,
				"uncertainty_multiplier": 1,
				"anchor": 1,
				
				"reflect_on_hurt": false,
				"destroy_on_hurt": true,
				"crit_particle_on_hurt": true,
				"angle_offset": -5
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			}
		},
		"events": {
			"despawn": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			},
			"set_on_hit_to true": {
				"set_property": {
					"ldz:on_hit": true
				},
				"add": {
					"component_groups": [
						"despawn_timer"
					]
				}
				
			}
		}
	}
}