Equippable
Creates a factory for Equippable behaviors using the given values, if not specified in the item's configuration.
Parameters
The equipment texture to use, or null for no texture.
The slot in which the item can be worn.
The amount of armor this item provides. Defaults to 0
. Used when armor
is not specified in the config.
The amount of armor toughness this item provides. Defaults to 0
. Used when armor_toughness
is not specified in the config.
The amount of knockback resistance this item provides. Defaults to 0
. Used when knockback_resistance
is not specified in the config.
The sound that is played when the item is equipped. Defaults to item.armor.equip_generic
. Used when equip_sound
is not specified in the config.
The entity types that are allowed to wear this item, or null for all entities. Used when allowed_entities
is not specified in the config.
Whether this item can be dispensed from a dispenser. Defaults to true
. Used when dispensable
is not specified in the config.
Whether this item can be swapped with other items in the same slot. Defaults to true
. Used when swappable
is not specified in the config.
Whether this item will be damaged when the wearing entity is damaged. Defaults to true
Used when damage_on_hurt
is not specified in the config.
Whether this item should be equipped when right-clicking. Defaults to true
. Used when equip_on_interact
is not specified in the config.