minecraft-texture

v2026.09.24

Generate Minecraft item/block textures (16x16 / 32x32 PNG) from AI-generated art. Use when the user asks to create, convert, or post-process Minecraft textures — e.g. "生成一个原味鸡的 MC 材质" or "把这张图做成 16x16 的 Minecraft 材质" — including white-background removal and per-block color sampling. Pairs with the `imagegen` skill for generation and the `minecraft-modding` skill for using textures in mods.

GitHub
安装命令
npx skhub add hairyf/minecraft-texture
Markdown
SKILL.md

Minecraft Texture

Workflow modeled on the ai-kit texture tool (https://ai-kit.xingduansuzhao.com/texture): generate the texture with an image model, then post-process it into usable 16x16 / 32x32 pixel textures. The post-processing (white-background removal + color-block sampling) is implemented in scripts/mc_texture.py — no login or external service required.

Workflow

  1. Generate — use an image model (e.g. the imagegen skill) with a prompt that produces a flat front view of the item/block that fills the whole frame on a plain white background. Do NOT ask for grid lines — the pipeline converts white to transparency and samples color blocks directly. See best-practices-prompts.
  2. Post-process — run the pipeline script:
python scripts/mc_texture.py pipeline texture.png -o out/ --sizes 16,32

This replaces the white background with transparency, samples the dominant color of every block, and writes out/texture-16x16.png and out/texture-32x32.png. 3. Verify — run python scripts/mc_texture.py check out/texture-32x32.png for a programmatic check (near-white dots, transparency ratio; no vision model needed). Rerun with a tuned --tolerance / --white-cutoff if background edges bleed or thin details disappear.

References

TopicDescriptionReference
WorkflowFull generate → post-process → verify flow and placing textures into a mod/resource packcore-workflow
Script referenceCommands, options, tuning, troubleshootingcore-script
Prompt recipesPrompts for generating item/block textures that fill the frame on whitebest-practices-prompts
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/minecraft-texture

默认分支

main

最新提交

4f463c7

Tree SHA

73bcd03