Minecraft:Armor trim definition: Difference between revisions
From SAS Gaming Wiki
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 26: | Line 26: | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}} The root object. | * {{nbt|compound}} The root object.<section begin="json format material" /> | ||
** {{nbt|string|asset_name}}: Suffix to be used in sprite names and [[Minecraft:translation key]]s. | ** {{nbt|string|asset_name}}: Suffix to be used in sprite names and [[Minecraft:translation key]]s. | ||
** {{nbt|compound|override_armor_assets}}: Asset name overrides for specific armor materials. Used in vanilla to select darker variants when the trim and armor have the same material. | ** {{nbt|compound|override_armor_assets}}: Asset name overrides for specific armor materials. Used in vanilla to select darker variants when the trim and armor have the same material. | ||
*** {{nbt|string|{{ph|equipment asset id}}}}: Suffix to be used in sprite names and [[Minecraft:translation key]]s for armor items with the corresponding <code>asset_id</code> specified in the {{cd|[[Minecraft:Data component format#equippable|equippable]]}} data component. | *** {{nbt|string|{{ph|equipment asset id}}}}: Suffix to be used in sprite names and [[Minecraft:translation key]]s for armor items with the corresponding <code>asset_id</code> specified in the {{cd|[[Minecraft:Data component format#equippable|equippable]]}} data component. | ||
** {{nbt|string}}{{nbt|list}}{{nbt|compound|description}}: Text component to use as the trim material's name. See [[Minecraft:Text component format]]. | ** {{nbt|string}}{{nbt|list}}{{nbt|compound|description}}: Text component to use as the trim material's name. See [[Minecraft:Text component format]].<section end="json format material" /> | ||
</div> | </div> | ||
| Line 38: | Line 38: | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}} The root object. | * {{nbt|compound}} The root object.<section begin="json format pattern" /> | ||
** {{nbt|string|asset_id}}: A [[Minecraft:resource location]] used as a prefix in sprite names and [[Minecraft:translation key]]s. | ** {{nbt|string|asset_id}}: A [[Minecraft:resource location]] used as a prefix in sprite names and [[Minecraft:translation key]]s. | ||
** {{nbt|boolean|decal}}: False for all vanilla trim patterns. | ** {{nbt|boolean|decal}}: False for all vanilla trim patterns. | ||
** {{nbt|string}}{{nbt|list}}{{nbt|compound|description}}: Text component to use as the trim pattern's name. See [[Minecraft:Text component format]]. | ** {{nbt|string}}{{nbt|list}}{{nbt|compound|description}}: Text component to use as the trim pattern's name. See [[Minecraft:Text component format]].<section end="json format pattern" /> | ||
</div> | </div> | ||
Latest revision as of 11:00, 23 July 2026
Trim materials and trim patterns define the tooltip and appearance of trimmed armor items.
Definition
Trim materials and patterns can be defined in Minecraft:data packs, as part of the directory structure below, or inline in the Template:Cd and Template:Cd data components.
JSON format
Trim material
Trim materials have the following format:
- Template:Nbt The root object.<section begin="json format material" />
- Template:Nbt: Suffix to be used in sprite names and Minecraft:translation keys.
- Template:Nbt: Asset name overrides for specific armor materials. Used in vanilla to select darker variants when the trim and armor have the same material.
- Template:Nbt: Suffix to be used in sprite names and Minecraft:translation keys for armor items with the corresponding
asset_idspecified in the Template:Cd data component.
- Template:Nbt: Suffix to be used in sprite names and Minecraft:translation keys for armor items with the corresponding
- Template:NbtTemplate:NbtTemplate:Nbt: Text component to use as the trim material's name. See Minecraft:Text component format.<section end="json format material" />
Trim pattern
Trim patterns have the following format:
- Template:Nbt The root object.<section begin="json format pattern" />
- Template:Nbt: A Minecraft:resource location used as a prefix in sprite names and Minecraft:translation keys.
- Template:Nbt: False for all vanilla trim patterns.
- Template:NbtTemplate:NbtTemplate:Nbt: Text component to use as the trim pattern's name. See Minecraft:Text component format.<section end="json format pattern" />
Template:Navbox Java Edition technical
Minecraft:de:Verzierungsdefinition Minecraft:ja:カスタム防具装飾 Minecraft:pt:Definição de enfeite de armadura Minecraft:zh:盔甲纹饰定义格式