get_example
Retrieve working code examples for Minecraft modding tasks with explanations and metadata. Use this tool to get concrete implementations for features like registering items, creating block entities, or handling networking.
Instructions
Get code examples for Minecraft modding topics. Returns complete, working code snippets with full context including explanations, source documentation, and metadata. Use this when you need concrete code examples for implementing features.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Topic or pattern to get examples for (e.g., 'register item', 'block entity', 'mixin', 'networking', 'custom armor'). Can be free-form text. | |
| language | No | Programming language (e.g., 'java', 'json', 'groovy') | java |
| loader | No | Mod loader to filter by | |
| minecraft_version | No | Target Minecraft version (e.g., '1.21.4', '1.21.10'). Latest: use 'latest' | |
| category | No | Documentation category to filter by | |
| limit | No | Maximum number of examples to return (1-10) |