Topic category: Help with Minecraft modding (Java Edition)
Good day!
I've been trying to create armor and modify its durability. I know that under "Properties," I can change the durability under "Damage values." However, I want to create a piece of armor that has exactly 10% more durability than the regular leather armor.
For example, the leather chestplate has a durability of 80. I want the new armor piece to have a durability of 88. After my calculations, I end up with either 80 or 96 durability.
Since the durability value for armor is 16, I calculated it as follows:
80 / 16 = 5
96 / 16 = 6
However, I don't want the armor to have either 80 or 96 durability. In the end, I end up with a decimal value that I can't enter in the settings.
88 / 16 = 5.5
How can I ensure that the armor has exactly 10% more durability, which is 88 instead of 80?
Best regards.
Hello!
Unfortunately I don't think this is Possible.
You can use a very cop out method, by using Procedure to check if the Armor Durability is over 88, if so, then set the Armor Durability to 88,
other than that, I don't think there's any other Method to get that exact durability :(
Hmm, that's unfortunate.
Is there no way to adjust something through 'functions' or 'procedures'?
I wanted to create a kind of skins for the players on my server that increase durability by X% based on rarity (Common / Super Rare).
Is there a way to create an item so that when I craft it with, for example, a diamond helmet, only the appearance of the armor changes? Or do I have to create a new armor for each piece through recipes?
For instance, I've created a skin that can be applied to any type of armor, but then I have to create a new armor for iron, gold, diamond, etc., as the defense values are different.
Maybe there's a way to do it, but with My Current Knowledge, I don't it is possible unfortunately :(
I don't really know at other way of creating Different Armor Skin without creating a new Armor Set. Maybe You can achieve it using Custom Code, but that is way beyond My Current Skill Set unfortunately, sorry :(