Interface ArmorParams

Object used in Item.createArmorItem method to specify general armor item parameters.

interface ArmorParams {
    armor?: number;
    durability?: number;
    isTech?: boolean;
    knockbackResist?: number;
    texture?: string;
    type: ArmorType;
}

Properties

armor?: number

Armor protection.

0
durability?: number

Armor durability, the more it is, the more hits the armor will resist.

1
isTech?: boolean

If true, the item will not be added to creative.

false
knockbackResist?: number

Knockback resistance, that the player will have when wearing the following armor. It must be value from 0 (no knockback resistance) to 1 (full knockback resistance).

0
texture?: string

Relative path to the armor model texture from the mod assets directory.

"textures/logo.png"
type: ArmorType

Armor type, should be one of the helmet, chestplate, leggings or boots.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.