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