minecraft:tamemount for you with a switch.Get GodCraftOverview
minecraft:tamemount is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Lets players tame a mount by riding it until it calms down, the way horses are tamed. Feeding it can speed this up.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
min_temper | integer | 0 | Lowest possible starting temper; higher temper means easier taming. |
max_temper | integer | 100 | Highest possible starting temper. |
feed_text | string | "" | Button text shown for feeding the mount. |
ride_text | string | "" | Button text shown for riding the mount. |
tame_event | ActorDefinitionTrigger | {"event":"","filters":{"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null},"target":"self"} | Event to run when the mount is tamed. |
attempt_temper_mod | integer | 5 | How much temper goes up each time a player tries to ride it. |
feed_items | MountTamingComponentFeedItem[] | none | Items that raise the mount's temper and make taming faster. |
auto_reject_items | MountTamingComponentRejectItem[] | none | Items that make the mount angry if a player holds them while interacting. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:tamemount": {
"min_temper": 0,
"max_temper": 100,
"feed_text": "",
"ride_text": "",
"tame_event": {
"event": "",
"filters": {
"AND": null,
"NOT": null,
"OR": null,
"all": null,
"all_of": null,
"any": null,
"any_of": null,
"none_of": null
},
"target": "self"
},
"attempt_temper_mod": 5,
"feed_items": [],
"auto_reject_items": []
}
}