{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "minecraft:magma_cube",
      "materials": { "default": "magma_cube" },
      "textures": {
        "default": "textures/entity/magma_cube/magmacube"
      },
      "geometry": {
        "default": "geometry.crl.magma_cube",
        "default_2x": "geometry.crl.magma_cube.2x",
        "default_4x": "geometry.crl.magma_cube.4x"
      },
      "animations": {
        "vertical_adjustment": "animation.crl.slime.vertical_adjustment",
        "move": "animation.crl.magma_cube.move",
        "idle": "animation.crl.magma_cube.idle"
      },
      "scripts": {
        "initialize": ["v.vertical_adjustment_weight = 3;"],
        "animate": ["vertical_adjustment", "move", "idle"],
        "pre_animation": [
          "variable.squish_factor = (query.previous_squish_value + (query.current_squish_value - query.previous_squish_value) * query.frame_alpha);",
          "variable.bounce = 1 / ((variable.squish_factor / (query.variant * 0.5 + 1)) + 1);",
          "variable.horizontal_scale_amount = variable.bounce;",
          "variable.vertical_scale_amount = (1 / variable.bounce);"
        ],
        "scaleX": "variable.horizontal_scale_amount",
        "scaleY": "variable.vertical_scale_amount",
        "scaleZ": "variable.horizontal_scale_amount"
      },
      "render_controllers": ["controller.render.crl.magma_cube"],
      "spawn_egg": {
        "texture": "spawn_egg",
        "texture_index": 20
      }
    }
  }
}
