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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour