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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈