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

115 lines
4.1 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.shareables",
2021-10-08 12:59:03 +02:00
"description": "Defines a list of items the mob wants to share or pick up. Each item must have the following parameters:",
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Shareables",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"properties": {
"all_items": {
"type": "boolean",
"default": false,
"description": "A bucket for all other items in the game. Note this category is always least priority items.",
"title": "All Items"
},
"all_items_max_amount": {
"type": "integer",
"default": -1,
"description": "Maximum number of this item the mob will hold.",
"title": "All Items Maximum Amount"
},
"all_items_surplus_amount": {
"type": "integer",
"default": -1,
"description": "Number of this item considered extra that the entity wants to share.",
"title": "All Items Surplus Amount"
},
"all_items_want_amount": {
"type": "integer",
"default": -1,
"description": "Number of this item this entity wants to share.",
"title": "All Items Want Amount"
},
"items": {
"type": "array",
"description": "List of items that the entity wants to share",
"items": {
"type": "object",
"title": "Item",
"description": "An Item that the entity wants to share",
"additionalProperties": false,
"properties": {
"admire": {
"type": "boolean",
"description": "Mob will admire the item after picking up by looking at it. For this to happen the mob needs to have an Admire component and an Admire goal.",
"title": "Admire"
},
"barter": {
"type": "boolean",
"description": "Mob will barter for the item after picking it up. For this to work the mob needs to have a Barter component and a Barter goal.",
"title": "Barter"
},
2021-10-11 18:10:42 +02:00
"consume_item": {
"type": "boolean",
"description": "Determines whether the mob will consume the item or not.",
"title": "Consume Item"
},
2021-10-08 12:59:03 +02:00
"craft_into": {
"type": "string",
"description": "Defines the item this entity wants to craft with the item defined above. Should be an item name.",
"title": "Craft Into"
},
2021-10-11 18:10:42 +02:00
"item": {
"type": "string",
"description": "The name of the item",
"$ref": "../../../../general/item/identifier.json"
},
"item_aux": {
"type": "integer",
"description": "Aux value for the item.",
"title": "Item Aux"
},
"max_amount": {
"type": "integer",
"description": "Maximum number of this item the mob will hold.",
"title": "Maximum Amount"
},
2021-10-08 12:59:03 +02:00
"pickup_limit": {
"type": "integer",
"description": "Maximum number of this item the mob will pick up during a single goal tick.",
"title": "Pickup Limit"
},
"priority": {
"type": "integer",
"description": "Prioritizes which items the entity prefers. 0 is the highest priority.",
"title": "Priority"
},
"stored_in_inventory": {
"type": "boolean",
"description": "Determines whether the mob will try to put the item in its inventory if it has the inventory component and if it can't be equipped.",
"title": "Stored In Inventory"
},
"surplus_amount": {
"type": "integer",
"description": "Number of this item considered extra that the entity wants to share.",
"title": "Surplus Amount"
},
2021-10-11 18:10:42 +02:00
"want_amount": {
"type": "integer",
"description": "Number of this item this entity wants to have.",
"title": "Want Amount"
}
2021-10-08 12:59:03 +02:00
}
}
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"all_items": false,
"all_items_max_amount": -1,
"all_items_surplus_amount": -1,
"all_items_want_amount": -1,
"items": []
}
]
2021-10-08 12:59:03 +02:00
}