home / java335 / serverbound / use-entity
Use entity
Encode/decode this packet in Sandbox
Id: 11
Id (hex): 0B
Id (bin): 00001011
Clientbound: ✖️
Serverbound: ✔️
Fields
Name | Type | When |
---|---|---|
target | varuint | |
type | varuint | |
target position | float<xyz> | type is equal to 2 |
hand | varuint | type is equal to 0 | | type is equal to 2 |
type
Constants:
Name | Value |
---|---|
interact | 0 |
attack | 1 |
interact at | 2 |
hand
Constants:
Name | Value |
---|---|
main hand | 0 |
off hand | 1 |