{
    "format_version": "1.16.100",
    "minecraft:entity": {
        "description": {
            "identifier": "hog:stone_spear_thrown",
            "is_summonable": true,
            "is_experimental": false,
            "is_spawnable": false,
            "runtime_identifier": "minecraft:snowball"
        },
        "component_groups": {
          "pickup_time": {
            "minecraft:entity_sensor": {
              "sensor_range": 1,
              "event": "hog:give_spear",
              "event_filters": {
                "test": "is_family",
                "subject": "other",
                "value": "player"
              }
            }
          }
        },
        "components": {
            "minecraft:physics": {
            },
            "minecraft:pushable": {
              "is_pushable": false,
              "is_pushable_by_piston": true
            },
            "minecraft:collision_box": {
              "width": 0.25,
              "height": 0.25
            },
            "minecraft:hurt_on_condition": {
              "damage_conditions": [
                {
                  "filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
                  "cause": "lava",
                  "damage_per_tick": 4
                }
              ]
            },
            "minecraft:projectile": {
                "on_hit": {
                "impact_damage": {
                    "damage": 5,
                    "knockback": true,
                    "semi_random_diff_damage": false,
                    "destroy_on_hit": false,
                    "power_multiplier": 1
                },
                "stick_in_ground": {
                    "shake_time" : 0.0
                },
                "definition_event": {
                  "event_trigger": {
                    "event": "hog:pickup_time"
                  }
                }
                },
                "hit_sound": "item.trident.hit",
                "hit_ground_sound": "item.trident.hit_ground",
                "power": 2.5,
                "gravity": 0.25,
                "uncertainty_base": 1,
                "uncertainty_multiplier": 0,
                "anchor": 1,
                "should_bounce": true,
                "stop_on_hurt": true,
                "offset": [ 0, -0.1, 0 ]
            }
        },
        "events": {
          "hog:pickup_time": {
            "add": {
              "component_groups": [
                "pickup_time"
              ]
            }
          },
          "hog:give_spear":{
            "run_command": {
              "command": [
                "give @p hog:stone_spear",
                "kill @s"
              ]
            }
          }
        }
    }
}