{
    "format_version": "1.8.0",
    "minecraft:client_entity": {
        "description": {
            "identifier": "minecraft:tropicalfish",
            "materials": {
                "default": "tropicalfish",
                "UP_box": "entity_emissive_alpha"
            },
            "textures": {
                "UP_box": "models/entity/UP_box",
                "transparent": "models/entity/transparent",
                "typeA": "textures/entity/fish/tropical_a",
                "typeB": "textures/entity/fish/tropical_b",
                "aPattern1": "textures/entity/fish/tropical_a_pattern_1",
                "aPattern2": "textures/entity/fish/tropical_a_pattern_2",
                "aPattern3": "textures/entity/fish/tropical_a_pattern_3",
                "aPattern4": "textures/entity/fish/tropical_a_pattern_4",
                "aPattern5": "textures/entity/fish/tropical_a_pattern_5",
                "aPattern6": "textures/entity/fish/tropical_a_pattern_6",
                "bPattern1": "textures/entity/fish/tropical_b_pattern_1",
                "bPattern2": "textures/entity/fish/tropical_b_pattern_2",
                "bPattern3": "textures/entity/fish/tropical_b_pattern_3",
                "bPattern4": "textures/entity/fish/tropical_b_pattern_4",
                "bPattern5": "textures/entity/fish/tropical_b_pattern_5",
                "bPattern6": "textures/entity/fish/tropical_b_pattern_6"
            },
            "scripts": {
                "pre_animation": [
                    "variable.ZRot = !query.is_in_water ? Math.cos((query.time_stamp + query.frame_alpha) * 0.25) * 90 : 0.0;",
                    "variable.AnimationAmountBlend = Math.lerp(variable.AnimationAmountPrev, variable.AnimationAmount, query.frame_alpha);"
                ]
            },
            "geometry": {
                "typeA": "geometry.tropicalfish_a",
                "typeB": "geometry.tropicalfish_b",
                "target_rotate": "geometry.target_rotate_0",
                "block": "geometry.block_0"
            },
            "particle_effects": {

                "invisible": "invisible",
                "status_setup": "status_setup",
                "health_setup": "health_setup",
                "hostile_warnings": "hostile_warnings",
                "pos": "pos",
                "locate_line": "locate_line",
                "locate_mob": "locate_tropical_fish",
				"pos_egg": "pos_tropical_fish"
            },

            "animations": {
                "target_rotate": "animation.target_rotate",
                "camera_rotate": "animation.camera_rotate",

                "flop": "animation.tropicalfish.flop",
                "swim": "animation.tropicalfish.swim"
            },
            "animation_controllers": [
					{"1": "controller.animation.target_rotate_setup"}, 
					{"1.1": "controller.animation.camera_rotate_setup"}, 
					{"2": "controller.animation.invisible"}, 
					{"3": "controller.animation.status"}, 
					{"4": "controller.animation.health"}, 
					{"5": "controller.animation.hostile_warnings"}, 
					{"6": "controller.animation.pos"}, 
					{"locate": "controller.animation.locate"},
					
                {
                    "general": "controller.animation.fish.general"}
            ],
            "render_controllers": [
                "controller.render.target_rotate",
                "controller.render.block",
                "controller.render.tropicalfish"
            ],
            "spawn_egg": {
                "texture": "spawn_egg",
                "texture_index": 44
            }
        }
    }
}
