validate_minecraft_texture
Validate Minecraft sprite textures before shipping: checks square power-of-two frames, palette limits, seam quality, and .mcmeta sidecars for animations.
Instructions
Check a sprite against Minecraft's texture rules before it ships.
Always checks that frames are square and power-of-two. Optionally checks the declared
size, frame count and palette budget; if `tiling` is set, measures the wrap-around
seams of every frame; if `pack_root` is given, confirms an animated texture has its
``.png.mcmeta`` sidecar.
**The seam check** does not require the first and last columns to match - that is only
true of a texture with no variation, and would reject most real block art. It compares
the wrap transition against the texture's own interior column-to-column transitions and
reports the ratio, so a borderline verdict can be judged rather than taken on faith.
`warn_ratio` / `error_ratio` set where "suspect" and "seam" begin.
Returns a ``workflow_manifest.v1`` manifest (kind ``validation``) whose `validation`
block is ``{passed, checks, errors, warnings}``, plus per-frame seam measurements
under `tiling` when the seam check ran.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tiling | No | Default: false. | |
| category | No | ||
| filename | Yes | ||
| namespace | No | Default: "minecraft". | minecraft |
| pack_root | No | ||
| warn_ratio | No | Default: 2.0. | |
| error_ratio | No | Default: 4.0. | |
| texture_name | No | ||
| texture_size | No | ||
| expected_frames | No | ||
| max_palette_size | No |