{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:pufferfish",
      "materials": { "default": "pufferfish" },
      "textures": {
        "default": "textures/entity/fish/pufferfish"
      },
      "geometry": {
        "default": "geometry.pufferfish.small",
        "mid": "geometry.pufferfish.mid",
        "large": "geometry.pufferfish.large"
      },
      "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": [
          "general"
        ]
      },
      "animations": {
        "flop": "animation.pufferfish.flop",
        "swim": "animation.pufferfish.swim",
        "general": "controller.animation.fish.general"
      },
      "render_controllers": [
        { "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
      }
    }
  }
}