How do I create tools that can break only certain blocks and has a certain durability in minecraft 1.13.2?

I used this command: /give @p minecraft:iron_hoe{CanDestroy:["grass_block"]} 1 250, but it won't give the hoe with the certain durability. How do I make this work in 1.13.2?


the actual command you're looking for is the following;

give @p iron_hoe{CanDestroy:["grass_block"],Damage:<value>}

for <value>, place the amount of damage you want to have on it. if you have a specific durability value in mind, subtract that from the max durability the item has to start.