{
	"format_version": "1.13.0",
	"minecraft:entity": {
		"description": {
			"identifier": "dotvi:godslayer_alatar_puppetsupport",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"dotvi:heal_puppet": {
				"minecraft:is_sheared": {}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"godslayer_alatar_puppetsupport",
					"evocation_illager",
					"illager",
					"monster"
				]
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1.9
			},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 100
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:environment_sensor": {
				"triggers": [
					{
						"filters": {
							"all_of": [
								{
									"test": "has_component",
									"value": "minecraft:is_sheared",
									"subject": "self"
								}
							]
						},
						"target": "self",
						"event": "dotvi:heal_puppet"
					}
				]
			},
			"minecraft:knockback_resistance": {
				"value": 50
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"dotvi:heal_puppet"
					]
				}
			},
			"dotvi:heal_puppet": {
				"run_command": {
					"command": [
						"effect @e[type=dotvi:the_creator_puppet, r=25] resistance 1 50"
					]
				}
			}
		}
	}
}