{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "hoh_bht:light_grenade_proj",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "hoh_bht:spawn_shockwave": {
        "minecraft:spawn_entity": {
          "entities": {
            "min_wait_time": 0,
            "max_wait_time": 0,
            "spawn_entity": "hoh_bht:light_grenade",
            "num_to_spawn": 1,
            "single_use": true
          }
        },
        "minecraft:despawn": {
          "filters": {
            "all_of": [
              {
                "test": "is_riding",
                "operator": "=",
                "value": false
              }
            ]
          }
        }
      }
    },
    "components": {
      "minecraft:collision_box": {
        "width": 0.25,
        "height": 0.25
      },
      "minecraft:timer": {
        "time": 2,
        "looping": true,
        "time_down_event": {
          "event": "hoh_bht:impact",
          "target": "self"
        }
      },
      "minecraft:projectile": {
        "on_hit": { 
          "stick_in_ground": {
          "should_bounce": true
          }
        },
        "power": 2.0,
        "offset": [0, 2, 1],
        "gravity": 0.05,
        "anchor": 1,
        "inertia": 0.98,
        "angle_offset": 0,
        "hit_sound": "",
        "should_bounce": true
      },
      "minecraft:physics": {
        "has_gravity": true,
        "has_collision": true
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:damage_sensor": {
        "triggers": [
          {
            "deals_damage": false
          }
        ]
      },
      "minecraft:conditional_bandwidth_optimization": {
        "default_values": {
          "max_optimized_distance": 100,
          "max_dropped_ticks": 7,
          "use_motion_prediction_hints": true
        }
      }
    },
    "events": {
      "hoh_bht:impact": {
        "add": {
          "component_groups": ["hoh_bht:spawn_shockwave"]
        }
      }
    }
  }
}
