The command: /give @p minecraft:shears{Unbreakable:1b} 1 would give you an unbreakable shears on other versions, but now this no longer does anything and just gives you normal shears.
This also stays true for other tools too.
If there is any other way to do this, please let me know.
Comments 2
This is the case because with the snapshot from two weeks ago, Item NBT data has been replaced by components.
I recommend reading through this article or watching this very well made video by a mojang employee, to clear up confusion.
Hello, letting you know 🙂