A PrismLauncher instance for Minecraft 1.21.1 / NeoForge 21.1.250, built around Create with Mekanism, Modern Industrialization and Oritech alongside it.
  • Shell 41.3%
  • Python 40.1%
  • CSS 14.3%
  • JavaScript 4.3%
Find a file
Skye Elliot c9d4935414
Revert "feat: Add Pocket Repose"
This reverts commit b794a31090.

Every 1.21.1 build of the mod crashes NeoForge before the main menu, and
it is an upstream bug rather than anything Connector did:

  Error during pre-loading phase: [Connector] Encountered error during
  early mod loading
  Caused by: java.lang.IllegalStateException: Adding duplicate value
  'RecordCodec[UnitDecoder[net.bennyboops.modid.util.VoidChunkGenerator
  $$Lambda/0x00007f21fd6807b8@f7f9ff9] * ...]' to registry
      at net.minecraft.core.MappedRegistry.register(MappedRegistry.java:141)
      at net.bennyboops.modid.PocketRepose.onInitialize(PocketRepose.java:105)

PocketRepose.onInitialize registers two chunk generator codecs:
VoidChunkGenerator.CODEC under `void_chunk_generator`, then
PortalChunkGenerator.CODEC under `portal_chunk_generator`. But
PortalChunkGenerator extends VoidChunkGenerator and declares no CODEC of
its own, so the second getstatic resolves through the superclass to the
identical MapCodec instance. MappedRegistry.byValue is an IdentityHashMap
and rejects it. Note it is the *value* check that fires, not the key one:
the id is fresh, the object is not.

Confirmed three ways rather than inferred:

- The line number table puts the failing PocketRepose.java:105 at bytecode
  offset 40, which is the second register call, not the first.
- javap on 1.3.2, 1.3.1 and 1.3.0 shows PortalChunkGenerator with no CODEC
  member in any of them, so there is no 1.21.1 build to downgrade to.
- Upstream's 1.21.1 branch head still reads `PortalChunkGenerator.CODEC`
  against a class that does not define one, so the fix is not merely
  unreleased - it is unwritten.

Upstream #24 reports 1.3.2 crashing under Connector and claims 1.3.0 works;
the bytecode says otherwise and that issue was closed without a comment.

Reverting rather than pinning older. The mod is MIT, so a patched jar is
redistributable in a way the Bewitchment one is not, and the fix is one
static field - but that is a self-hosted jar and its whole tag-pinning
ceremony, which is a decision rather than a cleanup.

release never carried this; it is still at v0.8.1.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-30 22:41:31 +01:00
docs Add Tier 1 Mekanism ore processing for silver 2026-09-12 22:57:53 +01:00
libs feat: Update all mods and add Measurements 2026-09-22 15:25:43 +01:00
minecraft Revert "feat: Add Pocket Repose" 2026-09-30 22:41:31 +01:00
tools feat: Update all mods and add Measurements 2026-09-22 15:25:43 +01:00
.gitattributes Install and update the pack from a Prism pre-launch command 2026-09-08 20:57:57 +01:00
.gitignore feat: Update all mods and add Measurements 2026-09-22 15:25:43 +01:00
CLAUDE.md Rewrite the docs as present-tense reference, and cut them by half 2026-09-09 13:38:23 +01:00
instance.cfg Escape the pre-launch command's quotes, which 0.2.2 got wrong 2026-09-08 21:27:39 +01:00
mmc-pack.json feat: Update all mods and add Measurements 2026-09-22 15:25:43 +01:00
packicon.png Initial commit: pack configuration only 2026-09-06 00:42:50 +01:00
README.md feat: Update all mods and add Measurements 2026-09-22 15:25:43 +01:00
RELEASING.md Warn when a pinned tag is not on the remote 2026-09-10 21:38:14 +01:00

Packpack

A PrismLauncher instance for Minecraft 1.21.1 / NeoForge 21.1.250, built around Create with Mekanism, Modern Industrialization and Oritech alongside it.

This repository tracks the pack's configuration only — the mod jars are reconstructible from the packwiz index. See docs/repository.md.

Documentation

Where What
docs/pack-design.md Why the pack plays the way it does — tags, recipes, unification, ore generation, and the balance issues still open
docs/repository.md What this repository tracks and the traps in that arrangement; redistribution; Bewitchment and the patched Connector
RELEASING.md How the pack installs itself, publishing a version, and verifying a change

Installing

PrismLauncher has no native packwiz support, so the pack installs itself with a pre-launch command. instance.cfg carries it, tracked here:

OverrideCommands=true
PreLaunchCommand=\"$INST_JAVA\" -jar \"$INST_MC_DIR/packwiz-installer-bootstrap.jar\" https://git.kaylen.dog/kaylen/packpack/raw/branch/release/minecraft/pack.toml

The \" escapes are required, not decorative: Prism reads and writes instance.cfg through QSettings IniFormat, where a bare " is a delimiter that gets dropped along with the whitespace beside it. 0.2.2 shipped bare quotes and no launch got past the pre-launch step.

$INST_MC_DIR is absolute so the command does not depend on the working directory, and it makes the installer's --pack-folder correct for free.

Prism runs that before every launch, so the mods arrive on first launch and stay in sync with the release branch afterwards — never main, which is a working branch. A pre-launch command that exits non-zero aborts the launch, so an unreachable Gitea blocks playing, not just updating; untick Settings → Custom commands to get in without it.

Updates need no distribution. Once an instance exists it tracks release by itself, so a new version reaches every player on their next launch. Nothing is handed out per release.

Onboarding a new player is the only case that needs a file: build a zip with tools/export-prism.sh and let them use Prism's Add Instance → Import from zip. One zip, once. See RELEASING.md.

Restoring the mods by hand

The JARs are not in this repository (bar the two self-hosted ones in libs/). Each minecraft/mods/*.pw.toml holds a download URL and a sha512, so the files can be fetched and verified directly without the installer.