Tameable
The Tameable mod was born from a curious question on a server - can you tame Ingresssus Voltaris (Death Singer)? Now you have the answer and a full-fledged tool for taming almost any creature in Minecraft!
This mod offers a flexible configurable system that allows you to determine exactly which mobs can be tamed and how they will behave afterwards.
Important note: Since the mod doesn't completely rewrite the artificial intelligence of creatures, some entities may exhibit unusual behavior.
How to use
For manual taming, use the command /tame <entity_UUID> <owner_UUID> (if you leave the owner UUID empty, the creature will become wild). Configuration is done in two main ways.
Data-driven configuration (recommended)
Create a file data/<entity_mod_id>/tameable/<entity_id>.json in your datapack or mod with the following content:
{
"tame": [
// Which items can be used for taming
"a single item",
"#or a tag"
],
"breed": [
// Which items to use for breeding. If left empty, taming items will be used
// Breeding amount: set value → food component → 1
"a single item",
"#or a tag",
{
// or an object
"item": "item or tag",
"heal": 1
}
],
// Taming chance
"chance": 0.1,
// Should attack what the player is attacking
"attack": true,
// Should protect the player from attackers
"protect": true,
"follow": {
// Should follow the player
"enable": true,
// Following speed
"speed": 1,
// Maximum distance to stop following
"minDistance": 10,
// Minimum distance to start following
"maxDistance": 2,
// Can leave the player
"leavesAllowed": false
}
}
Default values:
{
"tame": [
// This is the only required field
],
"breed": [
// Optional, will use taming item if field is missing or empty
"item or tag",
{
// or an object
"item": "item or tag",
"heal": 1
}
],
// Taming chance
"chance": 1,
"attack": false,
"protect": false,
"follow": {
// These values (except "enable") match the default wolf values
"enable": false,
"speed": 1,
"minDistance": 10,
"maxDistance": 2,
"leavesAllowed": false
}
}
Example:
Create a file data/minecraft/tameable/pillager.json with the following content to tame pillagers with apples and breed them using apples and stones:
{
"tame": [
"minecraft:apple"
],
"breed": [
"minecraft:apple",
{
"item": "minecraft:stone",
"heal": 5
}
],
"chance": 0.1,
"attack": true,
"protect": true,
"follow": {
"enable": true
}
}
Configuration via config file
WARNING: This method overwrites settings from datapacks!
Open the file .minecraft/config/tameable.json. If the file doesn't exist - create it.
To apply changes, use the /reload command in the game.
Configuration explanation:
{
"entity type here": {
// Object in datapack format, see above
}
// ... and so on
}
Example:
The following configuration allows taming pillagers with apples and breeding them using apples and stones:
{
"minecraft:pillager": {
"tame": [
"minecraft:apple"
],
"breed": [
"minecraft:apple",
{
"item": "minecraft:stone",
"heal": 5
}
],
"chance": 0.1,
"attack": true,
"protect": true,
"follow": {
"enable": true
}
}
}