Patch skin
texel_patchApply a patch to a Texel skin spec to update, replace, add, or remove layers by id and edit palette, legend, or meta, then render the patched result as a review sheet.
Instructions
Apply a patch to a spec (update, replace, add or remove layers by id; change palette, legend or meta) and render the result like texel_render. Layers without an id first get "-" and keep it, so the next patch can use the same ids. Entries that cannot apply are skipped and reported. With "spec", returns the patched spec, the review and the sheet. With "file", writes the patched spec back to that file and returns only the review and the sheet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Instead of "spec": a .json spec file in the workspace, e.g. "skins/knight.json". Saves resending the whole spec on every call; texel_patch then edits the file in place. | |
| spec | No | A Texel skin spec (version 1) as a JSON object or JSON text. Format: texel://docs/spec, schema: texel://schema/skinspec.v1 | |
| patch | Yes | A patch ({ patch: [{ do: "update", id, set }, …] }) as a JSON object or JSON text. Format: texel://docs/spec, section "Patches". | |
| include | No | Extra outputs. "sheet" is the review image; "ascii" adds a text render for models without vision. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| art | Yes | ||
| file | No | ||
| name | Yes | ||
| next | Yes | ||
| spec | No | ||
| model | Yes | ||
| score | Yes | ||
| stats | Yes | ||
| issues | Yes | ||
| layout | Yes | Texture layout: player, zombie, humanoid (armor), skeleton, item… | |
| applied | Yes | ||
| skipped | Yes |