Background
Starting from 25w31a, Mojang changed the metadata format of Minecraft packages. To maintain compatibility, the game still supports data packets and resource packages with a minimum format of 15.
Issue
When a pack or resource pack supports multiple versions and the package format is at least 15, if the pack_format field is missing, the game log will incorrectly output the minimum version requiring the pack_format field as 17 instead of 15.
How to reproduce
Select "Singleplayer";
Create a world;
Select "More" and then click "Data Packs";
Drag "Raise the Error.zip" into the game;
Click "Yes";
This packet will display "(Broken or incompatible)", and the game log will incorrectly output the minimum format version requiring pack_format fields.
Expected result
The game log should output a minimum format version requiring pack_format fields to be 15.
Actual result
The game log output require the minimum format for pack_format fields to be 17.
Thank you for helping us improve Minecraft! We saved your files: