Entity Documentation - minecraft:tameable
minecraft:tameable
defines the rules for an entity to be tamed by the player.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
probability | 1 | Decimal | The chance of taming the entity with each item use between 0.0 and 1.0, where 1.0 is 100% |
tame_event | not set | JSON Object | Event to initiate when the entity becomes tamed |
tame_items | not set | List | The list of items that can be used to tame the entity |
Example
"minecraft:tameable": {
"probability": 0.33,
"tame_items": "bone",
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
}
Vanilla entities examples
wolf
"minecraft:tameable": {
"probability": 0.33,
"tame_items": "bone",
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
}
Vanilla entities using minecraft:tameable
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈