{"id":119391,"date":"2026-06-07T03:31:21","date_gmt":"2026-06-07T00:31:21","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/"},"modified":"2026-06-07T03:31:21","modified_gmt":"2026-06-07T00:31:21","slug":"parallel-core","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/","title":{"rendered":"Parallel Core"},"content":{"rendered":"<p>## Description<\/p>\n<p>ParallelCore is a lightweight Fabric-based API and foundational layer designed to enable safe multithreading for Minecraft mods. It does not add parallel behavior itself but provides the essential building blocks for other mods to implement concurrent logic without corrupting the game world or crashing.<\/p>\n<p>### Core Features<\/p>\n<p>**Thread-Safe World Access**<br \/>\nVanilla Minecraft prohibits world access from any thread other than the main server thread. ParallelCore overcomes this limitation through a safe-zone mechanism. Mods can mark regions of code as a &#8220;parallel safe zone,&#8221; which temporarily relaxes thread checks. While inside a safe zone, chunk and block lookups become thread-safe, allowing worker threads to read world state concurrently.<\/p>\n<p>**World Snapshot via Chunk Lookup**<br \/>\nRather than creating heavy full-world copies, ParallelCore provides a thread-safe chunk reader that bypasses the vanilla main-thread dispatcher. When worker threads request chunks, they receive direct read-only access to already-loaded chunks without blocking or deadlocking the main thread. This acts as a lightweight, on-demand snapshot system.<\/p>\n<p>**Isolated Thread Pools**<br \/>\nThe mod provides a thread-pool factory that creates independent, fixed-size executor services for different subsystems (such as physics, explosions, or hoppers). Each subsystem gets its own isolated pool, preventing task starvation and ensuring that one system&#8217;s nested submissions do not block another.<\/p>\n<p>**Entity Snapshot Helpers**<br \/>\nMutable entities like item entities are not thread-safe. ParallelCore includes utility methods to collect and deep-copy entities on the main thread before parallel execution begins. Worker threads receive immutable snapshot records, eliminating data races.<\/p>\n<p>**Command System Integration**<br \/>\nA `\/parallel` command (with a `\/pc` alias) is provided for administrators. Other mods can register their own subcommands under this root, allowing runtime configuration and status reporting for each parallelized subsystem.<\/p>\n<p>**Shared Configuration Base**<br \/>\nA configuration base class helps mods persist their settings in a single shared JSON file, with each subsystem owning a dedicated section. This keeps all parallel-related configuration in one place.<\/p>\n<p>### Recommended Usage Pattern: Parallel Read, Serial Write<\/p>\n<p>The core design follows a **read-parallel, write-serial** pattern to ensure thread safety without complex locking:<\/p>\n<p>1. **Collect on Main Thread** \u2013 Before parallel execution, collect all necessary positions, entity references, or mutable data on the main thread where world access is naturally safe.<\/p>\n<p>2. **Enter Safe Zone** \u2013 Call `SafeLevelAccess.enterSafeZone()` to mark the beginning of parallel read operations. This bypasses vanilla thread checks and enables thread-safe chunk lookups.<\/p>\n<p>3. **Execute Parallel Reads** \u2013 Submit tasks to isolated thread pools. Worker threads can safely read block states, item entity snapshots, and chunk data concurrently from immutable or deep-copied sources. No writing to the world occurs during this phase.<\/p>\n<p>4. **Join and Merge** \u2013 Wait for all parallel tasks to complete, collecting computed results (e.g., new block positions, item transfers, or state changes) from each worker.<\/p>\n<p>5. **Leave Safe Zone** \u2013 Call `SafeLevelAccess.leaveSafeZone()` to restore vanilla thread-safety checks.<\/p>\n<p>6. **Apply Changes Serially** \u2013 Back on the main thread, apply all accumulated modifications to the real world. This serial write-back prevents concurrent modification and keeps vanilla assumptions intact.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A mod provides thread pool and world snapshot capabilities<\/p>\n","protected":false},"featured_media":119392,"template":"","meta":{"_minecraft_slug":"parallel-core","_minecraft_project_id":"xTzfQxjv","_minecraft_author":"uright008","_minecraft_license":"MIT","_minecraft_downloads":12,"_minecraft_follows":1,"_minecraft_client_side":"unknown","_minecraft_server_side":"unknown","_minecraft_storage_type":"zip","_minecraft_archive_name":"parallel-core.zip","_minecraft_size_bytes":71587,"_minecraft_version_count":2,"_minecraft_updated_at":"2026-05-16T14:16:40.919765Z","_minecraft_date_created":"2026-05-15T03:51:03.676661Z","_minecraft_date_modified":"2026-05-15T12:13:25.814979Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/parallel-core","_minecraft_icon_attachment_id":119392,"_minecraft_imported_at":"2026-06-07T00:31:22+00:00","_minecraft_import_hash":"4b83fe180c457eb3072abd6bb1dfafb6","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[97,873,90],"mod_loader":[99],"minecraft_version":[163],"class_list":["post-119391","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-fabric","mod_category-library","mod_category-optimization","mod_loader-fabric","minecraft_version-26-1-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Parallel Core - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Parallel Core - Minecraft\" \/>\n<meta property=\"og:description\" content=\"A mod provides thread pool and world snapshot capabilities\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/parallel-core\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/parallel-core\\\/\",\"name\":\"Parallel Core - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/parallel-core\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/parallel-core\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/parallel-core-icon-2c958b084edf5f15c6640c89de912b1a91c1f2d7_96.webp\",\"datePublished\":\"2026-06-07T00:31:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/parallel-core\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/parallel-core\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/parallel-core\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/parallel-core-icon-2c958b084edf5f15c6640c89de912b1a91c1f2d7_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/parallel-core-icon-2c958b084edf5f15c6640c89de912b1a91c1f2d7_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/parallel-core\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Parallel Core\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Parallel Core - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/","og_locale":"en_US","og_type":"article","og_title":"Parallel Core - Minecraft","og_description":"A mod provides thread pool and world snapshot capabilities","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/","name":"Parallel Core - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/parallel-core-icon-2c958b084edf5f15c6640c89de912b1a91c1f2d7_96.webp","datePublished":"2026-06-07T00:31:21+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/parallel-core-icon-2c958b084edf5f15c6640c89de912b1a91c1f2d7_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/parallel-core-icon-2c958b084edf5f15c6640c89de912b1a91c1f2d7_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/parallel-core\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Parallel Core"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/119391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/119392"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=119391"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=119391"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=119391"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=119391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}