{
  "format_version": "1.21.0",
  "minecraft:entity": {
    "description": {
      "identifier": "projectile:shell_light_old",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": true,
      "runtime_identifier": "minecraft:arrow"
    },
    "component_groups": {
      "explode": {
        "minecraft:explode": {
          "fuse_length": 0,
          "fuse_lit": true,
          "power": 8,
          "causes_fire": false,
          "destroy_affected_by_griefing": true
        }
      },
      "timeDes": {
        "minecraft:timer": {
          "time": 0.05,
          "time_down_event": {
            "event": "despawn"
          }
        }
      },
      "despawn": {
        "minecraft:instant_despawn": {}
      }
    },
    "components": {
      "minecraft:ambient_sound_interval": {
        "event_name": "shell.whistle",
        "value": 0.0,
        "range": 1.0
      },
      "minecraft:projectile": {
        "on_hit": {
          "impact_damage": {
            "damage": 0,
            "knockback": false,
            "semi_random_diff_damage": false,
            "destroy_on_hit": false
          }
        },
        "hit_sound": "bow.hit",
        "power": 1.2,
        "gravity": 0.000,
        "anchor": 1,
        "liquid_inertia": 0.06,
        "should_bounce": false,
        "uncertainty_base": 1,
        "angle_offset": 0,
        "offset": [ 0, 0, 0 ]
      },
      "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 80.0,
          "max_dropped_ticks": 7,
          "use_motion_prediction_hints": true
        }
      },
      "minecraft:scale": {
        "value": 1.0
      },
      "minecraft:type_family": {
        "family": [
          "projectile",
          "misc",
          "custom_projectile"
          ]
      },
      "minecraft:collision_box": {
        "width": 1.5,
        "height": 1.5
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:physics": {
      },
      "minecraft:pushable": {
        "is_pushable": false,
        "is_pushable_by_piston": true
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "deals_damage": false
          }
          ]
      },
      "minecraft:health": {
        "value": 10000,
        "max": 10000
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "queue_command": {
              "command": [
                "scoreboard players operation @s petID = @e[c=1,family=!misc,family=custom_mob] petID"
                ]
            }
          },
          {
            "queue_command": {
              "command": [
                "tag @s add iframes"
                ]
            }
          }
        ]
      },
      "hit": {
        "sequence": [
          {
            "queue_command": {
              "command": [
                "scoreboard players remove @e[r=2,tag=!iframes] stamina 50",
                "tag @s add projectileHit"
                ]
            }
          },
          {
            "add": {
              "component_groups": [
                "explode"
                ]
            }
          },
          {
            "queue_command": {
              "command": [
                "event entity @s despawn"
                ]
            }
          }
          ]
      },
      "despawn": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "despawn"
                ]
            }
          }
          ]
      }
    }
  }
}