Entity Documentation - minecraft:entity_transformed
minecraft:entity_transformed
triggers an event call on an entity that transforms into another entity.
Parameters
Example
"minecraft:entity_transformed":{
}
Vanilla entities examples
zombie_pigman
"minecraft:entity_transformed": {
"sequence": [
// Transform baby pig to baby zombie pigman
{
"filters": {
"test": "has_component",
"subject": "other",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [
"minecraft:pig_zombie_baby",
"minecraft:pig_zombie_calm"
]
}
},
// Transform adult pig to adult zombie pigman
{
"filters": {
"test": "has_component",
"subject": "other",
"operator": "!=",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [
"minecraft:pig_zombie_adult",
"minecraft:pig_zombie_calm"
]
}
}
]
}
Vanilla entities using minecraft:entity_transformed
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