Armor Tweaker
I discovered that there was no modification allowing to change armor characteristics (which I needed to weaken some armor pieces). Therefore, I created this mod.
Later I found out that there actually exists a mod for changing armor properties, but I believe my version is more flexible. Additionally, it uses .zs scripts from MineTweaker/CraftTweaker.
Modification Capabilities
Changing Armor Characteristics
You can configure individual armor items without affecting the entire material:
- Armor material (also automatically updates characteristics according to material properties)
- Protection amount (how many "shields" this armor provides)
- Durability
- Toughness
Configuring Material Properties
- Texture name (changes appearance, allowing to make iron armor look like golden)
- Maximum damage factor (affects armor durability)
- Protection amount for each armor part (feet, leggings, chestplate, helmet)
- Enchantability
- Toughness
- Repair material (you can specify which item will be used for repair)
Creating Custom Materials
Add your own armor materials, allowing to have iron boots with one enchantability and iron chestplate with another while maintaining the same appearance.
Important Notes
- If you assign the "minecraft:leather" texture to a material that is not leather, items will look like leather armor dyed white. This is not a bug, but a feature of Minecraft code. I could "fix" this, but it would require a core mod, which could cause compatibility issues.
- Leather armor with material different from "leather" cannot be dyed. Same reason as above.
- If you 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 cannot remove default repair material for vanilla armor. So if you want to prevent players from repairing diamond armor with diamonds, simply set repair material to nether star or something really rare.
Compatibility
- Other mods
- JEI (changing repair material will update anvil recipes in JEI)
Usage Examples
Changing Armor Characteristics:
import mods.vanilla.ItemArmor; var leatherHelmet = ItemArmor.get(<minecraft:leather_helmet>); //Changing material leatherHelmet.material = <armorMaterial:DIAMOND>; //Protection amount leatherHelmet.damageReduceAmount = 5; //Durability leatherHelmet.maxDamage = 200; //Armor toughness leatherHelmet.toughness = 2;
Changing Armor Material Properties:
var materialLeather = <armorMaterial:LEATHER>; //Changes appearance: materialLeather.textureName = "minecraft:gold"; //Modifier affecting durability of all armor parts materialLeather.maxDamageFactor = 10; //Protection amount for feet, leggings, chestplate, helmet materialLeather.damageReductionAmountArray = [2, 5, 6, 2]; //Affects chance of getting good enchantments on enchantment table materialLeather.enchantability = 25; //Armor toughness materialLeather.toughness = 3; //IItemStack that will be used for armor repair 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 display list of all armor with their characteristics using chat command:
/minetweaker armor items
And this command will show all armor materials with their properties:
/minetweaker armor materials
Installation
This mod requires CraftTweaker and MTLib.