Перейти к основному содержанию

Item.ArmorParams

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

Index

Properties

optionalarmor

armor?: number = 0

Armor protection.

optionaldurability

durability?: number = 1

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

optionalisTech

isTech?: boolean = false

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

optionalknockbackResist

knockbackResist?: number = 0

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).

optionaltexture

texture?: string = “textures/logo.png”

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

type

type: ArmorType

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