{
	"format_version": "1.18.0",
	"minecraft:entity": {
		"description": {
			"identifier": "ldz:help_bubble",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"animations": {
				"beast_dupe_check": "animation.help_bubble.beast_duplication_check",
				"mystic_dupe_check": "animation.help_bubble.mystic_duplication_check",
				"scourge_dupe_check": "animation.help_bubble.scourge_duplication_check",
				"wraith_dupe_check": "animation.help_bubble.wraith_duplication_check"
			},
			"scripts": {
				"animate": [
					{ "beast_dupe_check": "q.property('ldz:bubble_type') == 'beast'" },
					{ "mystic_dupe_check": "q.property('ldz:bubble_type') == 'mystic'" },
					{ "scourge_dupe_check": "q.property('ldz:bubble_type') == 'scourge'" },
					{ "wraith_dupe_check": "q.property('ldz:bubble_type') == 'wraith'" }
				]
			},
			"properties": {
				"ldz:bubble_type": {
					"type": "enum",
					"values": [ "none", "beast", "mystic", "scourge", "wraith" ],
					"default": "none",
					"client_sync": true
				}
			}
		},
		"component_groups": {
			"instant_despawn": {
				"minecraft:instant_despawn": {}
			},
			"beast": {
				"minecraft:type_family": {
					"family": [
						"ldz",
						"help_bubble",
						"beast_bubble"
					]
				}
			},
			"mystic": {
				"minecraft:type_family": {
					"family": [
						"ldz",
						"help_bubble",
						"mystic_bubble"
					]
				}
			},
			"scourge": {
				"minecraft:type_family": {
					"family": [
						"ldz",
						"help_bubble",
						"scourge_bubble"
					]
				}
			},
			"wraith": {
				"minecraft:type_family": {
					"family": [
						"ldz",
						"help_bubble",
						"wraith_bubble"
					]
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"ldz",
					"help_bubble"
				]
			},
			"minecraft:collision_box": {
				"height": 0,
				"width": 0
			},
			"minecraft:physics": {
				"has_collision": false,
				"has_gravity": false
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"test": "has_damage",
								"value": "void"
							},
							"event": "despawn"
						},
						"deals_damage": false
					},
					{
						"cause": "all",
						"deals_damage": false
					}
				]
			}
		},
		"events": {
			"despawn": {
				"add": {
					"component_groups": [
						"instant_despawn"
					]
				}
			},
			"beast_bubble": {
				"set_property": {
					"ldz:bubble_type": "beast"
				},
				"add": {
					"component_groups": [
						"beast"
					]
				}
			},
			"mystic_bubble": {
				"set_property": {
					"ldz:bubble_type": "mystic"
				},
				"add": {
					"component_groups": [
						"mystic"
					]
				}
			},
			"scourge_bubble": {
				"set_property": {
					"ldz:bubble_type": "scourge"
				},
				"add": {
					"component_groups": [
						"scourge"
					]
				}
			},
			"wraith_bubble": {
				"set_property": {
					"ldz:bubble_type": "wraith"
				},
				"add": {
					"component_groups": [
						"wraith"
					]
				}
			}
		}
	}
}