Page title: Threadcore API: Multithreaded Power for Minecraft Mods

Meta description: Threadcore API unlocks parallel region threading for Minecraft mods, with safe block mutations and off-thread snapshots. Download it today for Fabric!

Download threadcore api for Minecraft 1.17.1

Original name: threadcore api

Minecraft: 1.17.1

Loaders: Fabric

FileVersionLoaderSize
threadcore-api-0.0.2.jar1.17.1Fabric44 КБDownload
threadcore-api-0.1.0.jar1.17.1Fabric44 КБDownload

Threadcore API

If you have ever watched a Minecraft server grind to a halt while the main thread chews through tick after tick, you already understand why Threadcore API exists. This is the developer-facing half of the Threadcore project: the small, focused library that other mods compile against when they want to do real work on region worker threads instead of queueing everything behind the server tick. It is not the mod itself. It is the contract that makes writing parallel-safe mod code practical.

What Threadcore API Actually Does

With Threadcore installed, part of the server tick runs on region worker threads rather than the main thread. Most mods never need to care, because Threadcore guards the dangerous paths and defers anything crossing a region boundary back to the main thread. This API is for the other case: your own mod deliberately doing its work out there in parallel. The surface is intentionally small, and every piece of it is something Threadcore already relies on internally.

Core Building Blocks

  • RegionScheduler runs a task on the thread that owns a given block, chunk, or region, so your work happens alongside the rest of the world instead of waiting in line behind it.
  • MutationGate lets you change a block, or run any other mutation, from a region thread. The change is deferred and replayed on the main thread in order, so you do not have to write your own queue to stay correct.
  • SnapshotService reads block state off-thread from a frozen copy of that tick, so you are not racing the world while you read it.
  • ThreadGuard, ThreadContext and ThreadDomain tell you what kind of thread you are on and let you assert that you are where you think you are. In strict mode you hear about a violation when it happens, rather than finding a corrupted world three hours later.
  • @RegionSafe, @AsyncReadOnly and @RequiresMainEquivalent let you write your threading contract directly on the method, and ContractValidator checks it for you.

Soft Dependencies and Graceful Fallbacks

One of the smartest design choices here is that it is safe to depend on Threadcore API even when Threadcore is not installed. Every accessor returns null until Threadcore installs its implementations, and isAvailable() tells you whether it has. That means you can soft depend on the library, take the fast path when Threadcore is present, and fall back to ordinary main-thread behaviour when it is not, shipping one jar either way. A simple availability check branches your code between a scheduled region task and your usual main-thread routine.

For players who prefer a frictionless setup, the foxygame.net launcher handles the Threadcore API dependency chain automatically, pulling compatible builds and keeping them updated so you never have to hunt down matching jars by hand.

Supported Minecraft Versions and Loader

Here is the part that surprises people: there is no Minecraft code in this jar, and it declares no Minecraft dependency, so Minecraft itself does not constrain it. What it actually needs is Java 16 or newer. That means Minecraft 1.17 and up works with no upper bound, because every release from 1.17 onward ships Java 16, 17, 21 or 25, so the library will keep working on versions that do not exist yet. On 1.16.5 and below it only works if your server runs Java 16 or newer, which is your call to make rather than a promise. The API targets Fabric, and Java 16 is the floor because BlockVec, ChunkVec, RegionKey and TickStats are records.

Adding It to Your Build

Developers can pull the artifact from the Shadowmark GitHub Maven repository and declare it in their own fabric.mod.json, either as a hard dependency or as a suggestion if the mod works with or without it. Depend on it, but do not bundle it inside your own jar. Fabric keeps the highest version of a shared library and breaks ties between equal ones arbitrarily, so a bundled older copy can win the tie even on a server that has the current one installed. That exact scenario once caused a NoSuchMethodError at boot, and Threadcore now stops at startup and names the offending mod.

Licence and Project Status

The API module is Apache-2.0, so you can use it, modify it, and even ship it inside a closed-source mod. That grant covers this API module only. Threadcore itself is All Rights Reserved and remains a separate project, and the licence gives you no rights to the Threadcore name or logo.

This is a beta, and the surface is small on purpose. Everything in it is something Threadcore already does, so nothing here has shipped without having to work first. If you are ready to write genuinely parallel mod code, download Threadcore API for Minecraft and start experimenting. If you are unsure how to install it alongside your existing setup, the documentation walks through the Maven coordinates and manifest entries step by step, and the soft-dependency pattern means you can try it without breaking anything that already works.

===ARTICLE===