How to hide an unbreakable tag in an unbreakble item?
As shown on the wiki, you simply set HideFlags
to 4
on the NBT tag. This wasn't too easy to find. Thank you to ExpertCoder14 for finding the correct wiki page.
Example:
/give Dinnerbone minecraft:diamond_sword{HideFlags:4,Unbreakable:1b}
This will only hide the unbreakable tag.
Here is a cheat sheet:
Tooltip Section | HideFlags Value |
---|---|
Enchantments | 0 |
Modifiers (e.g. Attack Damage) | 2 |
Unbreakable | 4 |
Can Destroy | 8 |
Can Place | 16 |
Additional | 32 |
Dye | 64 |
All | 127 |