home / java338 / serverbound / use-entity
Use entity
Encode/decode this packet in Sandbox
Id: 10
Id (hex): 0A
Id (bin): 00001010
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 |