Look up a common modding operation
mc_lookup_apiRetrieve code snippets for Minecraft modding tasks across 1.8.9 and 1.21+. Finds answers by searching method/API and class tables to match user queries like 'how do I X'.
Instructions
Given a task description like 'send chat message', 'open gui', 'register block', 'render hud', 'send useitem packet', returns the canonical snippet for both 1.8.9 and modern 1.21+. Searches BOTH the method/API table and the class-name table so partial class queries still surface useful info. Use when the user asks 'how do I X in ?'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | What you're trying to do, in plain English | |
| loader | No | Filter snippets by loader (forge for 1.8.9; neoforge or fabric for 1.21+). Optional. |