{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "furnicraft:random_baby",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false,
	  "scripts": {"animate": [ "burrow" ]},
	  "animations": {
	    "burrow": "controller.animation.procate_spawn"
         }
  },
    "component_groups": {
      "minecraft:baby_boy": {
        "minecraft:spawn_entity": [
          {
            "min_wait_time": 0,
            "max_wait_time": 0,
            "spawn_entity": "furnicraft:baby_boy",
            "spawn_event": "minecraft:entity_spawned",
            "single_use": true,
            "num_to_spawn": 1,
            "should_leash": false
          }
        ],
        "minecraft:movement": {
          "value": 0.0,
          "max": 0.0
        }
      },
      "minecraft:baby_girl": {
        "minecraft:spawn_entity": [
          {
            "min_wait_time": 0,
            "max_wait_time": 0,
            "spawn_entity": "furnicraft:baby_girl",
            "spawn_event": "minecraft:entity_spawned",
            "single_use": true,
            "num_to_spawn": 1,
            "should_leash": false
          }
        ],
        "minecraft:movement": {
          "value": 0.0,
          "max": 0.0 
        }
      }
    },
    "components": {
      "minecraft:type_family": {
        "family": [ "structures" ]
      },
      "minecraft:health": {
        "value": 1,
        "max": 1
      },
	  "minecraft:despawn": {
	    "filters": {
		  "all_of": [
		    { "test": "is_family", "subject": "self", "value": "structures" }
		  ]
		 }
	  },
      "minecraft:physics": {
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:baby_boy"
              ]
            }
          },
          {
            "weight": 6,
            "add": {
              "component_groups": [
                "minecraft:baby_girl"
              ]
            }
          }
        ]
      }
    }
  }
}