{
	"format_version": "1.20.80",
	"minecraft:entity": {
		"description": {
			"identifier": "manalabs_zombie:brain_jar_projectile",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"manalabs_zombie:despawn": {
				"minecraft:instant_despawn": {}
			},
			"manalabs_zombie:wait_to_explode": {
				"minecraft:timer": {
					"time": 5,
					"looping": true,
					"time_down_event": {
						"event": "manalabs_zombie:explode",
						"target": "self"
					}
				}
				// "minecraft:area_attack": {
				// 	"damage_per_tick": 4,
				// 	"damage_range":1,
				// 	"cause": "entity_explosion",
				// 	"entity_filter": {
				// 		"any_of": [
				// 			{
				// 				"test": "is_family",
				// 				"subject": "other",
				// 				"value": "undead"
				// 			}
				// 		]
				// 	}
				// }
			},
			"manalabs_zombie:explode": {
				"minecraft:explode": {
					"breaks_blocks": false,
					"causes_fire": false,
					"destroy_affected_by_griefing": true,
					"fire_affected_by_griefing": true,
					"fuse_lit": true,
					"power": 3
				},
				"minecraft:timer": {
					"time": 0.01,
					"looping": true,
					"time_down_event": {
						"event": "manalabs_zombie:despawn",
						"target": "self"
					}
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": ["inanimate", "manalabs", "manalabs_zombie_brain_jar_projectile"]
			},
			"minecraft:collision_box": {
				"width": 0.2,
				"height": 0.2
			},
			"minecraft:damage_sensor": {
				"triggers": {
					"deals_damage": false
				}
			},
			"minecraft:projectile": {
				"on_hit": {
					"stick_in_ground": {},
					"definition_event": {
						"affect_projectile": true,
						"event_trigger": {
							"event": "manalabs_zombie:wait_to_explode",
							"target": "self"
						}
					}
				},
				"multiple_targets": false,
				"offset": [0, 0, 0],
				"power": 1.25,
				"gravity": 0.001,
				"inertia": 1,
				"liquid_inertia": 0.1,
				"anchor": 1,
				"uncertainty_base": 0,
				"uncertainty_multiplier": 0,
				"reflect_on_hurt": true,
				"should_bounce": true,
				"catch_fire": false
			},
			"minecraft:physics": {
				"has_gravity": true,
				"has_collision": true
			},
			"minecraft:dimension_bound": {},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			},
			"minecraft:body_rotation_blocked": {}
		},
		"events": {
			"manalabs_zombie:despawn": {
				"add": {
					"component_groups": ["manalabs_zombie:despawn"]
				}
			},
			"manalabs_zombie:wait_to_explode": {
				"add": {
					"component_groups": ["manalabs_zombie:wait_to_explode"]
				}
			},
			"manalabs_zombie:explode": {
				"add": {
					"component_groups": ["manalabs_zombie:explode"]
				}
			}
		}
	}
}
