{
	"format_version": "1.20.0",
	"minecraft:entity": {
		"description": {
			"identifier": "shapescape_mb:phantom_ghost",
			"is_experimental": false,
			"is_spawnable": false,
			"is_summonable": true,
			"scripts": {
				"animate": [
					{
						"ac.phantom_ghost": "q.is_sheared"
					}
				]
			},
			"animations": {
				"ac.phantom_ghost": "controller.animation.shapescape_mb.phantom_ghost.phantom_ghost"
			}
		},
		"component_groups": {
			"despawn": {
				"minecraft:instant_despawn": {}
			},
			"wait": {
				"minecraft:timer": {
					"time": 2.5,
					"looping": true,
					"time_down_event": {
						"event": "deal_damage",
						"target": "self"
					}
				}
			},
			"deal_damage": {
				"minecraft:is_sheared": {},
				"minecraft:area_attack": {
					"cause": "entity_attack",
					"damage_per_tick": 5,
					"damage_range": 6,
					"entity_filter": {
						"any_of": [
							{
								"all_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "mob"
									},
									{
										"test": "is_family",
										"subject": "other",
										"operator": "!=",
										"value": "shapescape_mb_phantom"
									},
									{
										"test": "is_family",
										"subject": "other",
										"operator": "!=",
										"value": "phantom"
									}
								]
							},
							{
								"all_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									},
									{
										"test": "has_ability",
										"subject": "other",
										"operator": "not",
										"value": "instabuild"
									}
								]
							},
							{
								"test": "is_family",
								"subject": "other",
								"value": "shapescape_mb_frog_boss_totem"
							}
						]
					}
				},
				"minecraft:timer": {
					"time": 2.4,
					"looping": true,
					"time_down_event": {
						"event": "despawn",
						"target": "self"
					}
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"shapescape_mb_phantom_ghost"
				]
			},
			"minecraft:collision_box": {
				"height": 0,
				"width": 0
			},
			"minecraft:damage_sensor": {
				"triggers": {
					"deals_damage": false
				}
			},
			"minecraft:knockback_resistance": {
				"max": 1000,
				"value": 1000
			},
			"minecraft:physics": {
				"has_collision": false,
				"has_gravity": false
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"wait"
					]
				}
			},
			"despawn": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			},
			"wait": {
				"add": {
					"component_groups": [
						"wait"
					]
				}
			},
			"deal_damage": {
				"add": {
					"component_groups": [
						"deal_damage"
					]
				},
				"remove": {
					"component_groups": [
						"wait"
					]
				}
			}
		}
	}
}