Description
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.
AD
Become Premium to remove Ads!
What means Verified?
-
Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
-
Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
-
Security: The mod should not contain any malicious code or attempts to steal personal information.
-
Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
-
Originality: The mod should be original and not a copy of someone else's work.
-
Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
-
Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
-
License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
-
Documentation: The mod should come with clear and detailed documentation on how to install and use it.
AD
Become Premium to remove Ads!
How to Install
Download Forge & Java
Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.
Prepare
Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.
Add Mods
Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder
Enjoy
You are now Ready. Re-start your Game and start Playing.