Skip to content

Material JSON

KnightMiner edited this page Oct 14, 2024 · 10 revisions

All JSONs that pertain to the same material must have the same file name and resource ID.

Definition

This section was moved to the SlimeKnights documentation.

Stats

This section was moved to the SlimeKnights documentation.

Traits

This section was moved to the SlimeKnights documentation.

Assets

Location: /assets/<resource_id>/models/tool_materials/

Keys

texture: Resource Location. A suffix for an untinted texture for the material. Note that this texture will still be loaded from the same namespace as the part texture, the texture namespace just gets included in the suffix. --Result: tconstruct:cobalt -> head_tconstruct_cobalt.png.
fallbacks: List of strings. Default suffixes the mod tries to load before it gives up and loads the default texture. Used in order from left to right.
--Known defaults: wood, rock, metal (heads); stick, bone (handles).
color: Color. The color to paint the material with.

Example

{
  "fallbacks": ["metal"],
  "color": "2376dd"
}
Clone this wiki locally