Entity Documentation - minecraft:giveable
minecraft:giveable
defines sets of items that can be used to initiate events when used on the entity. The item will also be taken and placed in the entity's inventory.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
cooldown | 0.0 | Decimal | An optional cool down in seconds to prevent spamming interactions. |
items | not set | List | The list of items that can be given to the entity to place in their inventory. |
on_give | not set | JSON Object | Event to initiate when the correct item is given. |
Example
"minecraft:giveable": {
"triggers": {
"cooldown": 3.0,
"items": [
"bamboo",
"cake"
],
"on_give": {
"event": "minecraft:on_calm",
"target": "self"
}
}
}
Vanilla entities examples
panda
"minecraft:giveable": {
"triggers": {
"cooldown": 3.0,
"items": [
"bamboo",
"cake"
],
"on_give": {
"event": "minecraft:on_calm",
"target": "self"
}
}
}
Vanilla entities using minecraft:giveable
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for