{
    "format_version": "1.10.0",
    "minecraft:client_entity": {
        "description": {
            "identifier": "minecraft:pufferfish",
            "materials": {
                "default": "pufferfish",
                "UP_box": "entity_emissive_alpha"
            },
            "textures": {
                "UP_box": "models/entity/UP_box",
                "transparent": "models/entity/transparent",
                "default": "textures/entity/fish/pufferfish"
            },
            "geometry": {
                "default": "geometry.pufferfish.small",
                "mid": "geometry.pufferfish.mid",
                "large": "geometry.pufferfish.large",
                "target_rotate": "geometry.target_rotate_0",
                "block": "geometry.block_0"
            },
            "scripts": {
                "pre_animation": [
                    "variable.ZRot = !query.is_in_water ? Math.cos(query.time_stamp * 14.32) * 90 : 0.0;",
                    "variable.AnimationAmountBlend = Math.lerp(variable.AnimationAmountPrev, variable.AnimationAmount, query.frame_alpha);"
                ],
                "animate": [
                    "target_rotate",
                    "camera_rotate",
                    "locate",
					"hostile_warnings",
                    "invisible",
                    "status",
                    "numbers",
                    "pos",

                    "general"
                ]
            },
            "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_pufferfish",
				"pos_egg": "pos_pufferfish"
            },

            "animations": {
                "invisible": "controller.animation.invisible",
                "status": "controller.animation.status",
                "locate": "controller.animation.locate",
				"numbers": "controller.animation.health",
                "target_rotate": "animation.target_rotate",
                "camera_rotate": "animation.camera_rotate",
                "hostile_warnings": "controller.animation.hostile_warnings",
                "pos": "controller.animation.pos",

                "flop": "animation.pufferfish.flop",
                "swim": "animation.pufferfish.swim",
                "general": "controller.animation.fish.general"
            },
            "render_controllers": [
                "controller.render.target_rotate",
                "controller.render.block", {
                    "controller.render.pufferfish.small": "query.variant == 0"
                }, {
                    "controller.render.pufferfish.medium": "query.variant == 1"
                }, {
                    "controller.render.pufferfish.large": "query.variant == 2"
                }
            ],
            "spawn_egg": {
                "texture": "spawn_egg",
                "texture_index": 46
            }
        }
    }
}
