Skip to main content

Tame Animal

The arc:on_tame_animal action type is triggered when a player tames an animal.

Action Data

When this action is triggered, the following action data is made available to be used by conditions and rewards:

Action Data TypeDescription
arc:entityRepresents an entity in the game, such as a player, mob, or item.

Example

The following example will rename the wolf closest to the player to "Spiky" every time they tame a wolf.

data/my_datapack/arc/rename_wolf_on_tame.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_tame_animal",
"conditions": [
{
"type": "arc:entity_type",
"entity_type": "minecraft:wolf"
}
],
"rewards": [
{
"type": "arc:command",
"command": "execute as @p[name=%player%] at @s run data modify entity @e[type=wolf,limit=1,sort=nearest] CustomName set value 'Spiky'"
}
]
}

Compatible Condition Types

The following condition types can be used with this action type:

Compatible Reward Types

The following reward types can be used with this action type: