barneygale / quarry

Python library that implements the Minecraft network protocol and data types
Other
532 stars 74 forks source link

Handle 1.16 `join_game` fields a little better #104

Closed barneygale closed 3 years ago

barneygale commented 3 years ago

server_chat_room.py has some hard-coded NBT data to make the official client happy. Can we do better? E.g. load this data via Registry (if available), or bring it into the quarry package for ease of use?

barneygale commented 3 years ago

@dries007 @JLyne just flagging the above change with you, as you were both involved in making the server_chat_room example work in 1.16 (thank you!). Quarry now includes .nbt files, each containing the subset of the vanilla data pack conveyed in the join_game packet. Hope this all seems reasonable to you - shout if not!

barneygale commented 3 years ago

The reason we don't use the official data generators is that it doesn't include a schema. From the JSON I can't tell what should be a TagFloat vs TagDouble, etc.