Files
minecraft-bedrock-json-schemas/source/behaviour/entities/1.8.0/components/minecraft.ageable.json
2021-02-01 18:39:12 +01:00

79 lines
2.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "blockception.minecraft.behaviour.entities.1.8.0.minecraft.ageable",
"type": "object",
"title": "Ageable 1.8.0",
"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,
"required": [],
"properties": {
"duration": {
"type": "number",
"default": 1200.0,
"description": "Amount of time before the entity grows up, -1 for always a baby.",
"title": "Duration"
},
"feedItems": {
"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",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"item": {
"type": "string",
"description": "The item name that can be used to feed",
"title": "Item",
"$ref": "../../../../general/item/identifier.json"
},
"growth": {
"type": "integer",
"description": "The amount that counts for aging",
"title": "Growth"
}
}
},
{
"type": "string",
"$ref": "../../../../general/item/identifier.json"
}
],
"description": "TODO description: feedItems",
"title": "Feed Items"
},
"title": "Feed Items"
},
"drop_items": {
"type": "array",
"description": "List of items that the entity drops when it grows up.",
"items": {
"type": "string",
"description": "Item names",
"title": "Drop Items",
"$ref": "../../../../general/item/identifier.json"
},
"title": "Drop Items"
},
"grow_up": {
"description": "Event to run when this entity grows up",
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"event": {
"type": "string"
},
"target": {
"$ref": "../filters/types/base_subject.json"
}
}
}
],
"title": "TODO title"
}
}
}