mc-craft_skill
- Python
9
GitHub Stars
2
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill bdambrosio/cognitive_workbench --skill mc-craft- Skill.md1.5 KB
- tool.py3.0 KB
Overview
This skill performs in-game crafting using the Mineflayer recipe system. It attempts to craft the requested Minecraft item using materials in the bot’s inventory and returns a clear success or failure result. The skill supports crafting counts and reports machine-readable output for automation.
How this skill works
The skill accepts a recipe or item name and an optional count, then queries the Mineflayer recipe system to perform the craft. It checks inventory materials and uses a crafting table if required (the table must be opened beforehand for table-only recipes). On completion it returns a structured result indicating success, the item crafted, and the number produced.
When to use it
- Automate creation of tools, blocks, or consumables from inventory materials
- Batch-crafting multiple items (using the count parameter)
- Integrating crafting into larger automation flows or bots
- When you have confirmed available materials via an inventory check
Best practices
- Run an inventory check (mc-inventory) before crafting to avoid wasted attempts
- Use exact Minecraft item names (e.g., "minecraft:stick") for reliable matching
- Open a crafting table (mc-open) first for recipes that require it
- Specify count only when you have enough materials to craft multiple items
- Handle failure responses programmatically to trigger material gathering or alternative actions
Example use cases
- Craft 4 sticks from wood using recipe: {"type":"mc-craft","recipe":"minecraft:stick","count":4}
- Produce a wooden pickaxe for mining: {"type":"mc-craft","value":"minecraft:wooden_pickaxe"}
- Batch-create torches or food items as part of a base setup routine
- Embed crafting step in automation scripts that gather materials, then craft the required items
FAQ
Provide a recipe or value with the Minecraft item name. Count is optional and defaults to 1.
What happens if materials are missing?
The skill returns a failure in the structured data. Use inventory checks to confirm materials before calling the skill.