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:
- Asset name: Points to the color palette texture
- Description: The text shown in-game when hovering over trimmed armor
- Override armor materials: Optional per-armor-type color overrides (e.g., different colors for netherite vs. iron armor)
Basic Usage
This creates a trim material file at data/<namespace>/trim_material/ruby.json.
Material with Armor Overrides
Some materials look different depending on the base armor material. For example, netherite armor uses a darker variant:
You can also set multiple overrides at once:
Generated JSON
A trim material generates JSON like this:
With armor overrides:
Trim Patterns
Trim patterns define the visual design applied to armor. Each pattern specifies:
- Asset ID: Points to the pattern texture model
- 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 a trim pattern file at data/<namespace>/trim_pattern/stripes.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
