write_texture_mcmeta
Generate or repair an animated Minecraft texture's .png.mcmeta sidecar for an existing PNG to define frame timing, interpolation, and frame order.
Instructions
Write the <texture>.png.mcmeta sidecar for an animated texture.
``export_minecraft_texture`` writes this automatically for a multi-frame sprite; use
this to add or repair one beside a PNG that already exists.
Args:
texture_path: Path to the ``.png`` (the sidecar goes beside it, same name + .mcmeta).
frametime: Ticks each frame is shown for (1 tick = 50 ms).
interpolate: Blend between frames - smooth for gradients, blurry for pixel art.
frame_order: Optional playback order: frame indices (0-based) or
``{"index": i, "time": t}`` objects to hold individual frames longer.
frame_width, frame_height: Only for non-square frames, which the game otherwise
infers from the strip's width.
Returns a ``workflow_manifest.v1`` manifest (kind ``minecraft_texture``).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frametime | No | Default: 1. | |
| overwrite | No | Default: false. | |
| frame_order | No | ||
| frame_width | No | ||
| interpolate | No | Default: false. | |
| frame_height | No | ||
| texture_path | Yes |