0x11 C11PacketEnchantItem
Player selects an enchantment option in the enchanting table window. Carries window ID and button (0=top, 1=middle, 2=bottom).
Fields
| Field | Type | Description |
|---|---|---|
| windowId | byte | Enchantment table window ID |
| button | byte | Enchantment slot (0=top, 1=middle, 2=bottom) |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Window ID | byte | |
| Enchantment | byte | 0=top, 1=middle, 2=bottom |
MCP References
MCP
NetHandlerPlayServer.processEnchantItem()Handler Interface
HND
INetHandlerPlayServerNotes
The server responds with S2FPacketSetSlot (enchanted item). The server validates the lapis lazuli count and XP level before applying. No major client module specifically targets this packet in the 6+ client codebases examined — enchantment is handled through vanilla GUI mechanics.
implementation Implementation Cases
AutoEnchant
Select enchantment option. Used by auto-enchant modules.