- Java 96.1%
- C 2.6%
- Python 1.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| gradle/wrapper | ||
| libs | ||
| src | ||
| staged | ||
| tools | ||
| .gitignore | ||
| build.gradle | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| NOTICE | ||
| PORT-NOTES.md | ||
| README.md | ||
| settings.gradle | ||
| TWILIGHT-FOREST-PATCH.md | ||
Pack SuperChunk
Pack SuperChunk is a SuperChunk 0.6.1 fork for Minecraft 1.20.1, Forge 47.x, and Java 17. It provides parallel chunk generation and optional OpenCL offload.
Features
| Area | Current behavior |
|---|---|
| Twilight Forest cave generation | Gives the ordinary and highlands cave carvers a thread-safe decoration RNG before parallel generation starts. The carvers keep their seeded tunnel geometry. The mixin loads when the Twilight Forest target is present. |
| Chunk entity loading | Keeps the vanilla deserialization executor when the server thread requests an entity load, so a synchronous caller can wait for the load to finish. Entity loading mixin |
| Chunk I/O codecs | Uses managed blocking when a ForkJoin worker contends for the codec lock, allowing the pool to compensate for the blocked worker. Interrupted waits restore the thread's interrupt flag. Codec lock |
| Woodland mansions | Holds one write lock across each conditional grid update so the check and write are atomic. Grid implementation |
| No-tick view distance | Clears the scheduler's running flag before checking for queued work again. Logs task, ticket, and shutdown errors with context. No-tick scheduler |
| Future waits and storage I/O | Checks briefly for completed work before parking a waiting thread. The storage loop also checks for queued tasks and shutdown during that wait. Future helper · Storage thread |
| Priority queue | Skips the priority-bucket scan when the scheduler's queue is empty. Queue implementation |
Install and build
Use superchunk-0.6.1-c2mef.1-shell.jar as the SuperChunk JAR in mods/. The shell contains the mod and LWJGL's OpenCL binding. GPU
offload is optional and defaults to off. You can enable it with
gpu.enabled=true in config/superchunk.properties.
Run the build from the repository root with Java 17.
./gradlew build shellJar
The installable jar is build/libs/superchunk-0.6.1-c2mef.1-shell.jar. Its nested
META-INF/jarjar/superchunk-core.jar contains superchunk.refmap.json for
production Forge mappings.
License
Pack SuperChunk is licensed under LGPL-3.0-only. The distribution JARs include the license and bundled component notices. LGPL 3.0 · NOTICE