mc-asset — Minecraft Pixel Asset Engine
v0.6.0Deterministic Minecraft pixel-art engine: textures, animation sheets, and pack validation.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
analyze_asset
Analyze a raster image (PNG, JPEG, WebP) and return a read-only report: dimensions, palette, predicted alpha classification, pixel-art characteristics, and processing recommendations. Reads only, never writes.
| Parameter | Type | Description |
|---|---|---|
path * | string | Raster image path (PNG, JPEG, WebP). |
minecraftVersion | string | Release Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults. |
profile | string | Asset profile; omitted means generic. |
resourcePackVersion | string | Target resource-pack version as N or N.M (e.g. 84, 97.1); normalized to major.minor. Omitted means engine defaults. |
pixelize_asset
Run a reference raster image through the deterministic pixelize pipeline and return PNG bytes and/or the editable .mcpx source. The input must be PNG, JPEG, or WebP, never .mcpx.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Reference raster image path (PNG, JPEG, WebP; never .mcpx). |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
preset | string | Processing preset: item, block, generic, gui, particle. |
profile | string | Asset profile; omitted means generic. |
size | string | Output size: 16, 32, 64, 128, or WxH. |
render_pixel_asset
Render a hand-authored ASCII Grid (inline text or a .grid file, exactly one) into PNG bytes and/or the editable .mcpx source, with an optional batch applied after parsing. For pixel-level authorship without per-pixel tool calls.
| Parameter | Type | Description |
|---|---|---|
gridPath | string | Standalone ASCII Grid file path. Exactly one of gridPath and gridText is required. |
gridText | string | Inline ASCII Grid document text. Exactly one of gridPath and gridText is required. |
operations | string | Optional batch operations JSON text applied after the grid is parsed. |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
profile | string | Asset profile; omitted means generic. |
apply_asset_operations
Apply a batch of Core pixel/layer/region operations to an editable .mcpx source in one call (atomic by default: the first failure rolls everything back). This is the batch-edit slot; never split pixel work across hundreds of per-pixel tool calls.
| Parameter | Type | Description |
|---|---|---|
operations * | array | Batch operations applied in order in a single call; never split pixel work across hundreds of tool calls. |
sourcePath * | string | Editable .mcpx source path the batch runs against. |
atomic | boolean | Default true: the first failure rolls the canvas back and the whole batch fails. |
feedback | object | Optional visual feedback for the batch; absent keeps the output fields and bytes exactly as before. |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
recolor_asset
Recolor an editable .mcpx source with a builtin material id, optionally limited to one region id, and return PNG bytes and/or the recolored source.
| Parameter | Type | Description |
|---|---|---|
sourcePath * | string | Editable .mcpx source path to recolor. |
family | string | Palette family id to apply (mutually exclusive with material). |
material | string | Builtin material id to apply (mutually exclusive with family). |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
profile | string | Asset profile; omitted means generic. |
region | string | Limit the write to one region id; otherwise every layer is recolored. |
selection | string | Scope pixel writes with a selection expression. |
style | string | Style preset id or .style.json path; defaults to vanilla. |
create_variants
Fan out one editable .mcpx source into per-material variants under an explicit output directory, each starting from the pristine source so reruns stay byte-identical.
| Parameter | Type | Description |
|---|---|---|
outputDir * | string | Explicit output directory receiving <stem>_<material>.png plus .mcpx per material. |
sourcePath * | string | Editable .mcpx source path to fan out from. |
families | array | Palette family ids, one variant per entry, each starting from the pristine source. |
materials | array | Builtin material ids, one variant per entry, each starting from the pristine source. |
nameTemplate | string | Output filename template using {stem} and {name}; defaults to {stem}_{name}. |
profile | string | Asset profile; omitted means generic. |
region | string | Limit the write to one region id. |
selection | string | Scope pixel writes with a selection expression. |
style | string | Style preset id or .style.json path; defaults to vanilla. |
validate_asset
Validate an asset file and return a read-only verdict with findings. Reads only, never writes; an optional explicit .mcmeta path is used verbatim.
| Parameter | Type | Description |
|---|---|---|
path * | string | Asset file path to validate (PNG). |
mcmetaPath | string | Explicit .mcmeta path used verbatim; a sibling file is never derived. |
minecraftVersion | string | Release Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults. |
profile | string | Asset profile; omitted means generic. |
resourcePackVersion | string | Target resource-pack version as N or N.M (e.g. 84, 97.1); normalized to major.minor. Omitted means engine defaults. |
import_asset
Decode a raster image (PNG, JPEG, WebP) into the Pixel Canvas with an optional batch applied after import. Returns PNG bytes and/or the editable .mcpx source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Raster image path (PNG, JPEG, WebP). |
operations | string | Optional batch operations JSON text. |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
profile | string | Asset profile; omitted means generic. |
build_asset
Build an editable .mcpx source into a texture or re-serialize the source, with an optional batch applied after parsing. Returns PNG bytes and/or the built source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
| Parameter | Type | Description |
|---|---|---|
sourcePath * | string | Editable .mcpx source path. |
operations | string | Optional batch operations JSON text. |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
profile | string | Asset profile; omitted means generic. |
transform_asset
Apply one spatial transformation (flip, rotate, crop, pad, resize, or translate) to a raster image or .mcpx source. Returns PNG bytes and/or the editable source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Raster image or .mcpx path to transform. |
crop | string | Crop rectangle as x,y,w,h. |
flip | string | Flip axis: h or v. |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
pad | string | Padding as l,t,r,b. |
padColor | string | Pad color as hex or "transparent". |
profile | string | Asset profile; omitted means generic. |
resize | string | Target size as WxH. |
resizeMode | string | Resize sampling: nearest, box, or pixel-aware. |
rotate | number | Rotation in degrees: 90, 180, or 270. |
selection | string | Scope operations to a selection expression: all, rect:x,y,w,h, region:id, alpha[:layer], color[:layer]:r,g,b,a, connected[:layer]:x,y, or a JSON expression object with op union|intersect|subtract|inve… |
translate | string | Translation offset as dx,dy. |
quantize_asset
Reduce the distinct colors of a raster image or .mcpx source to a target count or an explicit palette, with reserved colors kept byte-identical and an optional selection. Returns PNG bytes and/or the editable source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Raster image or .mcpx path to quantize. |
colors | number | Target distinct color count. |
keepColors | array | Reserved RGBA colors kept byte-identical. |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
palette | string | Explicit palette source (builtin material id or .mcpx path). |
profile | string | Asset profile; omitted means generic. |
selection | string | Scope operations to a selection expression: all, rect:x,y,w,h, region:id, alpha[:layer], color[:layer]:r,g,b,a, connected[:layer]:x,y, or a JSON expression object with op union|intersect|subtract|inve… |
cleanup_asset
Detect or eliminate isolated, noise, or outlier pixels in a raster image or .mcpx source, optionally scoped by a selection. Returns PNG bytes and/or the editable source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Raster image or .mcpx path to clean up. |
allowRenderPassChange | boolean | Allow fixes that change the render pass (alpha-affecting classes). |
fix | string | Comma-separated fix classes to eliminate. |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
profile | string | Asset profile; omitted means generic. |
selection | string | Scope operations to a selection expression: all, rect:x,y,w,h, region:id, alpha[:layer], color[:layer]:r,g,b,a, connected[:layer]:x,y, or a JSON expression object with op union|intersect|subtract|inve… |
palette_asset
Run the palette extract or inspect subcommand over an image and return a read-only report of unique colors, distribution, roles, or contrast. Reads only, never writes.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Raster image or .mcpx path to inspect. |
mode * | string | Palette subcommand: extract or inspect. |
material_asset
Run the material list or show subcommand and return a read-only report of builtin material definitions or one material's color ramps. Reads only, never writes.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Material subcommand: list or show. |
name | string | Material name to show; required for show. |
tile_asset
Analyze seams, edge repetition, and brightness continuity of a tileable image, with an optional tiled preview grid. Reads the input and returns a report, or writes a preview PNG only to the explicit output path; never invents filenames.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Raster image or .mcpx path for seam analysis. |
brightnessMatch | string | Brightness-match axis: horizontal, vertical, or both. |
edgeMatch | string | Edge-match axis: horizontal, vertical, or both. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
preview | string | Tiled preview grid: 2x2, 4x4, or 8x8. |
profile | string | Asset profile; omitted means generic. |
generate_asset
Generate a deterministic procedural texture from a named pattern, size, palette, and seed. Returns PNG bytes and/or the editable .mcpx source via explicit output paths or embedded artifacts; no force, mkdir, or in-place writes.
| Parameter | Type | Description |
|---|---|---|
palette * | string | Builtin material name or .mcpx path for colors. |
pattern * | string | Procedural pattern: noise, clustered-noise, stripes, checker, gradient, brick, spots, veins, cracks, or grain. |
seed * | integer | Deterministic seed: integer 0-4294967295. |
size * | string | Output size: 16, 32, 64, 128, or WxH. |
outputMcpxPath | string | Explicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
profile | string | Asset profile; omitted means generic. |
preview_asset
Preview an image in ascii, palette-map, scale, or nine-slice mode. Read-only except scale and nine-slice, which may write a PNG only to the explicit output path; never invents filenames.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Preview mode: ascii, palette-map, scale, nine-slice, or contact-sheet. |
background | string | contact-sheet only: sheet background. |
columns | integer | contact-sheet only: grid columns, 1 to 16. |
inputPath | string | Raster image or .mcpx path to preview; omitted in contact-sheet mode. |
inputPaths | array | contact-sheet only: input image paths in sheet order. |
mcmetaPath | string | Explicit .mcmeta path used by nine-slice mode. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
pairMode | string | contact-sheet only: pair two inputs per cell. |
profile | string | Asset profile; omitted means generic. |
scale | number | Upscale factor for scale mode. |
animate_asset
Run one animation subcommand (pack, unpack, reorder, resize, validate, or preview) over frames or a sprite sheet. Pack writes a sheet PNG only to the explicit output path and unpack, reorder, and resize write frames only to the explicit output directory; validate and preview return read-only reports.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Animation subcommand: pack, sweep, unpack, reorder, resize, validate, or preview. |
angle | number | sweep: band angle in degrees; only 45, 90, 135, and 180. |
color | string | sweep: opaque #RRGGBB band colour. |
columns | number | Grid column count. |
format | string | unpack: per-frame output format, mcpx by default. |
frameSize | string | Frame size as N or WxH. |
frames | integer | sweep: frame count including the untouched first frame. |
framesDir | string | Frames directory for pack, reorder, resize, validate, preview. |
frametime | integer | sweep: ticks per frame of the generated document. |
holdTicks | integer | sweep: ticks the first frame rests for. |
inputPath | string | sweep: still image to sweep; read only, never written. |
layout | string | Sheet layout: vertical, horizontal, or grid. Required for pack, unpack, and preview. |
mcmetaPath | string | Explicit .mcmeta path used by unpack and validate. |
order | string | Frame order for reorder as i,j,... |
outputDir | string | Explicit output directory for unpack, reorder, and resize. |
outputMcmetaPath | string | sweep: optional companion .mcmeta output path. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
profile | string | Asset profile; omitted means generic. |
resizeMode | string | Resize sampling: nearest, box, or pixel-aware. |
sheetPath | string | Sprite sheet path used as unpack input. |
width | integer | sweep: band width in pixels, 1 to 8. |
validate_pack_asset
Scan a resource pack root for namespace, model, texture, and atlas integrity and return a read-only verdict with findings. Reads only, never writes.
| Parameter | Type | Description |
|---|---|---|
packPath * | string | Resource pack root directory. |
dependencyPaths | array | Dependency pack roots; the first entry has the highest priority. |
minecraftVersion | string | Release Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults. |
resourcePackVersion | string | Target resource-pack version as N or N.M (e.g. 84, 97.1); normalized to major.minor. Omitted means engine defaults. |
vanillaPath | string | Vanilla assets directory used to resolve minecraft references. |
scale_gui_asset
Scale a GUI sprite to N or WxH with the mcmeta stretch/tile/nine_slice mapping. Returns PNG bytes and/or the scaled PNG via an explicit output path; never invents filenames.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Raster image or .mcpx path to scale as a GUI sprite. |
size * | string | Target size: N or WxH. |
mcmetaPath | string | Explicit .mcmeta path for the scaling section, used verbatim; omitted means stretch. |
minecraftVersion | string | Release Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults. |
outputPngPath | string | Explicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk. |
resourcePackVersion | string | Target resource-pack version as N or N.M (e.g. 84, 97.1); normalized to major.minor. Omitted means engine defaults. |
inspect_asset
Inspect an editable .mcpx source or raster image without writing: structure reports layers, regions, color usage, and overlaps; view returns the composited PNG plus metadata. Raster inputs read as a single base layer.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | Editable .mcpx source or raster image path to inspect; raster inputs read as a single base layer. Never written. |
mode * | string | Inspect mode: structure for layers, regions, color usage, and overlaps; view for the composited PNG plus metadata. |
crop | View-only selection expression (atom string or JSON expression object) naming the crop; an empty match refuses with EMPTY_SELECTION. | |
scale | integer | View-only integer upscale factor 1-16 with nearest sampling; omitted means 1. |
optimize_asset
Losslessly optimize explicit PNG inputs without rewriting sources.
| Parameter | Type | Description |
|---|---|---|
ancillary | string | preserve (default) copies metadata chunks and refuses sources whose chunks depend on the color layout; strip drops every ancillary chunk and lists them. |
dryRun | boolean | Compute the full report and write nothing. |
inputDir | string | Directory containing PNG files to optimize (up to 4096 PNGs). Mutually exclusive with inputPaths. |
inputPaths | array | PNG files to optimize (1 to 256 explicit paths; no globs, no directories). Mutually exclusive with inputDir. Never written. |
mode | string | auto (default) keeps the smallest exact encoding or the source; a named mode forces that encoding and fails with OPTIMIZE_MODE_NOT_EXACT when it cannot hold the pixels exactly. |
outputDir | string | Existing directory receiving <input basename> for every input. |
outputPath | string | Explicit .png output path; only with exactly one input. |
recursive | boolean | When scanning inputDir, recursively include subdirectories (default false). |
model_asset
Inspect, validate, create, apply, export, or preview Java models, or exchange a Blockbench Java Block/Item project: import-bbmodel returns model JSON plus PNG textures, export-bbmodel packs a model and PNGs into .bbmodel. Preview renders a diagnostic three-view PNG, one isometric panel when view is isometric and viewDirection picks the camera, or one panel for a game display slot (gui, firstperson_righthand, thirdperson_righthand, head, ground, fixed) with that display transform applied; lighting applies the fixed per-face shade factors selected by gui_light and tint/tints multiply tintindex f…
mcmeta_asset
Generate an animation or GUI scaling .mcmeta document from a PNG. Writes only to the explicit .mcmeta outputPath (never merges; force replaces the whole file); without outputPath it returns the text. The PNG is read only. Checks the document is valid, not how it looks in game.
| Parameter | Type | Description |
|---|---|---|
inputPath * | string | PNG path; read only, never written. |
mode * | string | animation writes an animation section; gui a gui.scaling one. |
border | gui nine_slice: border N or per-side object (required there). | |
force | boolean | Replace an existing outputPath file as a whole. |
frameSize | string | animation: frame size N or WxH (required). |
frames | array | animation: playback order of indices and/or {index,time}; repeats and partial lists are valid. Omitted means all frames in order. |
frametime | integer | animation: ticks per frame, default 1. |
holdTicks | integer | animation preset: ticks the first frame rests for, default 100. |
interpolate | boolean | animation: blend frames. |
minecraftVersion | string | Release Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults. |
mkdir | boolean | Create missing parent directories. |
outputPath | string | Explicit .mcmeta path. When omitted nothing is written and the document text is returned. |
preset | string | animation: expand frames from a named timeline shape; conflicts with frames. |
resourcePackVersion | string | Target resource-pack version as N or N.M (e.g. 84, 97.1); normalized to major.minor. Omitted means engine defaults. |
stretchInner | boolean | gui nine_slice only: stretch the inner bands. |
type | string | gui: scaling type (required). |
compare_assets
Compare same-size PNGs without modifying sources. Optional diagnostic image marks visible changes magenta and raw-only changes cyan; not a replacement asset.
| Parameter | Type | Description |
|---|---|---|
afterPath * | string | |
beforePath * | string | |
force | boolean | |
image | string | |
mkdir | boolean | |
outputPath | string | |
scale | integer |
style_asset
List the builtin style presets, show one resolved style (builtin id or a .style.json path with its extends chain), export a family palette as .mcpx, or write a new .style.json document. Style files are read-only inputs except for create and export-palette, which write only their explicit output path.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Style subcommand: list, show, export-palette, create, lint, or audit. |
baselinePath | string | audit only: baseline member, defaults to the first input. |
category | string | lint only: item category id, so its threshold overrides apply; omitted means category-scoped rules do not run. |
extends | string | create only: builtin id or .style.json path to inherit; defaults to vanilla. |
family | string | export-palette only: family id, or all for every family. |
force | boolean | Replace an existing output file as a whole (export-palette and create). |
id | string | create only: style id. |
inputPath | string | lint only: raster image path to measure and check; read only, never written. |
inputPaths | array | audit only: texture paths in audit order. |
mkdir | boolean | Create missing parent directories (create). |
name | string | create only: display name; defaults to the id. |
outputMcpxPath | string | export-palette only: explicit .mcpx output path. When omitted the palette text returns in the result and nothing is written. |
outputPath | string | create only: explicit .style.json output path. |
overrides | object | create only: style sections merged into the new document, for example {"limits":{"maxColors":12}}. |
paths | array | list only: custom .style.json paths to report alongside the builtin presets; each one loads or is reported as unreadable. |
style | string | show and export-palette: builtin style id or a .style.json path. |
pack_asset
Create a resource pack project: init writes the project document, the pack root metadata for the pinned release version, a 64x64 placeholder icon, and the assets directory skeleton in one preflighted batch. An occupied target refuses the whole batch and reports every conflicting path; nothing is overwritten. The project document is written once and then read only.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Pack subcommand: init, build, catalog, extract, check, or package. |
allowMinecraftNamespace | boolean | init only: allow the reserved minecraft namespace; refused without it. |
category | string | catalog only: exact texture category filter. |
checkMinecraftVersion | string | check only: release version override. |
description | string | init only: pack description of 1 to 128 characters; defaults to the name. |
dryRun | boolean | build only: plan only, write nothing. |
force | boolean | extract only: allow overwriting existing files. |
includeFamilies | boolean | catalog only: include the mask family index. |
jarPath | string | extract only: caller-specified client jar path. |
minecraftVersion | string | init only: release version 1.19.3 through 26.3 (for example "1.21.9" or "26.3"). |
mkdir | boolean | extract only: create missing parent directories. |
name | string | init only: project name; defaults to the directory name. |
namespace | string | init only: resource namespace of the pack; lowercase letters, digits, underscore, dot, and dash. |
outputDir | string | extract only: directory receiving assets/ entries. |
outputPath | string | package only: explicit .zip output path. |
page | integer | catalog only: page number. |
pageSize | integer | catalog only: entries per page, at most 1000. |
projectDir | string | init only: project directory to create the skeleton in. |
projectPath | string | build only: project document path (mc-asset.pack.json). |
recipe | string | build only: a single recipe file; omitted reads every *.recipe.json. |
resourcePackVersion | string | init only: resource-pack format N or N.M overriding the release version. |
style | string | init only: builtin style id or a .style.json path recorded in the project document; defaults to vanilla. |
vanillaPath | string | catalog only: vanilla tree directory containing assets/. |
particle_asset
Generate a particle definition (assets/<namespace>/particles/<id>.json) and its frame sprites (assets/<namespace>/textures/particle/<prefix>_<n>.png) from a frames directory or one PNG/.mcpx frame. Frames are ordered by UTF-8 file-name bytes, never readdir order; textures[] entries are namespaced paths without .png or the textures/particle/ prefix. Every target is checked before the first write, and an occupied path refuses the whole batch unless force is true. The tool cannot add new particle types; a pack only overrides existing ones.
| Parameter | Type | Description |
|---|---|---|
id * | string | Particle definition id (one path segment). |
inputPath * | string | Frames directory holding .png / .mcpx frames, or one .png / .mcpx frame file. Read only. |
namespace * | string | Asset namespace shared by the definition and its sprites. |
outputDir * | string | Resource pack root; the definition lands under assets/<namespace>/particles/ and sprites under assets/<namespace>/textures/particle/. |
force | boolean | Replace existing output files; without it an occupied path refuses the batch. |
mkdir | boolean | Create missing parent directories. |
texturePrefix | string | Sprite name prefix; defaults to the particle id. |
font_asset
Lay icon images (PNG or .mcpx) into grid-aligned bitmap font atlases and build the font definition (one bitmap provider per height/ascent group, plus optional space and reference providers) and the icon-to-character table. Each icon may set its own height and ascent; icons that share a pair share one atlas, and a spec with several pairs writes one atlas per pair. Icons are sorted by name and code points are allocated deterministically, so shuffled input produces byte-identical artifacts. Every chars row is padded to the column count with U+0000, ascent may be negative, and space advances are s…
| Parameter | Type | Description |
|---|---|---|
atlasDirPath | string | Explicit directory receiving one atlas .png per height/ascent group, each named from its texture location. Use instead of atlasPath when the spec mixes geometries. |
atlasPath | string | Explicit atlas .png output path for a spec with one height/ascent group. When omitted the PNG bytes embed as pngBase64. |
force | boolean | Replace existing output files as a whole. |
mkdir | boolean | Create missing parent directories. |
outputPath | string | Explicit font definition .json output path. When omitted the definition text returns in the result and nothing is written. |
spec | object | Inline font spec object with the same fields as the document (formatVersion, namespace, id, icons at least; height and ascent are top-level defaults or per-icon values). Exactly one of specPath and sp… |
specPath | string | Font spec JSON path; a relative icon path inside it resolves against the spec directory. Exactly one of specPath and spec. |
tablePath | string | Explicit icon table .json output path. When omitted the table text returns in the result. |
entity_asset
Inspect a Minecraft box-UV entity layout, write a template PNG and/or an editable .mcpx with one named region per face (optionally face-colored), validate a texture's size and report non-transparent pixels outside every face, or render four isometric views of the texture wrapped around the layout's parts. Builtin player wide/slim layouts plus caller-supplied layout documents; reads only except template and preview outputs.
| Parameter | Type | Description |
|---|---|---|
mode * | string | inspect is read-only; template writes a per-face PNG and/or .mcpx; validate checks a texture against a layout; preview renders four isometric views of the texture wrapped around the layout's parts. |
fill | boolean | template: fill each face with its face color; default true. false leaves the face areas transparent. |
inputPath | string | validate or preview: texture raster path (PNG, JPEG, WebP). |
layout | Builtin layout id (player_wide/steve, player_slim/alex), a layout .json path, or an inline layout document. Defaults to player_wide. | |
outputMcpxPath | string | template: explicit .mcpx path. When omitted, the source text is returned in the report. |
outputPngPath | string | template or preview: explicit .png path. When omitted, the image is returned as a standard image block. |
size | integer | preview: panel edge size, one of 64, 128, or 256; default 128. The image is 4 panels wide plus a label strip. |
equipment_asset
Generate an equipment definition (assets/<namespace>/models/equipment/<id>.json at pack format 42.0, assets/<namespace>/equipment/<id>.json from 46.0) plus one 64x32 armor or elytra texture template per layer entry at assets/<namespace>/textures/entity/equipment/<layer type>/<texture>.png. Layer types are checked against the target version's client enum, entries may be dyeable or use the player texture, and only humanoid, humanoid_leggings and wings have a verified texture layout (template false writes the definition alone). Every target is checked before the first write, an occupied path refu…
| Parameter | Type | Description |
|---|---|---|
id * | string | Equipment definition id; one or more [a-z0-9._-] path segments. The definition lands at assets/<namespace>/(models/)equipment/<id>.json. |
layers * | array | One entry per layers.<type>[] item, in draw order. |
namespace * | string | Asset namespace shared by the definition and its templates. |
fill | boolean | Fill each template face with its face color; default true. false leaves the face areas transparent. |
force | boolean | Replace existing output files; without it an occupied path refuses the batch. |
minecraftVersion | string | Release Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults. |
mkdir | boolean | Create missing parent directories. |
outputDir | string | Resource pack root receiving assets/. When omitted the definition text and each template (pngBase64, sourceText) are embedded and nothing is written. |
resourcePackVersion | string | Target resource-pack version as N or N.M (e.g. 84, 97.1); normalized to major.minor. Omitted means engine defaults. |
template | boolean | Write one texture template per layer entry; default true. Set false for a definition-only run, which is the only way to use a layer type without a verified layout. |