{
    "format_version": "1.16.0",
    "minecraft:entity": {
        "description": {
            "identifier": "bd:huggy_wuggy_statue_bd",
            "is_spawnable": true,
            "is_summonable": true,
            "is_experimental": false
        },
        "component_groups": {
			"bye": {
				"minecraft:instant_despawn": {}
			}
        },
        "components": {
            "minecraft:nameable": {},
            "minecraft:type_family": {
                "family": ["inanimate"]
            },
            "minecraft:health": {
                "value": 2,
                "max": 2,
				"min": 2
            },
            "minecraft:collision_box": {
                "width": 0,
                "height": 0
            },
            "minecraft:custom_hit_test": {
                "hitboxes": [{
                        "width": 1.8,
                        "height": 2.7,
                        "pivot": [0, 1.85, 0]
                    }
                ]
            },
            "minecraft:knockback_resistance": {
                "value": 1
            },
			"minecraft:interact": {
				"interactions": [{
						"on_interact": {
							"filters": {
								"all_of": [{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									}, { 
										"test": "has_ability", 
										"subject": "other", 
										"operator": "equals", 
										"value": "invulnerable" 
									}
								]
							},
							"event": "bye",
							"target": "self"
						},
						"interact_text": "remove"
					}
				]
			},
            "minecraft:damage_sensor": {
                "triggers": [
					{
						"cause": "all",
						"deals_damage": false
					}
				]
            },
            "minecraft:physics": {}
        },

        "events": {
            "bye": {
                "add": {
                    "component_groups": [
                        "bye"
                    ]
                }
            }
        }
    }
}