Started by
LazerUndefined
on
Topic category: Help with Minecraft modding (Java Edition)
I know that you can set durability to 0 for items and tools but it seems when you set the durability of armors to 0 makes it pop instantly, also I can't set the durability to -1. so how do I make a unbreakable armor?
I just had this issue too. And you're the only one who had a post about it, but appearently it was never resolved. How useful.
try set using "set damage of provided item stack to (number of max durability) " in the on armor tick update
but if you have a lot of people using the armor it might lag
Actually, I think you want to set damage to 0, but otherwise thatperson_'s suggestion should work decently well.
If you set damage to 0, it makes them unable to be enchanted via enchanting tables. The best way is to simply add a "Set NBT logic tag "Unbreakable" of provided itemstack to true, on the armour's tick.
I meant to set the damage to 0 every tick, not set the maximum durability to 0. But your method sounds like it might work better anyways.