Skip to main content
Glama
zeeweebee

Minecraft MCP Server

by zeeweebee

detect-gamemode

Identify the current gamemode in Minecraft automatically using this tool. Designed for the MCP Server, it enables AI-driven characters to adapt actions based on detected gamemode, enhancing in-game interaction and functionality.

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's current game mode from bot.game.gameMode and returns it in a formatted response.
    async (): Promise<McpResponse> => { try { return createResponse(`Bot gamemode: "${bot.game.gameMode}"`); } catch (error) { return createErrorResponse(error as Error); } }
  • src/bot.ts:634-645 (registration)
    Registration of the 'detect-gamemode' tool using McpServer's tool method, specifying name, description, empty input schema, and the handler function.
    server.tool( "detect-gamemode", "Detect the gamemode on game", {}, async (): Promise<McpResponse> => { try { return createResponse(`Bot gamemode: "${bot.game.gameMode}"`); } catch (error) { return createErrorResponse(error as Error); } } );

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/zeeweebee/mcp-server'

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