Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/ageable.json

78 lines
2.2 KiB
JSON
Raw Normal View History

2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id": "blockception.minecraft.behavior.entities.minecraft.ageable",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Ageable",
2021-10-08 12:59:03 +02:00
"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": [
2021-10-11 18:10:42 +02:00
{
"type": "array",
"items": {
"$ref": "../../../../general/item/identifier.json"
}
},
{
"type": "string",
"$ref": "../../../../general/item/identifier.json"
}
2021-10-08 12:59:03 +02:00
],
"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": [
2021-10-11 18:10:42 +02:00
{
"type": "array",
"items": {
"$ref": "../../../../general/item/identifier.json"
}
},
2021-10-08 12:59:03 +02:00
{
"type": "array",
"items": {
"type": "object",
2021-10-11 18:10:42 +02:00
"properties": {
"growth": {
"type": "number"
},
"item": {
"$ref": "../../../../general/item/identifier.json"
}
}
2021-10-08 12:59:03 +02:00
}
},
2021-10-11 18:10:42 +02:00
{
"type": "string",
"$ref": "../../../../general/item/identifier.json"
}
2021-10-08 12:59:03 +02:00
],
"title": "Feed Items"
},
2021-10-11 18:10:42 +02:00
"grow_up": {
"$ref": "../types/event_object.json",
2021-10-11 18:10:42 +02:00
"description": "Event to run when this entity grows up.",
"title": "Grow Up"
},
2021-10-08 12:59:03 +02:00
"transform_to_item": {
"type": "string",
2021-10-11 18:10:42 +02:00
"title": "Transform To Item",
2021-10-08 12:59:03 +02:00
"description": "The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue"
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"duration": 1200,
"transform_to_item": "example"
}
]
2021-10-08 12:59:03 +02:00
}