Items that lose durability command 1.21.1

How can I make a Stick that has 5 uses and loses 1 durability when you hit something with it
Continue to help post