跳到正文

Armor Tweaker

作者:rinart73

Allows users to modify armor and armor material stats, as well as create new armor materials.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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

  1. 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.
  2. Leather armor that will have material that is different from “leather” can’t be dyed. Same reason as above.
  3. 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.
  4. 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.

常见问题

Armor Tweaker 支持哪些 Minecraft 版本?

Armor Tweaker 支持 Minecraft Java 版 1.11.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Armor Tweaker 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

rinart73 的其他作品

查看全部 →