Trims
Armor trims are a customization system that allows players to add decorative patterns to their armor pieces. Trims consist of two components: materials (which determine the color/texture) and patterns (which determine the shape/design). Kore provides type-safe DSL builders for creating custom trim materials and patterns.
Trim Materials
Trim materials define the color palette and appearance when a trim is applied to armor. Each material specifies:
- Palette ID: The palette texture coloring the trim,
minecraft:trim/amethystreadstextures/palettes/trim/amethyst.pngfrom the resource pack - Description: The text shown in-game when hovering over trimmed armor
Basic Usage
This creates a trim material file at data/<namespace>/trim_material/ruby.json:
A custom palette takes its path relative to textures/palettes/:
The darker palette vanilla uses on armor of the same color as the trim, like gold_darker on gold armor, isn't set by the trim material: the resource pack's equipment asset swaps it through trim_palette_replacements.
Trim Patterns
Trim patterns define the visual design applied to armor. Each pattern specifies:
- Asset ID: The id the game builds the texture paths from,
minecraft:coastreadstextures/trims/entity/humanoid/coast.pngandtextures/trims/entity/humanoid_leggings/coast.pngfrom the resource pack. It defaults to the pattern's own id - Description: The text shown in-game when hovering over trimmed armor
- Decal: Whether the pattern should render as a decal overlay (like netherite patterns)
Basic Usage
This creates trim pattern files at data/<namespace>/trim_pattern/stripes.json and custom.json.
Pattern as Decal
Setting decal = true makes the pattern render as an overlay, which is useful for patterns that should appear on top of the base armor texture without replacing it (similar to how netherite trim patterns work):
Generated JSON
A trim pattern generates JSON like this:
With decal enabled:
See Also
- Chat Components - For trim description text formatting
- Tags - Organize trim materials and patterns into groups
External Resources
- Minecraft Wiki: Tutorial - Adding custom trims - Official guide for creating custom trims
- Minecraft Wiki: Armor - Trimming - Information about armor trimming mechanics
