The minecraft:weapon item component allows a player to attack another entity with greater damage and speed, while damaging the item.
This item component is usually combined with minecraft:damageable.
This is a relative number, not an absolute one. This means negative numbers are possible, and sometimes required to allow smaller numbers. This might change in the future.