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

44 lines
1.5 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.giveable",
2021-10-08 12:59:03 +02:00
"additionalProperties": false,
"description": "Defines sets of items that can be used to trigger events when used on this entity. The item will also be taken and placed in the entity's inventory.",
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Giveable",
2021-10-08 12:59:03 +02:00
"properties": {
"triggers": {
"description": "Defines sets of items that can be used to trigger events when used on this entity. The item will also be taken and placed in the entity's inventory.",
"title": "Triggers",
"type": "object",
"additionalProperties": false,
"properties": {
"cooldown": {
"type": "number",
"default": 0.0,
"description": "An optional cool down in seconds to prevent spamming interactions.",
"title": "Cooldown"
},
"items": {
"type": "array",
"title": "Properties",
"description": "The list of items that can be given to the entity to place in their inventory.",
"items": {
"description": "An items that can be given to the entity to place in their inventory.",
"$ref": "../../../../general/item/identifier.json",
"title": "Properties"
}
},
2021-10-11 18:10:42 +02:00
"on_give": {
"$ref": "../types/event.json",
"description": "Event to fire when the correct item is given.",
"title": "On Give"
}
2021-10-08 12:59:03 +02:00
}
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"triggers": {}
}
]
2021-10-08 12:59:03 +02:00
}