Implement 26.3 food consumption

This commit is contained in:
Tanner
2026-11-04 20:06:02 +00:00
parent 1ecec547ae
commit 7d4f045100
8 changed files with 200 additions and 25 deletions
+10
View File
@@ -38,6 +38,16 @@ class PlayerCommandPacket(Packet):
]
class UseItemPacket(Packet):
"""Use the selected hand, including the 26.3 interaction sequence."""
id = 0x43
packet_name = 'use item'
definition = [
{'hand': VarInt}, {'sequence': VarInt},
{'yaw': Float}, {'pitch': Float},
]
def parse_incoming_private_message(message):
"""Return (sender_name, body) for common Minecraft incoming-DM forms."""
patterns = (