{
  "$id": "blockception.minecraft.behavior.entities.minecraft.ageable",
  "type": "object",
  "title": "Ageable",
  "description": "Adds a timer for the entity to grow up. It can be accelerated by giving the entity the items it likes as defined by feedItems.",
  "additionalProperties": false,
  "properties": {
    "drop_items": {
      "description": "List of items that the entity drops when it grows up.",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "$ref": "../../../../general/item/descriptor.json"
          }
        },
        {
          "type": "string",
          "$ref": "../../../../general/item/descriptor.json"
        }
      ],
      "title": "Drop Items"
    },
    "duration": {
      "type": "number",
      "default": 1200,
      "description": "Amount of time before the entity grows up, -1 for always a baby.",
      "title": "Duration"
    },
    "feed_items": {
      "description": "List of items that can be fed to the entity. Includes `item` for the item name and `growth` to define how much time it grows up by",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "$ref": "../../../../general/item/identifier.json"
              },
              {
                "type": "object",
                "properties": {
                  "growth": {
                    "type": "number"
                  },
                  "item": {
                    "$ref": "../../../../general/item/descriptor.json"
                  }
                }
              }
            ]
          }
        },
        {
          "type": "string",
          "$ref": "../../../../general/item/identifier.json"
        }
      ],
      "title": "Feed Items"
    },
    "grow_up": {
      "$ref": "../types/event_object.json",
      "description": "Event to run when this entity grows up.",
      "title": "Grow Up"
    },
    "transform_to_item": {
      "$ref": "../../../../general/item/descriptor.json",
      "title": "Transform To Item",
      "description": "The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue"
    },
    "interact_filters": {
      "$ref": "../../filters/filters.json",
      "title": "Interact Filters",
      "description": "List of conditions to meet so that the entity can be fed."
    }
  },
  "examples": [
    {
      "duration": 1200,
      "transform_to_item": "example"
    }
  ]
}
