{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:slime",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
	  "scripts": {
			"animate": [
				"burning",
				"not_burning"
			]
		},
		"animations": {
			"burning": "controller.animation.burning",
			"not_burning": "controller.animation.not_burning"
		}
    },
    "component_groups": {
      "minecraft:slime_large": {
        "minecraft:collision_box": {
          "width": 2.08,
          "height": 2.08
        },
        "minecraft:health": {
          "value": 16,
          "max": 16
        },
        "minecraft:movement": {
          "value": 0.6
        },
        "minecraft:attack": {
          "damage": 4
        }
      },

      "minecraft:slime_medium": {
        "minecraft:collision_box": {
          "width": 1.04,
          "height": 1.04
        },
        "minecraft:health": {
          "value": 4,
          "max": 4
        },
        "minecraft:movement": {
          "value": 0.4
        },
        "minecraft:attack": {
          "damage": 2
        }
      },

      "minecraft:slime_small": {
        "minecraft:collision_box": {
          "width": 0.52,
          "height": 0.52
        },
        "minecraft:health": {
          "value": 1,
          "max": 1
        },
        "minecraft:movement": {
          "value": 0.3
        },
        "minecraft:attack": {
          "damage": 0
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/slime.json"
        }
      },

      "minecraft:slime_calm": {
        "minecraft:movement.jump": {
          "jump_delay": [ 0.5, 1.5 ]
        }
      },
      "minecraft:slime_aggressive": {
        "minecraft:movement.jump": {
          "jump_delay": [ 0.16, 0.5 ]
        }
      }
    },

    "components": {
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? query.variant : 0"
      },
      "minecraft:type_family": {
        "family": [ "slime", "monster", "mob" ]
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true,
        "avoid_water": true
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:movement.jump": {
        "jump_delay": [ 0.5, 1.5 ]
      },
      "minecraft:on_target_acquired": {
        "event": "minecraft:become_aggressive",
        "target": "self"
      },
      "minecraft:on_target_escape": {
        "event": "minecraft:become_calm",
        "target": "self"
      },
      "minecraft:nameable": {
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:behavior.slime_float": {
        "priority": 1,
        "jump_chance_percentage": 0.8,
        "speed_multiplier": 1.2
      },
      "minecraft:behavior.slime_attack": {
        "priority": 3
      },
      "minecraft:behavior.slime_random_direction": {
        "priority": 4,
        "add_random_time_range": 3,
        "turn_range": 360,
        "min_change_direction_time": 2.0
      },
      "minecraft:behavior.slime_keep_on_jumping": {
        "priority": 5,
        "speed_multiplier": 1.0
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 2,
        "entity_types": [
          {
            "filters": {
              "any_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "snowgolem"
                },
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "irongolem"
                }
              ]
            },
            "max_dist": 16
          }
        ],
        "must_see": true
      },
      "minecraft:physics": {
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      }
    },

    "events": {
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": [
            "minecraft:slime_calm"
          ]
        }
      },
      "minecraft:become_calm": {
        "add": {
          "component_groups": [
            "minecraft:slime_calm"
          ]
        }
      },
      "minecraft:become_aggressive": {
        "add": {
          "component_groups": [
            "minecraft:slime_aggressive"
          ]
        }
      }
    }
  }
}