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

34 lines
1.2 KiB
JSON
Raw Normal View History

2020-11-01 17:22:42 +01:00
{
2021-04-04 13:52:35 +02:00
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.giveable",
2020-11-01 17:22:42 +01: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",
"title": "Giveable 1.16.0",
"required": [],
"properties": {
"triggers": {
"description": "UNDOCUMENTATED",
"title": "UNDOCUMENTATED",
"properties": {
2021-05-18 23:32:44 +02:00
"cooldown": {
"type": "number",
"default": 0.0,
"description": "An optional cool down in seconds to prevent spamming interactions.",
"title": "Cooldown"
},
2020-11-01 17:22:42 +01:00
"items": {
"type": "array",
"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"
},
"title": "Properties"
},
2021-03-21 15:18:38 +01:00
"on_give": { "$ref": "../types/event.json", "description": "Event to fire when the correct item is given.", "title": "On Give" }
2020-11-01 17:22:42 +01:00
}
}
}
}