Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-185901

Impossible to join a server with too many recipes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2, 1.16.4
    • None
    • Community Consensus
    • Data Packs, Networking
    • Normal
    • Platform

      If datapacks add too many recipes to the game, no client can connect to it and they disconnect immediately. The reason is due to the RecipeBook packet being too big. It errors giving a DecoderException: Badly compressed packet - size of X is larger than protocol maximum of 2097152. 

      I got a size of 8.3M by copy pasting the vanilla recipes into different namespaces. I had in total 1792 times the amount of recipes vanilla has. So the effective limit would be around ~450x the size of all vanilla recipes. 

      Even if this is indeed a weird case, it is not impossible to attain this max in heavily modded or data-driven servers. Wanted to provide what I used to test, but it is too big, so I uploaded it to my drive, https://drive.google.com/file/d/1P9BJJSK5xmjCA2GQPXBCR6iNwjHdq0TW/view?usp=sharing. I calculate about 5 of these datapacks are needed to reproduce the bug (I had 16 when testing)

      Also, since this is due to the recipe book, this probably does not effect only 1.15.

        1. DataPack_001.z01
          8.00 MB
        2. DataPack_001.zip
          6.74 MB
        3. DataPack_002.z01
          8.00 MB
        4. DataPack_002.zip
          5.40 MB

            Unassigned Unassigned
            cyborgmas Cyborgmas
            Votes:
            21 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              CHK: