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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈