From e96345d867377ea3eadc029074e8a83ac036ca1c Mon Sep 17 00:00:00 2001 From: -Sharky- Date: Fri, 6 Mar 2026 14:34:22 +0100 Subject: [PATCH 1/2] update entity_teleport packet on 1.21.3+ --- data/pc/1.21.3/proto.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/data/pc/1.21.3/proto.yml b/data/pc/1.21.3/proto.yml index 25ea73f05..da74a0b51 100644 --- a/data/pc/1.21.3/proto.yml +++ b/data/pc/1.21.3/proto.yml @@ -2394,8 +2394,22 @@ x: f64 y: f64 z: f64 - yaw: i8 - pitch: i8 + velocityX: f64 + velocityY: f64 + velocityZ: f64 + yaw: f32 + pitch: f32 + flags: ["bitfield", [ + { "name": "relative_x", "size": 1, "signed": false }, + { "name": "relative_y", "size": 1, "signed": false }, + { "name": "relative_z", "size": 1, "signed": false }, + { "name": "relative_yaw", "size": 1, "signed": false }, + { "name": "relative_pitch", "size": 1, "signed": false }, + { "name": "relative_velocity_x", "size": 1, "signed": false }, + { "name": "relative_velocity_y", "size": 1, "signed": false }, + { "name": "relative_velocity_z", "size": 1, "signed": false }, + { "name": "rotate_velocity", "size": 1, "signed": false } + ]] onGround: bool # MC: ClientboundTickingStatePacket packet_set_ticking_state: @@ -3223,4 +3237,4 @@ if arm_animation: packet_arm_animation if spectate: packet_spectate if block_place: packet_block_place - if use_item: packet_use_item \ No newline at end of file + if use_item: packet_use_item From f1d44360d1436cb1f4cac69c79c07e247527f67c Mon Sep 17 00:00:00 2001 From: -Sharky- Date: Fri, 6 Mar 2026 15:08:43 +0100 Subject: [PATCH 2/2] Update protocol.json update entity_teleport packet on 1.21.3 --- data/pc/1.21.3/protocol.json | 71 ++++++++++++++++++++++++++++++++++-- 1 file changed, 68 insertions(+), 3 deletions(-) diff --git a/data/pc/1.21.3/protocol.json b/data/pc/1.21.3/protocol.json index 176125c6d..28d12e58f 100644 --- a/data/pc/1.21.3/protocol.json +++ b/data/pc/1.21.3/protocol.json @@ -7366,13 +7366,78 @@ "name": "z", "type": "f64" }, + { + "name": "velocityX", + "type": "f64" + }, + { + "name": "velocityY", + "type": "f64" + }, + { + "name": "velocityZ", + "type": "f64" + }, { "name": "yaw", - "type": "i8" + "type": "f32" }, { "name": "pitch", - "type": "i8" + "type": "f32" + }, + { + "name": "flags", + "type": [ + "bitfield", + [ + { + "name": "relative_x", + "size": 1, + "signed": false + }, + { + "name": "relative_y", + "size": 1, + "signed": false + }, + { + "name": "relative_z", + "size": 1, + "signed": false + }, + { + "name": "relative_yaw", + "size": 1, + "signed": false + }, + { + "name": "relative_pitch", + "size": 1, + "signed": false + }, + { + "name": "relative_velocity_x", + "size": 1, + "signed": false + }, + { + "name": "relative_velocity_y", + "size": 1, + "signed": false + }, + { + "name": "relative_velocity_z", + "size": 1, + "signed": false + }, + { + "name": "rotate_velocity", + "size": 1, + "signed": false + } + ] + ] }, { "name": "onGround", @@ -9326,4 +9391,4 @@ } } } -} \ No newline at end of file +}