{
    "format_version": "1.16.100",
    "minecraft:item": {
        "description": {
            "identifier": "hog:stone_dagger",
            "category": "equipment"
        },
        "components": {
            "minecraft:max_stack_size": 64,
            "minecraft:icon": {
                "texture": "stone_dagger"
            },
            "minecraft:display_name": {
                "value": "Stone Dagger"
            },
            "minecraft:enchantable": {
                "slot": "sword",
                "value": 7
            },
            "minecraft:weapon": {
                "on_hurt_entity": {
                    "event": "durability_update"
                }
            },
            "minecraft:creative_category": {
                "parent": "itemGroup.name.sword"
            },
            "minecraft:on_use": {
                "on_use": {
                    "event": "throw_dagger"
                }
            },
            "minecraft:hand_equipped": true,
            "tag:is_sword": {},
            "minecraft:repairable": {
                "repair_items": [
                    {
                        "items": ["minecraft:cobblestone"],
                        "repair_amount": "q.max_durability / 3"
                    },
                    {
                        "items": ["hog:stone_dagger"],
                        "repair_amount": "q.remaining_durability + q.remaining_durability * 0.05"
                    }
                ]
            },
            "minecraft:damage": 4
        },
        "events": {
            "durability_update": {
                "damage": {
                    "type": "durability",
                    "amount": 1,
                    "target": "self"
                }
            },
            "throw_dagger": {  
                "shoot": {
                    "projectile": "hog:stone_dagger",
                    "launch_power": 1,
                    "angle_offset": 0
                },
                "decrement_stack": {}
            }
        }
    }
}