Entity Documentation - minecraft:is_tamed
minecraft:is_tamed
sets that this entity is currently tamed.
Important
minecraft:is_tamed
is a Boolean that is used to set the value for use in query functions like Molang and Filters. In order for the entity to have the desired affect, it will need to be paired with extra functionality.
The examples below will showcase both the property and how it works to create the desired effect on the entity.
Tip
minecraft:is_tamed
is used in conjunction with minecraft:tameable
Example
Plain
"minecraft:is_tamed":{
}
With Functionality
// Use minecraft:tameable to set up the ability for the entity to be tameable.
"minecraft:tameable": {
"probability": 0.75,
"tame_items": "chicken",
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
}
// Set up custom event to tag that it has been tamed
"minecraft:on_tame": {
"minecraft:is_tamed": {
}
}
Note
If the Entity will have the ability to toggle between the two states, you can define the property in a Component Group and use the add
and remove
capabilities to act as a toggle based on Events.
Vanilla entities examples
horse
"minecraft:is_tamed": {
}
Vanilla entities using minecraft:is_tamed
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for