Minecraft wiki entry for Breaking, associated text: If the tool has the blue Unbreakable tag under its enchantment and name, it does not break under any circumstances. In Java Edition, one can be acquired using the command /give: /give @s diamond_pickaxe{Unbreakable:1b}