All Mods Resource Packs Data Packs Shaders Modpacks Plugins
KAllFix

KAllFix

by n1luik • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Overview

  • This project is used to fix and optimize issues caused by other mods, and it works on servers.
  • The project contains two main parts: k_all_fix and k_multi_threading, with features mainly controlled by JVM parameters.
  • No regular config file is provided; configuration is mainly done through startup parameters.
  • Client-side usage is supported from 1.0.4.0 onward (requires JVM parameter -DKMT_Client=true).
  • Under a multi-mod and single-threaded baseline environment, cause no issues is not guaranteed, but you could create an ISSUE on Github and the author will fix it quickly.
  • With some mod combinations, clients may still need to install this mod even if it has no visible effect.

Features and Use Cases

Optimizations

Fixes

Multithreading

Introduction

  • Multithreading supports includes block ticks, block entity ticks, entities, dimensions, player packet receiving (manual toggle, client-only), and player login (manual toggle), and also fixes some problematic single-threaded mods by applying multithreading.
  • Multithreading is enabled by default on the server side.
  • In multithreaded scenarios, thread-pool interception or limit-exceeded errors may appear, but they usually do not crash the server.
  • It is recommended to manually set -DKMT-threadMax=[CPU thread count]; otherwise world generation may be frozen. If freezes still occurs after setting it, increase the value higher.
  • Before 1.0.4.0, clients cannot use multithreading; from 1.0.4.0 onward, clients can enable it via -DKMT_Client=true.
  • After 1.0.3.3, ParaServerChunkProvider, TaskRun, and some chunk generation code depend more heavily on C2 compilation (the JVM will enter C2 automatically after running for a while).
  • In Windows Server 2022 Datacenter 21H2 20348.3091 (author's environment), rare thread scheduling anomalies may occur and causes abnormally high CPU usage; the solution is to restart the server.

Related JVM Parameters

  • -DKMT-threadMax=[number]
    • Sets thread-pool thread count.
  • -DKMT-callMax=[number]
    • Sets the default maximum number of threads that multithreaded tasks may use.
  • -DKMT-ThreadpoolKeepAliveTime=[milliseconds]
    • Sets how long idle threads are kept before recycling.
  • -DKMT_D=[any characters]
    • Disables multithreading.
  • -DKMT-OpenVanillaServerChunkCache=true
    • Forces the vanilla ServerChunkCache fix path (added in 1.0.5.3).

JVM Parameter Overview (all retained)

Basic and General

  • -DKAllFix_D=[any characters]
    • Disables KAllFix.
  • -DKMT_Client=true
    • Enables multithreading-related features on the client side (1.0.4.0+).
  • -DKAF-DisablePetrolpark=false

Connection and Timeout

  • -DKAF-ClientboundKeepAlivePacket_Max=[milliseconds]
    • Changes the timing requirement for ClientboundKeepAlivePacket (default 15 seconds; vanilla must be <30 seconds or the player is kicked for timeout).
  • -DKAF-ServerTimeout=[seconds]
    • Sets server connection timeout.
    • May be ineffective in some cases (both parameters are needed because Forge's forge.readTimeout only covers server packet-read timeout, not client/server network threads with players).
  • -Dforge.readTimeout=[seconds]
    • Forge packet-read timeout parameter (used together with the previous parameter).

Mixin / NBT / Auto Command

  • -DKAF-RemoveMixin:[class name]
    • Disables a specified mixin (k_multi_threading mixins can also be disabled).
  • -DKAF-NbtIoMixin_NotGZip=true
    • Adds try-catch to NBT IO for non-gzip scenarios (unsafe; requires commons-compress in the environment).
  • -DKMT-ChunkGeneratorMode2Start=[true,false]
    • Automatically runs: /SetterWorldConfig world setM2 %%KMT-ChunkGeneratorMode2Start%%.

Breeding Control

  • -DKAF-ChunkBreedingControlSize=[number]
    • Disables breeding when chunk entity count exceeds the given value; disabled if the parameter is missing / not a numeric array / empty.
  • -DKAF-ChunkBreedingControlSizeEnable=[true,false]
    • Internal cache switch for detection results; manual setting may be overridden by the program.

Optional Features

  • -DKMT-SafeUnloadChunk=true
    • Enables chunk unload in chunk-generation threads (recommended only for <1.0.4.2 when related freezes occur).
  • -DIndependencePlayer=true
    • Enables asynchronous player handling (likely provides little to no optimization).
  • -DFixBiolithBugMode2=true
    • Attempts to fix most Biolith compatibility issues (may introduce major bugs).
  • -DKAF-gtceu.MedicalConditionTrackerMixin=true
    • Disables radiation in GTM.
  • -DKAF-RemoveClientboundKeepAlivePacket=true
    • Disables vanilla ClientboundKeepAlivePacket (ping can no longer be calculated).
  • -DKAF-RemoveFlyingTest=true
    • Removes flight checks.
  • -DKAF-moonrise_fast_palette=true
    • Disable the fast_palette feature from Moonrise.
  • -DKAF-FixTFMGDestroy=true
    • Fixes compatibility between Destroy and Create (Creative Pump cannot properly connect to Create's pipes).
  • -DKAF-Fix_fabric-object-builder-api.jar=true
    • Fixes compatibility between Sinytra Connector's fabric-object-builder-api and forge-47.3.27.
  • -DKAF-FixAllPacket=true
  • -DKAF-ChunkAwareBlockCollisionSweeperFast=true
    • Use approximation algorithm to replace ChunkAwareBlockCollisionSweeper of Lithium

Login Multithreading

  • -DKMT-LoginMultiThreading=true
    • Enables multithreaded login.
  • -DKMT-LoginMultiThreading.ConnectionLock=true
    • Waits for async execution completion at tick end (disabling may improve performance somewhat, but lowers login stability and may crash).
  • -DKMT-LoginMultiThreading.TaskSizeMax=[number]
    • Limits the number of concurrent login tasks (default 8).
  • Login multithreading may cause the server to receive ServerboundMovePlayerPacket early, leading to one error log.

Packet Optimization

  • -DKAF-packetOptimize=true
    • Optimizes some vanilla packets (must be enabled on both client and server).
  • -DKAF-packetOptimize.AttributesReOutputTime=[milliseconds]
    • Sets forced resend interval for attribute-related data (default 2 minutes).
  • -DKAF-packetOptimize.CompatibilityMode.ClientboundBlockEntityDataPacket=true
    • Uses more conservative compression for ClientboundBlockEntityDataPacket (impacts performance).
  • -DKAF-packetOptimize.CompatibilityMode.ClientboundSectionBlocksUpdatePacket=true
    • Uses more conservative compression for ClientboundSectionBlocksUpdatePacket.

Others

  • -DKAF-UnsafeCinderscapesFix1=true
    • Adjusts limits for the high-overhead enableAshFall function in Cinderscapes.
  • -DKAF-fix.asynchronous.ClientboundCustomQueryPacket=true
    • Makes handshake asynchronous, reducing the chance of being unable to join when too many mods are installed.
  • -DKAF-FixConfigAuto=true
    • Automatically changes some config options for compatibility.

Installation and Runtime Notes

  • From 1.0.3.18, it can run directly (installation feature is still kept).
  • Before 1.0.3.18, run the mod's installer first, or use:
    • java -jar k_multi_threading-xxx.jar -i [empty or install directory]
  • Installation only generates k_multi_threading-base.jar and k_multi_threading-asm.jar.
  • Some features may download dependencies (Zstd-jni 1.5.7-2); if download fails, place them manually in game_directory/lib.

Compatibility Notes

  • Using -DKAF-FixConfigAuto=true can automatically disable:
    • logOffthreadEntityAdd in Cupboard.
    • world.tick_scheduler and entity_by_type in Canary / Lithium (you must manually add mixin.world.tick_scheduler=false in config/canary.properties or config/lithium.properties; otherwise these mod will override the multithread fix for ClassInstanceMultiMap).
  • Cases where -DKAF-FixConfigAuto=true should not be used:
    • Possible conflict with mixin.perf.cache_upgraded_structures in ModernFix (disable via mixin.perf.cache_upgraded_structures=false in config/modernfix-mixins.properties).
    • With login multithreading enabled, ParCool (listed as Parkour on page) may require one death after player joining before working normally.
    • Ars Creo may rarely log Modifier is already applied on this attribute!, but will not crash.
    • NuclearCraft: Neoteric fission reactors may rarely calculate cooling incorrectly after server restart.

Commands

  • /debug_GetterClassFile [class name]

    • Exports final runtime class data to the game directory, with filename format timestamp_save.class.
  • /SetterWorldConfig [world, ClearErrorSize, RemoveRemoveErrorSize]

    • Settings from this command are not persistent.
    • ClearErrorSize: clears the recorded count of “errors that caused server crash risk”.
    • RemoveRemoveErrorSize: stops recording crash-risk counts and keeps intercepting.
    • Under world [dimension registry id], available options:
      • setM2 [true,false]: switches to another dimension implementation mode; higher priority than setMultiThreading, but may freeze the game.
      • setMultiThreading [number] (default 0): sets multithread parallel task count for this dimension; independent mode from setM2, and may also freeze the game.

Others

  • Because Minecraft and many mods are fundamentally designed around single-threaded behavior, complete fixes for all issues cannot be guaranteed.

Source Code Usage

How to Install KAllFix (Mod)

KAllFix by n1luik is verified for Forge, Neoforge across Minecraft versions 1.19.2, 1.20.1, 1.21, 1.21.1 (latest release: 1.1.0.6, file size: 4.5 MB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.19.2, 1.20.1, 1.21, 1.21.1) and platform (Forge, Neoforge).
  2. Make sure you have the compatible loader or environment installed for Forge, Neoforge.
  3. Move the downloaded KAllFix file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.x
Neoforge
2mo ago 1
1.20.1 1.19.2
Forge
2mo ago 1
1.21.x
Neoforge
2mo ago 1
1.20.1 1.19.2
Forge
2mo ago 1
1.21.x
Neoforge
3mo ago 1
1.20.1 1.19.2
Forge
3mo ago 1
1.21.x
Neoforge
3mo ago 1
1.20.1 1.19.2
Forge
3mo ago 1
1.21.x
Neoforge
3mo ago 1
1.20.1 1.19.2
Forge
3mo ago 1
1.20.1 1.19.2
Forge
4mo ago 1
1.21.x
Neoforge
4mo ago 1
1.20.1 1.19.2
Forge
4mo ago 1
1.21.x
Neoforge
4mo ago 1
1.20.1 1.19.2
Forge
5mo ago 1
1.20.1 1.19.2
Forge
5mo ago 1
1.20.1 1.19.2
Forge
6mo ago 1
1.20.1 1.19.2
Forge
7mo ago 1
1.20.1 1.19.2
Forge
7mo ago 1
1.20.1 1.19.2
Forge
7mo ago 1
1.20.1 1.19.2
Forge
7mo ago 1
1.20.1 1.19.2
Forge
7mo ago 1
1.20.1 1.19.2
Forge
8mo ago 1
1.20.1 1.19.2
Forge
9mo ago 1
1.20.1 1.19.2
Forge
9mo ago 1
1.20.1 1.19.2
Forge
10mo ago 1
1.20.1
Forge
10mo ago 1
1.20.1
Forge
10mo ago 1
1.20.1
Forge
10mo ago 1
1.20.1 1.19.2
Forge
11mo ago 1
1.20.1 1.19.2
Forge
11mo ago 1
1.20.1 1.19.2
Forge
11mo ago 1
1.20.1
Forge
11mo ago 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1 1.19.2
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1 1.19.2
Forge
last yr. 1
1.20.1 1.19.2
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Forge
last yr. 1
[1.1.0.6] KAllFix 1.1.0.6 by n1luik on Sep 13, 2026
Download
## 原文
  • 增加java25兼容
  • 继续修复1.21的lithium多线程的兼容问题
  • 继续修复sable和多线程的兼容问题
  • 修复ftbquests和多线程的兼容问题
## Translation
  • Add Java 25 compatibility
  • Continue fixing the compatibility issues of Lithium's multithreading in version 1.21
  • Continue fixing compatibility issues between Sable and multithreading
  • Fixed compatibility issues between ftbquests and multithreading
[1.1.0.6] KAllFix 1.1.0.6 by n1luik on Sep 13, 2026
Download
## 原文
  • 增加java25兼容
  • 继续修复1.21的lithium多线程的兼容问题
  • 继续修复sable和多线程的兼容问题
  • 修复ftbquests和多线程的兼容问题
## Translation
  • Add Java 25 compatibility
  • Continue fixing the compatibility issues of Lithium's multithreading in version 1.21
  • Continue fixing compatibility issues between Sable and multithreading
  • Fixed compatibility issues between ftbquests and multithreading
[1.1.0.5] KAllFix 1.1.0.5 by n1luik on Aug 21, 2026
Download
## 原文
  • 继续修复多线程和curios的线程安全问题
  • 继续修复多线程和ae2的线程安全问题
  • 继续修复多线程和create的线程安全问题
  • 继续修复多线程和sable的线程安全问题
  • 继续修复多线程和lithium的线程安全问题
  • 修复1.21的createnumismatics和多线程的兼容问题
  • 修复1.21的ccreate_factory_logistics和多线程的兼容问题
  • 修复1.21的esl和多线程的兼容问题
  • 修复integrateddynamics和多线程的兼容问题
  • 修复高版本l2damagetracker和多线程的兼容问题
  • 修复1.21的[AttributeMap, ChunkMap]线程安全问题
## Translation
  • Continue fixing thread safety issues in multithreading and curios
  • Continue fixing thread safety issues in multithreading and AE2
  • Continue fixing thread safety issues in multithreading and the create function
  • Continue fixing thread safety issues in multithreading and sable
  • Continue fixing thread safety issues in multithreading and lithium
  • Fixed compatibility issues between createnumismatics and multithreading in version 1.21
  • Fixed compatibility issues between ccreate_factory_logistics and multithreading in version 1.21
  • Fixed compatibility issues with ESL and multithreading in version 1.21
  • Fix the compatibility issue between integrateddynamics and multithreading
  • Fix compatibility issues between high-version l2damagetracker and multithreading
  • Fix thread safety issues in [AttributeMap, ChunkMap] for version 1.21
[1.1.0.5] KAllFix 1.1.0.5 by n1luik on Aug 21, 2026
Download
## 原文
  • 继续修复多线程和curios的线程安全问题
  • 继续修复多线程和ae2的线程安全问题
  • 继续修复多线程和create的线程安全问题
  • 继续修复多线程和sable的线程安全问题
  • 继续修复多线程和lithium的线程安全问题
  • 修复1.21的createnumismatics和多线程的兼容问题
  • 修复1.21的ccreate_factory_logistics和多线程的兼容问题
  • 修复1.21的esl和多线程的兼容问题
  • 修复integrateddynamics和多线程的兼容问题
  • 修复高版本l2damagetracker和多线程的兼容问题
  • 修复1.21的[AttributeMap, ChunkMap]线程安全问题
## Translation
  • Continue fixing thread safety issues in multithreading and curios
  • Continue fixing thread safety issues in multithreading and AE2
  • Continue fixing thread safety issues in multithreading and the create function
  • Continue fixing thread safety issues in multithreading and sable
  • Continue fixing thread safety issues in multithreading and lithium
  • Fixed compatibility issues between createnumismatics and multithreading in version 1.21
  • Fixed compatibility issues between ccreate_factory_logistics and multithreading in version 1.21
  • Fixed compatibility issues with ESL and multithreading in version 1.21
  • Fix the compatibility issue between integrateddynamics and multithreading
  • Fix compatibility issues between high-version l2damagetracker and multithreading
  • Fix thread safety issues in [AttributeMap, ChunkMap] for version 1.21
[1.1.0.4] KAllFix 1.1.0.4 by n1luik on Aug 10, 2026
Download
## 原文
  • 继续修复多线程和ae2的线程安全问题
  • 继续修复多线程和create的线程安全问题
  • 修复1.21的tacz和多线程的兼容问题
  • 修复1.21的curios和多线程的兼容问题
  • 修复1.21的pipesnphysics和多线程的兼容问题
  • 修复1.21的refinedstorage和多线程的兼容问题
  • 修复RedstoneTorchBlock异步问题
## Translation
  • Continue to fix thread safety issues with multithreading and AE2
  • Continue to fix thread safety issues with multithreading and create
  • Fix compatibility issues with Tacz and multithreading in version 1.21
  • Fix compatibility issues with Curios and multithreading in version 1.21
  • Fix compatibility issues with pipesnphysics and multithreading in version 1.21
  • Fix compatibility issues with Refined Storage and multithreading in version 1.21
  • Fix Redstone TorchBlock asynchronous issue
[1.1.0.4] KAllFix 1.1.0.4 by n1luik on Aug 10, 2026
Download

## Translate
  • Continue fixing thread safety issues with multithreading and AE2
  • Continue fixing thread safety issues in multithreading and create
  • Fixed the asynchronous issue with RedstoneTorchBlock
## 原文
  • 继续修复多线程和ae2的线程安全问题
  • 继续修复多线程和create的线程安全问题
  • 修复RedstoneTorchBlock异步问题
[1.1.0.3] KAllFix 1.1.0.3 by n1luik on Aug 03, 2026
Download
## 原文
  • 修复多线程的1.21CapabilityListenerHolder线程安全问题
  • 修复1.21的mekanism和多线程的兼容问题
  • 修复1.21的createm和多线程的兼容问题
  • 修复1.21的supplementaries和多线程的兼容问题
  • 修复1.21的oritech和多线程的兼容问题
  • 修复1.21的modern_industrialization和多线程的兼容问题
  • 修复1.21的ldtteam和多线程的兼容问题
  • 修复1.21的xycraft和多线程的兼容问题
  • 修复1.21的sable和多线程的兼容问题
  • 修复1.21的ae和多线程的兼容问题
## Translation
  • Fix the thread safety issue of 1.21 CapabilityListenerHolder with multiple threads
  • Fix compatibility issues with mekanism and multithreading in 1.21
  • Fix compatibility issues with creatm and multithreading in version 1.21
  • Fix compatibility issues with supplements and multithreading in version 1.21
  • Fix compatibility issues with Oritech and multithreading in version 1.21
  • Fix compatibility issues with modern_industrialization and multithreading in version 1.21
  • Fix compatibility issues with ldtteam and multithreading in version 1.21
  • Fix compatibility issues with XYCraft and multithreading in version 1.21
  • Fix compatibility issues with sabe and multithreading in version 1.21
  • Fix compatibility issues with AE and multithreading in 1.21
[1.1.0.3] KAllFix 1.1.0.3 by n1luik on Aug 03, 2026
Download
空/Empty
[1.1.0.2] KAllFix 1.1.0.2 by n1luik on Jul 18, 2026
Download
## 原文
  • 修复1.21 biolith的相关问题
  • 继续修复create的兼容问题
  • 增加了一个可能是modernfix冲突代码修复
## Translation
  • Fix issues related to 1.21 biolith
  • Continue to fix compatibility issues with Create
  • Added a possible mod fix conflict code fix
[1.1.0.2] KAllFix 1.1.0.2 by n1luik on Jul 18, 2026
Download
## 原文
  • 继续修复create的兼容问题
  • 继续修复多线程和quark的兼容问题
  • 增加了一个可能是modernfix冲突代码修复
## Translation
  • Continue to fix compatibility issues with Create
  • Continue to fix compatibility issues with multithreading and quark
  • Added a possible mod fix conflict code fix
[1.1.0.1] KAllFix 1.1.0.1 by n1luik on Jul 15, 2026
Download
Continue to fix compatibility issues between multithreading and mechanical power
[1.1.0.1] KAllFix 1.1.0.1 by n1luik on Jul 15, 2026
Download
Fix issues related to the biolith code in version 1.21
[1.1.0.0] KAllFix 1.1.0.0 by n1luik on Jul 08, 2026
Download
增加了一大堆修复
Added a bunch of fixes
[1.1.0.0] KAllFix 1.1.0.0 by n1luik on Jul 08, 2026
Download
NeoForge版本
NeoForge version
修复多线程和observable的兼容问题

Fix compatibility issues between multithreading and observables
KAllFix Icon
Download KAllFix
Select game version
Select platform