{
	"format_version": "1.10.0",
	"minecraft:client_entity": {
		"description": {
			"identifier": "ldz:ender_mystic",
			"materials": {
				"default": "entity_alphatest",
				"emissive": "warden_bioluminescent_layer"
			},
			"textures": {
				"default": "textures/entity/ender_mystic/default",
				"emissive": "textures/entity/ender_mystic/emissive",
				"empty": "textures/empty"
			},
			"geometry": {
				"default": "geometry.ender_mystic",
				"mystic_beam": "geometry.player.mystic_beam"
			},
            "particle_effects": {
				"mystic_beam": "ldz:mystic_beam",
				"mystic_beam_end": "ldz:mystic_beam_end",
                "mystic_charge": "ldz:mystic_charge"
            },
			"sound_effects": {
				"beam": "mob.ender_mystic.beam",
				"charge": "mob.ender_mystic.charge"
			},
			"animations": {
				"ctrl.attack": "controller.animation.ender_mystic.attack",
				"ctrl.mystic_beam": "controller.animation.player.mystic_beam",
				"beam_on": "animation.ender_mystic.beam_on",
				"rings": "animation.ender_mystic.rings",
				"idle": "animation.ender_mystic.idle",
				"charge": "animation.ender_mystic.charge",
				"beam": "animation.ender_mystic.beam",
				"look": "animation.common.look_at_target",
				"end": "animation.ender_mystic.exit_beam"
			},
			"scripts": {
				"initialize": [
					"variable.is_first_person = 0;",
					"variable.has_beam = 1;"
				],
				"pre_animation": [
					"v.x_rotation = q.rotation_to_camera(0);",
					"v.beam_active = q.property('ldz:beam_state') > 0;",
					"v.show_beam = q.property('ldz:beam_state') == 2;"
				],
				"animate": [
					"ctrl.mystic_beam",
					"beam_on",
					"rings",
					"ctrl.attack",
					"look"
				]
			},
			"render_controllers": [
				"controller.render.ender_mystic",
				"controller.render.ender_mystic_emissive",
				{ "controller.render.player.mystic_beam": "v.beam_active" }
			],
			"spawn_egg": {
				"texture": "spawn_ender_mystic"
			}
		}
	}
}