{
  "format_version": "1.20.50",
  "minecraft:entity": {
    "description": {
      "identifier": "cc_alien:goo_projectile",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "scripts": {
        "animate": ["despawn_controller"]
      },
      "animations": {
        "despawn_controller": "controller.animation.cc_alien.gravity_projectile.despawn_controller"
      }
    },
    "components": {
      "minecraft:projectile": {
        "offset": [0.0, -0.1, 0.0],
        "on_hit": {
          "impact_damage": {
            "damage": [2, 3],
            "knockback": false,
            "destroy_on_hit": true
          },
          "stick_in_ground": {},
          "particle_on_hit": {}
        },
        "anchor": 2,
        "destroy_on_hurt": true,
        "gravity": 0.05,
        "hit_sound": "bullet.hit",
        "power": 1.7,
        "uncertainty_base": 0,
        "uncertainty_multiplier": 0
      },
      "minecraft:physics": {},
      "minecraft:pushable": {},
      "minecraft:balloonable": {
        "mass": 0.1
      },
      "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 80.0,
          "max_dropped_ticks": 10,
          "use_motion_prediction_hints": true
        }
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "cc_alien_droid"
                },
                {
                  "test": "is_variant",
                  "subject": "other",
                  "value": 4
                }
              ]
            },
            "add": {
              "component_groups": ["cc_alien:droid_l"]
            }
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "cc_alien_droid"
                },
                {
                  "test": "is_variant",
                  "subject": "other",
                  "value": 5
                }
              ]
            },
            "add": {
              "component_groups": ["cc_alien:droid_r"]
            }
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "cc_alien_alien"
                },
                {
                  "test": "is_variant",
                  "subject": "other",
                  "value": 4
                }
              ]
            },
            "add": {
              "component_groups": ["cc_alien:alien_l"]
            }
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "cc_alien_alien"
                },
                {
                  "test": "is_variant",
                  "subject": "other",
                  "value": 5
                }
              ]
            },
            "add": {
              "component_groups": ["cc_alien:alien_r"]
            }
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "cc_alien_boss"
                },
                {
                  "test": "is_variant",
                  "subject": "other",
                  "value": 4
                }
              ]
            },
            "add": {
              "component_groups": ["cc_alien:boss_l"]
            }
          },
          {
            "filters": {
              "all_of": [
                {
                  "test": "is_family",
                  "subject": "other",
                  "value": "cc_alien_boss"
                },
                {
                  "test": "is_variant",
                  "subject": "other",
                  "value": 5
                }
              ]
            },
            "add": {
              "component_groups": ["cc_alien:boss_r"]
            }
          }
        ]
      }
    },
    "component_groups": {
      "cc_alien:droid_l": {
        "minecraft:projectile": {
          "offset": [0.6, 0.8, 0.0],
          "on_hit": {
            "impact_damage": {
              "damage": [2, 2.5],
              "knockback": false,
              "destroy_on_hit": true
            },
            "stick_in_ground": {},
            "particle_on_hit": {}
          },
          "anchor": 2,
          "destroy_on_hurt": true,
          "gravity": 0.05,
          "hit_sound": "bullet.hit",
          "power": 1.6,
          "uncertainty_base": 0,
          "uncertainty_multiplier": 0
        }
      },
      "cc_alien:droid_r": {
        "minecraft:projectile": {
          "offset": [-0.6, 0.8, 0.0],
          "on_hit": {
            "impact_damage": {
              "damage": [2, 2.5],
              "knockback": false,
              "destroy_on_hit": true
            },
            "stick_in_ground": {},
            "particle_on_hit": {}
          },
          "anchor": 2,
          "destroy_on_hurt": true,
          "gravity": 0.05,
          "hit_sound": "bullet.hit",
          "power": 1.6,
          "uncertainty_base": 0,
          "uncertainty_multiplier": 0
        }
      },
      "cc_alien:alien_l": {
        "minecraft:projectile": {
          "offset": [0.6, -0.1, 0.0],
          "on_hit": {
            "impact_damage": {
              "damage": [1.8, 2],
              "knockback": false,
              "destroy_on_hit": true
            },
            "stick_in_ground": {},
            "particle_on_hit": {}
          },
          "anchor": 2,
          "destroy_on_hurt": true,
          "gravity": 0.05,
          "hit_sound": "bullet.hit",
          "power": 1.6,
          "uncertainty_base": 0,
          "uncertainty_multiplier": 0
        }
      },
      "cc_alien:alien_r": {
        "minecraft:projectile": {
          "offset": [-0.6, -0.1, 0.0],
          "on_hit": {
            "impact_damage": {
              "damage": [1.8, 2],
              "knockback": false,
              "destroy_on_hit": true
            },
            "stick_in_ground": {},
            "particle_on_hit": {}
          },
          "anchor": 2,
          "destroy_on_hurt": true,
          "gravity": 0.05,
          "hit_sound": "bullet.hit",
          "power": 1.6,
          "uncertainty_base": 0,
          "uncertainty_multiplier": 0
        }
      },
      "cc_alien:boss_l": {
        "minecraft:projectile": {
          "offset": [0.9, 0.6, 0.2],
          "on_hit": {
            "impact_damage": {
              "damage": [2, 3],
              "knockback": false,
              "destroy_on_hit": true
            },
            "stick_in_ground": {},
            "particle_on_hit": {}
          },
          "anchor": 2,
          "destroy_on_hurt": true,
          "gravity": 0.05,
          "hit_sound": "bullet.hit",
          "power": 1.7,
          "uncertainty_base": 0,
          "uncertainty_multiplier": 0
        }
      },
      "cc_alien:boss_r": {
        "minecraft:projectile": {
          "offset": [-0.9, 0.6, 0.2],
          "on_hit": {
            "impact_damage": {
              "damage": [2, 3],
              "knockback": false,
              "destroy_on_hit": true
            },
            "stick_in_ground": {},
            "particle_on_hit": {}
          },
          "anchor": 2,
          "destroy_on_hurt": true,
          "gravity": 0.05,
          "hit_sound": "bullet.hit",
          "power": 1.7,
          "uncertainty_base": 0,
          "uncertainty_multiplier": 0
        }
      }
    }
  }
}
