{
    "format_version": "1.13.0",
    "minecraft:entity": {
        "description": {
            "identifier": "bd:huggy_look_player",
            "is_spawnable": false,
            "is_summonable": true,
            "is_experimental": false,
			"scripts": {
                "animate": [
                    "huggy_look"
                ]
            },
            "animations": {
                "huggy_look": "animation.huggy_look"
            }
        },
        "component_groups": {
            "gone": {
                "minecraft:despawn": {}
            }
        },
        "components": {
			"minecraft:behavior.rise_to_liquid_level": {
                "priority": 0,
                "liquid_y_offset": 0.5,
                "rise_delta": 0.05,
                "sink_delta": 0.05
            },
            "minecraft:nameable": {},
            "minecraft:type_family": {
                "family": [
                    "inanimate", "huggy_look"
                ]
            },
            "minecraft:movement": {
                "value": 0.0
            },
            "minecraft:collision_box": {
                "width": 0.0,
                "height": 0.0
            },
            "minecraft:damage_sensor": {
                "triggers": [{
                        "on_damage": {
                            "filters": {
                                "all_of": [{
                                        "test": "has_damage",
                                        "value": "fatal"
                                    }
                                ]
                            },
                            "event": "minecraft:event_spawn_dead"
                        }
                    }
                ]
            },
            "minecraft:movement.basic": {},
            "minecraft:navigation.climb": {
                "can_sink": false
            },
            "minecraft:timer": {
                "time": 0.2,
                "looping": true,
                "time_down_event": {
                    "event": "gone",
                    "target": "self"
                }
            },
            "minecraft:fire_immune": true,
            "minecraft:knockback_resistance": {
                "value": 100
            },
            "minecraft:can_climb": {},
            "minecraft:behavior.float": {
                "priority": 0
            },
            "minecraft:health": {
                "value": 1,
                "max": 1,
				"min": 1
            },
			"minecraft:behavior.rise_to_liquid_level": {
				"priority": 0,
				"liquid_y_offset": 0.25,
				"rise_delta": 0.01,
				"sink_delta": 0.01
			},
            "minecraft:physics": {
				"has_gravity": false
            }
        },
        "events": {
			"minecraft:entity_spawned": {
				"run_command": {
					"command": [
						"execute @a[tag=!is_huggy,m=!c,c=1] ~~~ tp @a[tag=!is_huggy,m=!c,c=1] ~~~ facing @e[type=bd:huggy_look,c=1,r=6]"
					],
					"target": "self"
				}
			},
            "gone": {
                "add": {
                    "component_groups": [
                        "gone"
                    ]
                }
            }
        }
    }
}