Open
Description
I tried to use the following code:
session.send(new ServerboundUseItemOnPacket(
Vector3i.from(
arguments.BTN_X,
arguments.BTN_Y,
arguments.BTN_Z
),
Direction.from(arguments.BTN_DIR),
Hand.MAIN_HAND,
.5f, .5f, .5f,
true,
(int) Instant.now().toEpochMilli()
));
session.send(new ServerboundUseItemPacket(
Hand.MAIN_HAND,
(int) Instant.now().toEpochMilli(),
0f, 0f
));
to simulate the player clicking a button, but it failed. Can anyone help me?
Metadata
Assignees
Labels
No labels
Activity