Repository navigation
feat(formats): Minecraft packs and Modrinth modpacks (Games field) - #1048
Merged
Merged
Conversation
- .dart and .hql join the TXT format like .py, .sql and .cs: recognised as text and converted to TXT, PDF, HTML, Markdown and the other text targets, never run (#980, #997). - .kra is read as the merged picture Krita keeps at the top of the file (mergedimage.png), in memory and at most 256 MB, so it goes to PNG, JPG, PDF and every other picture target as it looks in Krita (#903). It is graded specialist in the Design & print field, and read only. Settings schema 61 teaches existing text donuts .dart and .hql and the images donut .kra; custom claims stay put. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.mcpack, .mcaddon, .mcworld, .mctemplate and .mrpack are ZIPs under their own extensions (#824, #898). The archive engine reads them with 7-Zip like ZIP (to ZIP, 7Z, TAR, a folder, ...) and writes them as ZIP. Minecraft and Modrinth read a marker file at the top (manifest.json, level.dat, modrinth.index.json), so a pack made from an archive or a folder whose only top folder holds it gets that folder's content (GamePacks.Root); an add-on is packed as it is. They are specialist formats in the Games field, which a new install has off (docs/FORMAT-RULES.md). Settings schema 62 adds their presets to the library after "TAR" (no donut gets a slot) and teaches the archives donut their extensions; custom claims stay put. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On top of #1047 (it takes schema 61, this one 62); merge that first and this diff shrinks to its own commit.
.mcpack,.mcaddon,.mcworld,.mctemplateand.mrpackare ZIP archives under their own extensions. Both directions asked for in #824 and #898 now work in Filee:manifest.json(pack),level.dat(world, template) ormodrinth.index.json(modpack) at the top of the ZIP. A ZIP made by zipping the pack's folder has it one level down, so Filee packs that folder's content instead (GamePacks.Root). An add-on (several packs side by side) is packed as it is.docs/FORMAT-RULES.mdrule 5 asks for a new specialist output.Tested
GamePackTests(new, with the bundled 7-Zip): routes in one step both ways; a ZIP of the pack folder gives an MCPACK / MCWORLD / MRPACK with the marker at the top; an MCADDON keeps its packs side by side; MCPACK and MRPACK β ZIP keep every file; a folder packed into one pack has its manifest at the top.GamePackFormatTests(new): Games field, hidden with the new-install switches; schema 61 β 62 adds the presets after TAR on no donut and the extensions without taking a user donut's claim.FormatFieldsTestsupdated (Games members, specialist count 108 β 113).dotnet format --verify-no-changesclean.Closes #824
Closes #898
π€ Generated with Claude Code