User Tools

Site Tools


items:item_components:armor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
items:item_components:armor [2024/04/19 13:27] – removed - external edit (Unknown date) 127.0.0.1items:item_components:armor [2024/04/29 18:05] (current) – link to armor materials errorcraft
Line 1: Line 1:
 +====== minecraft:armor ======
 +The ''minecraft:armor'' item component allows its user to take less damage when worn.
 +This item component is usually combined with [[items:item_components:equipment|minecraft:equipment]] and [[items:item_components:damageable|minecraft:damageable]].
  
 +
 +===== Fields =====
 +^  Name  ^  Description  ^  Type  ^  Default Value  ^
 +| ''material'' | The material that determines the appearance and armor properties. | An [[items:armor_materials|armor material]] | |
 +| ''armor_type'' | The animal to target. When omitted, uses the default armor and texture location. | An optional [[#armor type]] | |
 +
 +
 +===== Example =====
 +<code javascript>
 +{
 +  "material": "minecraft:iron"
 +}
 +</code>
 +
 +
 +===== Armor Type =====
 +The animal to target for the armor.
 +It determines the location of the texture to use for rendering.
 +
 +
 +==== Values ====
 +^  Name  ^  Applies to  ^
 +| ''equestrian'' | Horse-like entities |
 +| ''canine'' | Wolves |