{
  "format_version": "1.20.50",
  "minecraft:entity": {
    "description": {
      "identifier": "cc_alien:tnt_projectile",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false,
      "scripts": {
        "animate": [
          "despawn_controller"
        ]
      },
      "animations": {
        "despawn_controller": "controller.animation.cc_alien.tnt_projectile.despawn_controller"
      }
    },
    "components": {
      "minecraft:projectile": {
        "offset": [
          0.0,
          -1.5,
          0.0
        ],
        "on_hit": {
          "impact_damage": {
            "damage": [
              2,
              3
            ],
            "knockback": true
          },
          "particle_on_hit": {},
          "definition_event": {

            "affect_projectile": true,
            "event_trigger": {
              "event": "explode",
              "target": "self"
            }
          }
        },
        "anchor": 2,
        "gravity": 0.0,
        "hit_sound": "bullet.hit",
        "inertia": 1.0,
        "liquid_inertia": 1.0,
        "power": 3,
        "reflect_on_hurt": true,
        "uncertainty_base": 0.0,
        "uncertainty_multiplier": 0.0
      },
      "minecraft:physics": {},
      "minecraft:pushable": {},
      "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 80.0,
          "max_dropped_ticks": 10,
          "use_motion_prediction_hints": true
        }
      }
    },
    "component_groups": {
      "explode": {
        "minecraft:explode": {
          "fuse_length": [
            0.0,
            0.0
          ],
          "fuse_lit": true,
          "power": 3.0,
          "causes_fire": false,
          "destroy_affected_by_griefing": true,
          "breaks_blocks": true
        }
      }
    },
    "events": {
      "cc_alien:ufo_spawn":{
        "queue_command": {
          "command":"tp @s ~ ~-5 ~"
        }
      },
      "explode": {
        "add": {
          "component_groups": [
            "explode"
          ]
        }
      }
    }
  }
}