Phoenix Ring, but mana version

I am trying to make a special mana ring. It gives 1000 to max mp, but when the user spends more than 1000 mp while using it, it breaks. It's unremovable too (except when breaks, of course). I saw the Yanfly tip to Phoenix Ring so I think it's possible, but I don't know how because I lack the java expertise. I even tried to adapt the tip to my idea using Auto Passive States and Buffs & States Core plugins but unsuccessful. About the unremovable part... Equip Core plugin has non-removable parameters, but only to types and not to specifics equips. Some help?

Original thread: https://forums.rpgmakerweb.com/threads/phoenix-ring-but-mana-version.112128/