{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:magma_cube",
      "is_experimental": false,
      "is_summonable": true,
      "is_spawnable": true,
      "spawn_category": "misc"
    },
    "components": {
      "minecraft:behavior.nearest_attackable_target": {
        "must_see": true,
        "entity_types": [
          {
            "filters": {
              "AND": [
                {
                  "OR": [
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "player"
                    },
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "irongolem"
                    }
                  ]
                }
              ]
            }
          }
        ],
        "priority": 2
      },
      "minecraft:behavior.slime_attack": {
        "priority": 3
      },
      "minecraft:behavior.slime_float": {
        "priority": 1
      },
      "minecraft:behavior.slime_keep_on_jumping": {
        "priority": 5
      },
      "minecraft:behavior.slime_random_direction": {
        "priority": 4
      },
      "minecraft:breathable": {
        "breathes_lava": true,
        "suffocate_time": 0,
        "total_supply": 15
      },
      "minecraft:burns_in_daylight": {},
      "minecraft:can_climb": {},
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:damage_sensor": {
        "triggers": {
          "cause": "fall",
          "deals_damage": "no"
        }
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:experience_reward": {
        "on_death": {
          "expression": "query.last_hit_by_player ? query.variant : 0",
          "version": 5
        }
      },
      "minecraft:fire_immune": {},
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:jump.static": {},
      "minecraft:movement.jump": {
        "jump_delay": [
          2.0,
          6.0
        ]
      },
      "minecraft:nameable": {},
      "minecraft:navigation.walk": {
        "avoid_water": true,
        "can_path_over_water": true,
        "using_door_annotation": true
      },
      "minecraft:on_target_acquired": {
        "event": "minecraft:become_aggressive",
        "target": "self"
      },
      "minecraft:on_target_escape": {
        "event": "minecraft:become_calm",
        "target": "self"
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:type_family": {
        "family": [
          "magmacube",
          "monster",
          "mob"
        ]
      }
    },
    "component_groups": {
      "minecraft:slime_aggressive": {
        "minecraft:movement.jump": {
          "jump_delay": [
            0.667,
            2.0
          ]
        }
      },
      "minecraft:slime_calm": {
        "minecraft:movement.jump": {
          "jump_delay": [
            2.0,
            6.0
          ]
        }
      },
      "minecraft:slime_large": {
        "minecraft:area_attack": {
          "cause": "entity_attack",
          "damage_cooldown": 0.0,
          "damage_per_tick": 6,
          "damage_range": 0.15000000596046449,
          "entity_filter": {
            "any_of": [
              {
                "subject": "other",
                "test": "is_family",
                "value": "player"
              },
              {
                "subject": "other",
                "test": "is_family",
                "value": "irongolem"
              }
            ]
          }
        },
        "minecraft:attack": {
          "damage": 6
        },
        "minecraft:collision_box": {
          "height": 2.08,
          "width": 2.08
        },
        "minecraft:health": {
          "max": 16,
          "value": 16
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/magma_cube.json"
        },
        "minecraft:movement": {
          "value": 0.75
        },
        "minecraft:variant": {
          "value": 4
        }
      },
      "minecraft:slime_medium": {
        "minecraft:area_attack": {
          "cause": "entity_attack",
          "damage_cooldown": 0.0,
          "damage_per_tick": 4,
          "damage_range": 0.15000000596046449,
          "entity_filter": {
            "any_of": [
              {
                "subject": "other",
                "test": "is_family",
                "value": "player"
              },
              {
                "subject": "other",
                "test": "is_family",
                "value": "irongolem"
              }
            ]
          }
        },
        "minecraft:attack": {
          "damage": 4
        },
        "minecraft:collision_box": {
          "height": 1.02,
          "width": 1.04
        },
        "minecraft:health": {
          "max": 4,
          "value": 4
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/magma_cube.json"
        },
        "minecraft:movement": {
          "value": 0.66
        },
        "minecraft:variant": {
          "value": 2
        }
      },
      "minecraft:slime_small": {
        "minecraft:area_attack": {
          "cause": "entity_attack",
          "damage_cooldown": 0.0,
          "damage_per_tick": 3,
          "damage_range": 0.15000000596046449,
          "entity_filter": {
            "any_of": [
              {
                "subject": "other",
                "test": "is_family",
                "value": "player"
              },
              {
                "subject": "other",
                "test": "is_family",
                "value": "irongolem"
              }
            ]
          }
        },
        "minecraft:attack": {
          "damage": 2
        },
        "minecraft:collision_box": {
          "height": 0.52,
          "width": 0.52
        },
        "minecraft:health": {
          "max": 1,
          "value": 1
        },
        "minecraft:movement": {
          "value": 0.6
        },
        "minecraft:variant": {
          "value": 1
        }
      }
    },
    "events": {
      "minecraft:become_aggressive": {
        "add": {
          "component_groups": [
            "minecraft:slime_aggressive"
          ]
        }
      },
      "minecraft:become_calm": {
        "add": {
          "component_groups": [
            "minecraft:slime_calm"
          ]
        }
      },
      "spawn_small": {
        "add": {
          "component_groups": [
            "minecraft:slime_small",
            "minecraft:slime_calm"
          ]
        }
      },
      "spawn_large": {
        "add": {
          "component_groups": [
            "minecraft:slime_large",
            "minecraft:slime_calm"
          ]
        }
      },
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "trigger": "spawn_small",
            "weight": 1
          },
          {
            "trigger": "spawn_medium",
            "weight": 1
          },
          {
            "trigger": "spawn_large",
            "weight": 1
          }
        ]
      },
      "spawn_medium": {
        "add": {
          "component_groups": [
            "minecraft:slime_medium",
            "minecraft:slime_calm"
          ]
        }
      }
    }
  }
}