{
	"format_version": "1.18.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "ldz:help_bubble",
			"min_engine_version": "1.10.0",
			"materials": {
				"default": "entity_alphatest"
			},
			"textures": {
				"default": "textures/entity/help_bubble/default"
			},
			"geometry": {
				"default": "geometry.help_bubble"
			},
			"animations": {
				"bob": "animation.help_bubble.bob",
				"in_front": "animation.help_bubble.in_front",
				"in_front_wraith": "animation.help_bubble.in_front_wraith",
				"scale_up": "animation.help_bubble.scale_up",
				"scale_down": "animation.help_bubble.scale_down",
				"ctrl.pos": "controller.animation.help_bubble.position"
			},
			"scripts": {
				"animate": [
					"bob",
					"ctrl.pos"
				],
				"initialize": [
					"v.threshold = 35;", // default
					"v.threshold = q.property('ldz:bubble_type') == 'mystic' ? 32 : v.threshold;",
					"v.threshold = q.property('ldz:bubble_type') == 'wraith' ? 35 : v.threshold;",
					"v.threshold = q.property('ldz:bubble_type') == 'scourge' ? 46 : v.threshold;",
					"v.threshold = q.property('ldz:bubble_type') == 'beast' ? 39 : v.threshold;"
				],
				"pre_animation": [
					"v.angle_from_body_rotation = math.abs(math.min_angle(q.rotation_to_camera(1) - q.body_y_rotation));"
				]
			},
			"render_controllers": [
				"controller.render.default"
			]
		}
	}
}