Pick blocks and entities on the server like vanilla

This commit is contained in:
Kacpherek
2026-10-27 06:16:32 +01:00
parent 91e332a5eb
commit f92cf816b1
5 changed files with 179 additions and 9 deletions
@@ -2234,6 +2234,7 @@ packet!(
PaddleBoat { left: bool => Bool, right: bool => Bool }
);
packet!(PickItemFromBlock { pos: [i32; 3] => Pos, include_data: bool => Bool });
packet!(PickItemFromEntity { id: i32 => VarInt, include_data: bool => Bool });
packet!(
/// ServerboundPlayerActionPacket.Action: 0 start destroy, 1 change destroy
/// direction, 2 abort, 3 stop destroy, 4 drop all, 5 drop item, 6 release
@@ -2311,6 +2312,7 @@ packet_enum!(Serverbound, crate::ids::play::serverbound {
MoveVehicle(MoveVehicleRequest) = MOVE_VEHICLE,
PaddleBoat(PaddleBoat) = PADDLE_BOAT,
PickItemFromBlock(PickItemFromBlock) = PICK_ITEM_FROM_BLOCK,
PickItemFromEntity(PickItemFromEntity) = PICK_ITEM_FROM_ENTITY,
PingRequest(crate::packets::status::Ping) = PING_REQUEST,
PlayerAbilities(PlayerAbilitiesRequest) = PLAYER_ABILITIES,
PlayerAction(PlayerAction) = PLAYER_ACTION,