add QueryBlockNBTPacket
This commit is contained in:
parent
e919adf9f3
commit
66f8d5ea0d
|
@ -27,7 +27,8 @@ def get_packets(context):
|
|||
PluginMessagePacket,
|
||||
PlayerBlockPlacementPacket,
|
||||
UseEntityPacket,
|
||||
VehicleMovePacket
|
||||
VehicleMovePacket,
|
||||
QueryBlockNBTPacket
|
||||
}
|
||||
if context.protocol_later_eq(69):
|
||||
packets |= {
|
||||
|
@ -326,3 +327,15 @@ class ResourcePackStatusPacket(Packet):
|
|||
definition = [
|
||||
{"result": VarInt}
|
||||
]
|
||||
|
||||
|
||||
class QueryBlockNBTPacket(Packet):
|
||||
@staticmethod
|
||||
def get_id(context):
|
||||
return 0x01
|
||||
|
||||
packet_name = "query block nbt"
|
||||
definition = [
|
||||
{"transaction_id": VarInt},
|
||||
{"location": Position}
|
||||
]
|
Loading…
Reference in New Issue