mc-asset — Minecraft Pixel Asset Engine

v0.6.0
io.github.smile-minecraft/mc-asset Checked 1 day ago Published 16 days ago

Deterministic 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.

ParameterTypeDescription
path *stringRaster image path (PNG, JPEG, WebP).
minecraftVersionstringRelease Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults.
profilestringAsset profile; omitted means generic.
resourcePackVersionstringTarget 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.

ParameterTypeDescription
inputPath *stringReference raster image path (PNG, JPEG, WebP; never .mcpx).
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
presetstringProcessing preset: item, block, generic, gui, particle.
profilestringAsset profile; omitted means generic.
sizestringOutput 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.

ParameterTypeDescription
gridPathstringStandalone ASCII Grid file path. Exactly one of gridPath and gridText is required.
gridTextstringInline ASCII Grid document text. Exactly one of gridPath and gridText is required.
operationsstringOptional batch operations JSON text applied after the grid is parsed.
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
profilestringAsset 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.

ParameterTypeDescription
operations *arrayBatch operations applied in order in a single call; never split pixel work across hundreds of tool calls.
sourcePath *stringEditable .mcpx source path the batch runs against.
atomicbooleanDefault true: the first failure rolls the canvas back and the whole batch fails.
feedbackobjectOptional visual feedback for the batch; absent keeps the output fields and bytes exactly as before.
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit 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.

ParameterTypeDescription
sourcePath *stringEditable .mcpx source path to recolor.
familystringPalette family id to apply (mutually exclusive with material).
materialstringBuiltin material id to apply (mutually exclusive with family).
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
profilestringAsset profile; omitted means generic.
regionstringLimit the write to one region id; otherwise every layer is recolored.
selectionstringScope pixel writes with a selection expression.
stylestringStyle 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.

ParameterTypeDescription
outputDir *stringExplicit output directory receiving <stem>_<material>.png plus .mcpx per material.
sourcePath *stringEditable .mcpx source path to fan out from.
familiesarrayPalette family ids, one variant per entry, each starting from the pristine source.
materialsarrayBuiltin material ids, one variant per entry, each starting from the pristine source.
nameTemplatestringOutput filename template using {stem} and {name}; defaults to {stem}_{name}.
profilestringAsset profile; omitted means generic.
regionstringLimit the write to one region id.
selectionstringScope pixel writes with a selection expression.
stylestringStyle 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.

ParameterTypeDescription
path *stringAsset file path to validate (PNG).
mcmetaPathstringExplicit .mcmeta path used verbatim; a sibling file is never derived.
minecraftVersionstringRelease Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults.
profilestringAsset profile; omitted means generic.
resourcePackVersionstringTarget 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.

ParameterTypeDescription
inputPath *stringRaster image path (PNG, JPEG, WebP).
operationsstringOptional batch operations JSON text.
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
profilestringAsset 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.

ParameterTypeDescription
sourcePath *stringEditable .mcpx source path.
operationsstringOptional batch operations JSON text.
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
profilestringAsset 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.

ParameterTypeDescription
inputPath *stringRaster image or .mcpx path to transform.
cropstringCrop rectangle as x,y,w,h.
flipstringFlip axis: h or v.
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
padstringPadding as l,t,r,b.
padColorstringPad color as hex or "transparent".
profilestringAsset profile; omitted means generic.
resizestringTarget size as WxH.
resizeModestringResize sampling: nearest, box, or pixel-aware.
rotatenumberRotation in degrees: 90, 180, or 270.
selectionstringScope 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…
translatestringTranslation 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.

ParameterTypeDescription
inputPath *stringRaster image or .mcpx path to quantize.
colorsnumberTarget distinct color count.
keepColorsarrayReserved RGBA colors kept byte-identical.
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
palettestringExplicit palette source (builtin material id or .mcpx path).
profilestringAsset profile; omitted means generic.
selectionstringScope 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.

ParameterTypeDescription
inputPath *stringRaster image or .mcpx path to clean up.
allowRenderPassChangebooleanAllow fixes that change the render pass (alpha-affecting classes).
fixstringComma-separated fix classes to eliminate.
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
profilestringAsset profile; omitted means generic.
selectionstringScope 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.

ParameterTypeDescription
inputPath *stringRaster image or .mcpx path to inspect.
mode *stringPalette 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.

ParameterTypeDescription
mode *stringMaterial subcommand: list or show.
namestringMaterial 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.

ParameterTypeDescription
inputPath *stringRaster image or .mcpx path for seam analysis.
brightnessMatchstringBrightness-match axis: horizontal, vertical, or both.
edgeMatchstringEdge-match axis: horizontal, vertical, or both.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
previewstringTiled preview grid: 2x2, 4x4, or 8x8.
profilestringAsset 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.

ParameterTypeDescription
palette *stringBuiltin material name or .mcpx path for colors.
pattern *stringProcedural pattern: noise, clustered-noise, stripes, checker, gradient, brick, spots, veins, cracks, or grain.
seed *integerDeterministic seed: integer 0-4294967295.
size *stringOutput size: 16, 32, 64, 128, or WxH.
outputMcpxPathstringExplicit .mcpx output path. When omitted, the .mcpx text is embedded in the result instead of written to disk.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
profilestringAsset 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.

ParameterTypeDescription
mode *stringPreview mode: ascii, palette-map, scale, nine-slice, or contact-sheet.
backgroundstringcontact-sheet only: sheet background.
columnsintegercontact-sheet only: grid columns, 1 to 16.
inputPathstringRaster image or .mcpx path to preview; omitted in contact-sheet mode.
inputPathsarraycontact-sheet only: input image paths in sheet order.
mcmetaPathstringExplicit .mcmeta path used by nine-slice mode.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
pairModestringcontact-sheet only: pair two inputs per cell.
profilestringAsset profile; omitted means generic.
scalenumberUpscale 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.

ParameterTypeDescription
mode *stringAnimation subcommand: pack, sweep, unpack, reorder, resize, validate, or preview.
anglenumbersweep: band angle in degrees; only 45, 90, 135, and 180.
colorstringsweep: opaque #RRGGBB band colour.
columnsnumberGrid column count.
formatstringunpack: per-frame output format, mcpx by default.
frameSizestringFrame size as N or WxH.
framesintegersweep: frame count including the untouched first frame.
framesDirstringFrames directory for pack, reorder, resize, validate, preview.
frametimeintegersweep: ticks per frame of the generated document.
holdTicksintegersweep: ticks the first frame rests for.
inputPathstringsweep: still image to sweep; read only, never written.
layoutstringSheet layout: vertical, horizontal, or grid. Required for pack, unpack, and preview.
mcmetaPathstringExplicit .mcmeta path used by unpack and validate.
orderstringFrame order for reorder as i,j,...
outputDirstringExplicit output directory for unpack, reorder, and resize.
outputMcmetaPathstringsweep: optional companion .mcmeta output path.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
profilestringAsset profile; omitted means generic.
resizeModestringResize sampling: nearest, box, or pixel-aware.
sheetPathstringSprite sheet path used as unpack input.
widthintegersweep: 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.

ParameterTypeDescription
packPath *stringResource pack root directory.
dependencyPathsarrayDependency pack roots; the first entry has the highest priority.
minecraftVersionstringRelease Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults.
resourcePackVersionstringTarget resource-pack version as N or N.M (e.g. 84, 97.1); normalized to major.minor. Omitted means engine defaults.
vanillaPathstringVanilla 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.

ParameterTypeDescription
inputPath *stringRaster image or .mcpx path to scale as a GUI sprite.
size *stringTarget size: N or WxH.
mcmetaPathstringExplicit .mcmeta path for the scaling section, used verbatim; omitted means stretch.
minecraftVersionstringRelease Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults.
outputPngPathstringExplicit PNG output path. When omitted, the PNG bytes are embedded in the result instead of written to disk.
resourcePackVersionstringTarget 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.

ParameterTypeDescription
inputPath *stringEditable .mcpx source or raster image path to inspect; raster inputs read as a single base layer. Never written.
mode *stringInspect mode: structure for layers, regions, color usage, and overlaps; view for the composited PNG plus metadata.
cropView-only selection expression (atom string or JSON expression object) naming the crop; an empty match refuses with EMPTY_SELECTION.
scaleintegerView-only integer upscale factor 1-16 with nearest sampling; omitted means 1.

optimize_asset

Losslessly optimize explicit PNG inputs without rewriting sources.

ParameterTypeDescription
ancillarystringpreserve (default) copies metadata chunks and refuses sources whose chunks depend on the color layout; strip drops every ancillary chunk and lists them.
dryRunbooleanCompute the full report and write nothing.
inputDirstringDirectory containing PNG files to optimize (up to 4096 PNGs). Mutually exclusive with inputPaths.
inputPathsarrayPNG files to optimize (1 to 256 explicit paths; no globs, no directories). Mutually exclusive with inputDir. Never written.
modestringauto (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.
outputDirstringExisting directory receiving <input basename> for every input.
outputPathstringExplicit .png output path; only with exactly one input.
recursivebooleanWhen 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.

ParameterTypeDescription
inputPath *stringPNG path; read only, never written.
mode *stringanimation writes an animation section; gui a gui.scaling one.
bordergui nine_slice: border N or per-side object (required there).
forcebooleanReplace an existing outputPath file as a whole.
frameSizestringanimation: frame size N or WxH (required).
framesarrayanimation: playback order of indices and/or {index,time}; repeats and partial lists are valid. Omitted means all frames in order.
frametimeintegeranimation: ticks per frame, default 1.
holdTicksintegeranimation preset: ticks the first frame rests for, default 100.
interpolatebooleananimation: blend frames.
minecraftVersionstringRelease Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults.
mkdirbooleanCreate missing parent directories.
outputPathstringExplicit .mcmeta path. When omitted nothing is written and the document text is returned.
presetstringanimation: expand frames from a named timeline shape; conflicts with frames.
resourcePackVersionstringTarget resource-pack version as N or N.M (e.g. 84, 97.1); normalized to major.minor. Omitted means engine defaults.
stretchInnerbooleangui nine_slice only: stretch the inner bands.
typestringgui: 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.

ParameterTypeDescription
afterPath *string
beforePath *string
forceboolean
imagestring
mkdirboolean
outputPathstring
scaleinteger

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.

ParameterTypeDescription
mode *stringStyle subcommand: list, show, export-palette, create, lint, or audit.
baselinePathstringaudit only: baseline member, defaults to the first input.
categorystringlint only: item category id, so its threshold overrides apply; omitted means category-scoped rules do not run.
extendsstringcreate only: builtin id or .style.json path to inherit; defaults to vanilla.
familystringexport-palette only: family id, or all for every family.
forcebooleanReplace an existing output file as a whole (export-palette and create).
idstringcreate only: style id.
inputPathstringlint only: raster image path to measure and check; read only, never written.
inputPathsarrayaudit only: texture paths in audit order.
mkdirbooleanCreate missing parent directories (create).
namestringcreate only: display name; defaults to the id.
outputMcpxPathstringexport-palette only: explicit .mcpx output path. When omitted the palette text returns in the result and nothing is written.
outputPathstringcreate only: explicit .style.json output path.
overridesobjectcreate only: style sections merged into the new document, for example {"limits":{"maxColors":12}}.
pathsarraylist only: custom .style.json paths to report alongside the builtin presets; each one loads or is reported as unreadable.
stylestringshow 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.

ParameterTypeDescription
mode *stringPack subcommand: init, build, catalog, extract, check, or package.
allowMinecraftNamespacebooleaninit only: allow the reserved minecraft namespace; refused without it.
categorystringcatalog only: exact texture category filter.
checkMinecraftVersionstringcheck only: release version override.
descriptionstringinit only: pack description of 1 to 128 characters; defaults to the name.
dryRunbooleanbuild only: plan only, write nothing.
forcebooleanextract only: allow overwriting existing files.
includeFamiliesbooleancatalog only: include the mask family index.
jarPathstringextract only: caller-specified client jar path.
minecraftVersionstringinit only: release version 1.19.3 through 26.3 (for example "1.21.9" or "26.3").
mkdirbooleanextract only: create missing parent directories.
namestringinit only: project name; defaults to the directory name.
namespacestringinit only: resource namespace of the pack; lowercase letters, digits, underscore, dot, and dash.
outputDirstringextract only: directory receiving assets/ entries.
outputPathstringpackage only: explicit .zip output path.
pageintegercatalog only: page number.
pageSizeintegercatalog only: entries per page, at most 1000.
projectDirstringinit only: project directory to create the skeleton in.
projectPathstringbuild only: project document path (mc-asset.pack.json).
recipestringbuild only: a single recipe file; omitted reads every *.recipe.json.
resourcePackVersionstringinit only: resource-pack format N or N.M overriding the release version.
stylestringinit only: builtin style id or a .style.json path recorded in the project document; defaults to vanilla.
vanillaPathstringcatalog 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.

ParameterTypeDescription
id *stringParticle definition id (one path segment).
inputPath *stringFrames directory holding .png / .mcpx frames, or one .png / .mcpx frame file. Read only.
namespace *stringAsset namespace shared by the definition and its sprites.
outputDir *stringResource pack root; the definition lands under assets/<namespace>/particles/ and sprites under assets/<namespace>/textures/particle/.
forcebooleanReplace existing output files; without it an occupied path refuses the batch.
mkdirbooleanCreate missing parent directories.
texturePrefixstringSprite 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…

ParameterTypeDescription
atlasDirPathstringExplicit directory receiving one atlas .png per height/ascent group, each named from its texture location. Use instead of atlasPath when the spec mixes geometries.
atlasPathstringExplicit atlas .png output path for a spec with one height/ascent group. When omitted the PNG bytes embed as pngBase64.
forcebooleanReplace existing output files as a whole.
mkdirbooleanCreate missing parent directories.
outputPathstringExplicit font definition .json output path. When omitted the definition text returns in the result and nothing is written.
specobjectInline 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…
specPathstringFont spec JSON path; a relative icon path inside it resolves against the spec directory. Exactly one of specPath and spec.
tablePathstringExplicit 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.

ParameterTypeDescription
mode *stringinspect 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.
fillbooleantemplate: fill each face with its face color; default true. false leaves the face areas transparent.
inputPathstringvalidate or preview: texture raster path (PNG, JPEG, WebP).
layoutBuiltin layout id (player_wide/steve, player_slim/alex), a layout .json path, or an inline layout document. Defaults to player_wide.
outputMcpxPathstringtemplate: explicit .mcpx path. When omitted, the source text is returned in the report.
outputPngPathstringtemplate or preview: explicit .png path. When omitted, the image is returned as a standard image block.
sizeintegerpreview: 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…

ParameterTypeDescription
id *stringEquipment definition id; one or more [a-z0-9._-] path segments. The definition lands at assets/<namespace>/(models/)equipment/<id>.json.
layers *arrayOne entry per layers.<type>[] item, in draw order.
namespace *stringAsset namespace shared by the definition and its templates.
fillbooleanFill each template face with its face color; default true. false leaves the face areas transparent.
forcebooleanReplace existing output files; without it an occupied path refuses the batch.
minecraftVersionstringRelease Minecraft version 1.19.3 through 26.3 (for example "1.19.3", "1.21.4", "26.3"). Omitted means engine defaults.
mkdirbooleanCreate missing parent directories.
outputDirstringResource pack root receiving assets/. When omitted the definition text and each template (pngBase64, sourceText) are embedded and nothing is written.
resourcePackVersionstringTarget resource-pack version as N or N.M (e.g. 84, 97.1); normalized to major.minor. Omitted means engine defaults.
templatebooleanWrite 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.