{
    "format_version": "1.20.50",
    "minecraft:entity": {
        "description": {
            "identifier": "hb_we:gold_t0_315_projectile",
            "is_spawnable": false,
            "is_summonable": true,
            "is_experimental": false
        },
        "component_groups": {
           "hb_we:mark_projectile": {
                "minecraft:skin_id": {
                    "value": 1
                }
            },
            "hb_we:despawn_projectile": {
                "minecraft:variant": {
                    "value": 1
                },
                "minecraft:spawn_entity": {
                    "entities": {
                        "single_use": true,
                        "min_wait_time": 0,
                        "max_wait_time": 0,
                        "spawn_sound": "plop",
                        "spawn_item": "hb_we:gold_t0_trident"
                    }
                },
                "minecraft:instant_despawn": {}
            },
            "hb_we:spawn": {
                "minecraft:collision_box": {
                    "height": 0,
                    "width": 0
                },
                "minecraft:timer": {
                    "time": 0.2,
                    "looping": false,
                    "time_down_event": {
                        "event": "hb_we:active",
                        "target": "self"
                    }
                }
            },
            "hb_we:active": {
                "minecraft:collision_box": {
                    "width": 0.1,
                    "height": 0.1
                }
            },
            "hb_we:despawn": {
                "minecraft:instant_despawn": {}
            }
        },
        "components": {
            "minecraft:variant": {
                "value": 0
            },
            
            "minecraft:type_family": {
                "family": [
                    "hb_we_trident_projectile"
                ]
            },
            "minecraft:damage_sensor": {
                "triggers": [
                    {
                        "cause": "all",
                        "deals_damage": false
                    }
                ]
            },
            "minecraft:projectile": {
                "on_hit": { "definition_event": {
                        "event_trigger": "hb_we:mark_projectile"
                    },
                    "stick_in_ground": {
                        "shake_time": 4
                    },
                    "impact_damage": {
                        "damage": 6,
                        "knockback": true
                    }
                },
                "liquid_inertia": 0.01,
                "power": 1.5,
                "gravity": 0.02,
                "stop_on_hurt": true,
                "anchor": 1,
                "should_bounce": false,
                "multiple_targets": false,
                "offset": [
                    0,
                    0.5,
                    0
                ]
            },
            "minecraft:physics": {},
            "minecraft:pushable": {
                "is_pushable": true,
                "is_pushable_by_piston": true
            }
        },
        "events": {
            "minecraft:entity_spawned": {
                "add": {
                    "component_groups": [
                        "hb_we:active"
                    ]
                }
            },
           "hb_we:mark_projectile": {
          
                "add": {
                    "component_groups": [
                        "hb_we:mark_projectile"
                    ]
                }
            },
            "hb_we:despawn_projectile": {
                "add": {
                    "component_groups": [
                        "hb_we:despawn_projectile"
                    ]
                }
            },
            "hb_we:spawn": {
                "add": {
                    "component_groups": [
                        "hb_we:spawn"
                    ]
                }
            },
            "hb_we:despawn": {
                "add": {
                    "component_groups": [
                        "hb_we:despawn"
                    ]
                }
            },
            "hb_we:active": {
                "add": {
                    "component_groups": [
                        "hb_we:active"
                    ]
                },
                "remove": {
                    "component_groups": [
                        "hb_we:spawn"
                    ]
                }
            }
        }
    }
}