{
	"format_version": "1.18.0",
	"minecraft:entity": {
		"description": {
			"identifier": "ldz:ender_wraith_projectile",
			"runtime_identifier": "minecraft:snowball",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"animations": {
				"ctrl.despawn_timer": "controller.animation.ender_wraith_projectile.despawn_timer",
				"ctrl.impact": "controller.animation.ender_wraith_projectile.impact"
			},
			"scripts": {
				"animate": [
					"ctrl.despawn_timer",
					"ctrl.impact"
			  	]
			}
		},

		"component_groups": {
			"despawn": {
				"minecraft:instant_despawn": {}
			},
			"impact_toggle": {
				"minecraft:is_stunned": {}
			},
			"remove_on_hit": {
				"minecraft:projectile": {
					"on_hit": {
						"definition_event": {
							"event_trigger": {
								"event": "add_impact_toggle"
							}
						},
						"impact_damage": {
							"damage": 3,
							"knockback": true
						},
						"stick_in_ground": {}
					},
					"power": 0.7,
					"gravity": 0.02,
					"inertia": 1,
					"liquid_inertia": 1,
					"uncertainty_multiplier": 0,
					"anchor": 1,
					"knockback": true,
					"offset": [ 0, 2.0, 0 ],
					"reflect_on_hurt": false,
					"catch_fire": false,
					"multiple_targets": true
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [ "ldz","projectile", "ender_wraith_projectile" ]
			},
			"minecraft:scale": {
				"value": 2.0
			},
			"minecraft:collision_box": {
				"width": 0.5,
				"height": 0.5
			},
			"minecraft:projectile": {
				"power": 0.7,
				"angle_offset": 0,
				"gravity": 0.02,
				"inertia": 1,
				"liquid_inertia": 1,
				"offset": [ 0, 2.0, 0 ]
			},
			"minecraft:timer": {
				"looping": false,
				"time": 0.15,
				"time_down_event": {
					"event": "remove_on_hit"
				}
			},
			"minecraft:fire_immune": {},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			},
			"minecraft:push_through": {
				"value": 1.0
			}
		},

		"events": {
			 "remove_on_hit": {
				 "add": {
					  "component_groups": [
						 "remove_on_hit"
					  ]
				 }
			  },
			"add_impact_toggle": {
				"add": {
		 			"component_groups": [
						"impact_toggle"
		 			]
				}
	 		},
			"despawn": {
				"add": {
		 			"component_groups": [
						"despawn"
		 			]
				}
	 		}
		}
	}
}