I want to know if it is possible to add durability to items ?
I've 1 Prismarine Shard, and I want that to be broken after it breaks 1 block.
Is that possible ?
To detect the player right clicking you can use the method here. This will allow you execute a command when the player right clicks. In this case remove the
prismarine_shard item from the players inventory.
With a server plugin or mod you could also do this but that would require a great deal more work. Only a mod could add durability to the item icon in the player's inventory.