106 lines
3.9 KiB
JSON
106 lines
3.9 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "blockception.minecraft.behaviour.entities.1.16.100.minecraft.shareables",
|
|
"description": "Defines a list of items the mob wants to share or pick up. Each item must have the following parameters:",
|
|
"type": "object",
|
|
"title": "Shareables 1.16.100",
|
|
"additionalProperties": false,
|
|
"required": [],
|
|
"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 max 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",
|
|
"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"
|
|
},
|
|
"consume_item": {
|
|
"type": "boolean",
|
|
"description": "Determines whether the mob will consume the item or not.",
|
|
"title": "Consume item"
|
|
},
|
|
"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"
|
|
},
|
|
"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": "Max amount"
|
|
},
|
|
"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"
|
|
},
|
|
"want_amount": {
|
|
"type": "integer",
|
|
"description": "Number of this item this entity wants to have.",
|
|
"title": "Want amount"
|
|
}
|
|
}
|
|
},
|
|
"title": "TODO title"
|
|
}
|
|
}
|
|
}
|