mc_get_item_texture
Render an item from a player inventory slot as a PNG image, including damage and CustomModelData overrides for accurate resource-pack display.
Instructions
Render the item in the player's inventory slot N as a PNG you can see directly. Honors damage / CustomModelData resource-pack overrides on 1.21.11; falls back to the baked sprite on 1.19. Returns the rendered PNG plus a one-line text caption with dimensions + sprite name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | Inventory slot index (0-35 main inv, 36-39 armor, 40 offhand). |