I was farming with a friend of mine, and he was gathering crops with a diamond sword. I told him not to use a diamond sword as it takes damage, but then he told me crops don’t damage your tools when broken.
What blocks don’t damage your tools when you break them, besides crops?
Crops damage your tools, and in fact, sugarcane specifically will shred your tools faster than anything because of the extremely fast harvest rate. Any particular tool has X durability, (X being an arbitrary number) and every block destroyed by the tool reduces X by 1. When X < 0 the tool breaks.
However, this information does not always apply if you’re playing on a modded server.
Source : Link , Question Author : Bugster , Answer Author : Joseph Lormand