minecraft:tameable for you with a switch.Get GodCraftOverview
minecraft:tameable is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets players tame the mob by giving it certain items. Pair the tame event with components like is_tamed or sittable.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
probability | Decimal | "1" | Chance of taming on each item use, from 0.0 to 1.0 (1.0 always works). |
tame_event | String | none | Event to run when the mob becomes tamed. |
tame_items | List | none | Items players can use to tame the mob. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:tameable": {
"probability": "1",
"tame_event": "",
"tame_items": {}
}
}