Skip to content

Manage datapacks, resource packs and shader packs in Modpack Studio - #368

Merged
athNdev merged 2 commits into
mainfrom
feat/pack-content
Nov 6, 2026
Merged

athNdev merged 2 commits into
mainfrom
feat/pack-content

Conversation

@athNdev

@athNdev athNdev commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Summary

Modpack Studio now manages datapacks, resource packs and shader packs alongside mods, with every packwiz metafile option exposed.

  • One content panel per kind: Modrinth search (game version + optional Iris/OptiFine loader filter), version picker, direct URL, and validated archive upload.
  • Every configurable option round-trips: side, pin, [option] optional, default, description, and download URL/hash for URL content.
  • Datapack install folder is editable and written to [options] datapack-folder, moving metadata and panel-hosted archives.
  • Update checking is kind-aware (?kind=), and apply-update carries hash format/hash/SHA-512.
  • Archives are validated before a metafile exists: datapack = root pack.mcmeta; resource pack = root pack.mcmeta + assets/; shader pack = shaders/; single-directory wrapping is rejected.
  • Server bake now installs datapacks into <data>/<level-name>/datapacks and reports client-only content instead of silently dropping it.
  • CurseForge export refuses with the complete item list instead of shipping a partial pack.
  • New decision concept: knowledge/decisions/modpack-content-kinds.md.

Test plan

  • go build ./..., go vet ./...
  • go test ./internal/packwiz/... ./internal/rpc/handlers/... ./internal/minecraft/...
  • cd web/carbon-panel && bun install --frozen-lockfile && bun run check && bun run test (165 pass)
  • bash scripts/web-build.sh
  • go run ./cmd/knowledge-lint -root . (35 concepts, 10/10 queries)

Modpack Studio gains a content panel per kind with Modrinth search, direct URLs, validated archive uploads, and every packwiz metafile option (side, pin, optional/default/description). The datapack folder is editable through [options] datapack-folder.

Server bakes now install datapacks into the world and report client-only content instead of dropping it. CurseForge export names every item it would refuse to carry.
Use SvelteURLSearchParams and writable derived state, drop the unused loader prop, check the test temp-dir cleanup, and simplify the datapack URL rewrite.
@athNdev
athNdev merged commit b176191 into main Nov 6, 2026
11 checks passed
@athNdev
athNdev deleted the feat/pack-content branch November 6, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant