Skip to main content
Glama

detect-gamemode

Identify the current game mode in Minecraft using the MCP server powered by Mineflayer API. Enables real-time interaction and control within the game environment for enhanced player experiences.

Instructions

Detect the gamemode on game

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'detect-gamemode' tool. It retrieves the bot instance and returns the current game mode from bot.game.gameMode wrapped in a response.
    async () => { const bot = getBot(); return factory.createResponse(`Bot gamemode: "${bot.game.gameMode}"`); }
  • Registration of the 'detect-gamemode' tool using factory.registerTool, specifying the tool name, description, empty input schema, and the handler function.
    factory.registerTool( "detect-gamemode", "Detect the gamemode on game", {}, async () => { const bot = getBot(); return factory.createResponse(`Bot gamemode: "${bot.game.gameMode}"`); } );
  • Empty input schema for the 'detect-gamemode' tool, indicating no input parameters are required.
    {},

Other Tools

Related Tools

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/yuniko-software/minecraft-mcp-server'

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