Skip to main content
Glama
updateCraftingInterface.ts649 B
import {Bot} from 'mineflayer'; import {generateCraftableItems} from './generateCraftableItems.js'; /** * Update the crafting interface * @param {Bot} bot - The Mineflayer bot instance. Assume the bot is already spawned in the world. * * @return {void} */ export const updateCraftingInterface = (bot: Bot): void => { const skills = ['craft a new item', 'stop crafting']; const [description, craftables] = generateCraftableItems(bot); const interfaceObject = { title: 'Crafting Interface', description: description, additionalCraftableItems: craftables, skillNames: skills, }; bot.setInterface(interfaceObject); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/leo4life2/minecraft-mcp-http'

If you have feedback or need assistance with the MCP directory API, please join our Discord server