1.15.2 How do I hide Unbreakable under itemlore? How to change durability of Music Disc?

Discussion in 'Spigot Plugin Development' started by NocturnalDev, Feb 9, 2020.

  1. Hello,

    I have given my item the unbreakable flag, but now I want to hide it. How can I do this?

    Also, I would like to change the durability of my music disc and the code that I am using for my other items is working and the debug is working but for the disc it says 0.

    Thank you!
  2. Use addItemFlag and add the Hide Attributes flag.
    • Agree Agree x 1
  3. Got it working, thank you.

    How can I get the durability of the music disc since it's original durability is 0 and I had set it to 70. Does that mean that now in my texture pack if I make damage: 70 it will read?
    #3 NocturnalDev, Feb 9, 2020
    Last edited: Feb 9, 2020