node-minecraft-protocol-forge icon indicating copy to clipboard operation
node-minecraft-protocol-forge copied to clipboard

Parse all fields of the RegistryData (1.8+) or ModIdData (1.7-) packets

Open deathcap opened this issue 9 years ago • 1 comments

              "RegistryData":
              [
                "container",
                [
                  {
                    "name": "hasMore",
                    "type": "bool"
                  },

                  /* TODO: support all fields
                  {
                    "name": "registryName",
                    "type": "string"
                  },
                  */
                ],
              ],

RegistryData is only parsed for the hasMore bool, to know when the last packet was received. http://wiki.vg/Minecraft_Forge_Handshake#RegistryData documents the full structure. Includes registry name, string to id mapping, and array of substitutions. Should parse this because it might be useful for client applications.

deathcap avatar Jan 26 '16 02:01 deathcap

1.8 RegistryData is ModIdData in 1.7, both discriminator byte 3, but slightly different structure (and only one ModIdData, but several RegistryData): see https://github.com/PrismarineJS/node-minecraft-protocol-forge/issues/3

deathcap avatar Feb 19 '16 07:02 deathcap