{
  "format_version": "1.13.0",
  "minecraft:entity": {
    "description": {
      "identifier": "mutant:creeper_egg",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "drop_egg": {
        "minecraft:damage_sensor": [
          {
          
            "deals_damage": false
          
          }
        ],
        "minecraft:timer": {
          "looping": false,
          "time": 0.0,
          "time_down_event": {
            "event": "despawn"
          }
        },
        "minecraft:movement": {
          "value": 0.0
        },
        "minecraft:health": {
          "value": 1,
          "max": 1,
          "min": 0
        }
      },
      "hatched_creeper": {
        "minecraft:is_stunned": {
        },
        "minecraft:is_shaking": {
        },
        "minecraft:transformation": {
          "into": "mutant:wild_creeper_minion",
          "delay": 30
        }
      },
      "despawn": {
        "minecraft:damage_sensor": [
          {
          
            "deals_damage": false
          
          }
        ],
        "minecraft:health": {
          "value": 0,
          "max": 0,
          "min": 0
        },
        "minecraft:despawn": { 
        }
      }
    },

      "components": {
        "minecraft:experience_reward": {
          "on_death": "query.last_hit_by_player ? 5 : 0"
        },
        "minecraft:type_family": {
          "family": [ "creeper", "monster", "mob" ]
        },
        "minecraft:breathable": {
          "total_supply": 15,
          "suffocate_time": 0
        },
        "minecraft:nameable": {
        },
        "minecraft:collision_box": {
          "width": 0.4,
          "height": 0.5
        },

        "minecraft:timer": {
          "looping": false,
          "time": [600, 720],
          "time_down_event": {
            "event": "hatch"
          }
        },
        "minecraft:navigation.walk": {
        "can_path_over_water": true
        },
        "minecraft:movement.basic": {

        },
        "minecraft:jump.static": {
        },
        "minecraft:can_climb": {
        },
    
        "minecraft:loot": {
          "table": "loot_tables/mutant_entities/creeper_egg.json"
        },
        "minecraft:health": {
          "value": 15,
          "max": 15
        },
        "minecraft:hurt_on_condition": {
          "damage_conditions": [
            {
              "filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
              "cause": "lava",
              "damage_per_tick": 4
            }
          ]
        },
        "minecraft:attack": {
          "damage": 3
        },
        "minecraft:damage_sensor": {
          "triggers": [
            {
            "on_damage": {
              "filters": {
                "test": "is_family",
                "subject": "other",
                "value": "lightning"
              },
              "event": "minecraft:become_charged"
            },
            "deals_damage": false
            },

            {
              "on_damage": {
                "filters": {
                  "test": "is_family",
                  "subject": "other",
                  "value": "player"
                },
                "event": "despawn_with_egg"
              },
              "deals_damage": false
              }
          ]
        },
      
        "minecraft:spell_effects": {

          "add_effects": [
            {
              "effect": "resistance",
              "amplifier": 50,
              "visible": false,
              "ambient": false,
              "duration": 5
            }

           
          ]
        },
        "minecraft:behavior.hurt_by_target": {
          "priority": 2
        },
        "minecraft:physics": {
        },
        "minecraft:pushable": {
          "is_pushable": true,
          "is_pushable_by_piston": true
        }
      },

      "events": {
      
        "despawn_with_egg": {
          "add": {
            "component_groups": [
              "drop_egg"
            ]
          }
        },
        "hatch": {
          "add": {
            "component_groups": [
              "hatched_creeper"
            ]
          }
        },
        "despawn": {
          "add": {
            "component_groups": [
              "despawn"
            ]
          }
        },
        "minecraft:become_charged": {
      
          "add": {
            "component_groups": [
              "minecraft:charged_creeper"
            ]
          }
        }
      }
    }
  }
