
I noticed that there is no mod that allows you to change armor stats (which I needed to nerf some armor). So I made this.
Then I realized that there was actually a mod that allowed to change armor properties, but I believe that mine is more flexible. Also it uses MineTweaker/CraftTweaker .zs scripts.
What you can do with this mod
- Change armor stats (this changes will only apply to the certain item, not to the whole material and it's armor):
- Armor material (this will also replace armor stats to match material properties)
- Defense amount (how many 'shields' gives you this armor)
- Durability
- Toughness
- Change material stats:
- Texture name (this will change the visual appearance, so you can make your iron armor look like golden)
- Max damage factor (this modifier affects durability of the armor)
- Defense amount for every armor part (feet, legs, chest, head)
- Enchantability
- Toughness
- Repair material (you can specify which item will be used to repair armor)
- Add custom armor materials (so, for example, you can have iron boots with one enchantability and iron chest plate with another while still looking like iron armor)
Notes
- If you'll assign "minecraft:leather" texture name to any material that is not leather, items will look like leather armor that was dyed white. This is not a bug, but a result of Minecraft code. I could "fix" that, but then I need to make a coremod, which will result in possible compatibility issues.
- Leather armor that will have material that is different from "leather" can't be dyed. Same reason as above.
- If you'll assign "leather" material to any armor (and keep texture name "minecraft:leather"), this armor will look like leather armor and can be dyed.
- Currently you can replace repair material for all armor, but can't remove default repair material for vanilla armor. So if you want to prevent your players from fixing diamond armor with diamonds, just set repair material to the nether star or something really rare.
Compatibility
- Other mods
- JEI (changing repair material will update JEI anvil recipes)
Examples
Changing armor stats:
import mods.vanilla.ItemArmor; var leatherHelmet = ItemArmor.get(<minecraft:leather_helmet>); //Change material leatherHelmet.material = <armorMaterial:DIAMOND>; //Defence amount leatherHelmet.damageReduceAmount = 5; //Durability leatherHelmet.maxDamage = 200; //Armor toughness leatherHelmet.toughness = 2;
Changing armor material properties:
var materialLeather = <armorMaterial:LEATHER>; //Changes visual appearance: materialLeather.textureName = "minecraft:gold"; //Modifier that affects the durability of all armor parts materialLeather.maxDamageFactor = 10; //Defence amount for feet, legs, chest, head materialLeather.damageReductionAmountArray = [2, 5, 6, 2]; //Affects the chance of good enchantments on enchantment table materialLeather.enchantability = 25; //Armor toughness materialLeather.toughness = 3; //IItemStack that will be used to repair armor materialLeather.repairMaterial = <minecraft:feather>;
Creating new material:
import mods.vanilla.ArmorMaterial; //material name, texture name, durability modifier, damage reduction array, enchantability, toughness var magicIron = ArmorMaterial.add("MAGIC_IRON", "minecraft:gold", 20, [3, 6, 7, 3], 25, 1);
You can list all armor with their stats using this chat command:
/minetweaker armor items
And this one will list all armor materials with their properties:
/minetweaker armor materials
How to install
This mod requires CraftTweaker and MTLib.