Skip to content

Click Entity

Packet IDDirectionMojang NameMCP Name
0x07ServerboundInteractPacketPacket7UseEntity

This is sent by the player when an entity is left/right-clicked. The server should only accept this packet if the entity is not obstructed and is within 3 blocks of the player.

Clientbound

FieldTypeDescription
Player IDIntegerThe ID of the player who clicked the entity
Entity IDIntegerThe ID of the entity that was clicked
Left-Click?BooleanWhether the player left-clicked or right-clicked

Example Packet

FieldValue
Player ID1298
Entity ID1805
Left-Click?true