0x11 C11PacketEnchantItem

Player selects an enchantment option in the enchanting table window. Carries window ID and button (0=top, 1=middle, 2=bottom).

Serverbound (Client → Server) · PLAY · net/minecraft/network/play/client/C11PacketEnchantItem.java
playerenchantcontainer

Fields

FieldTypeDescription
windowIdbyteEnchantment table window ID
buttonbyteEnchantment slot (0=top, 1=middle, 2=bottom)

Wire Encoding

FieldTypeNotes
Window IDbyte
Enchantmentbyte0=top, 1=middle, 2=bottom

MCP References

MCPNetHandlerPlayServer.processEnchantItem()

Handler Interface

HNDINetHandlerPlayServer

Notes

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.

Vanilla hook: EventSendPacket
← Back to all packets