x0pier

make me a mod that can accelerates game loading by using mixins overwrites during early loading stage, particularly for heavy-modded setups

Kodari AI
KodariJul 7 at 2:10 am 2
FastLoader
A Fabric mod that accelerates Minecraft game loading for heavy-modded setups using mixin-based optimizations. Features parallel resource loading, class preloading during early initialization, optimized resource pack scanning, and streamlined datapack loading. Uses a custom mixin plugin system to selectively apply optimizations. Designed for Fabric 1.21.11 with Yarn mappings, targeting the early loading stage to reduce startup time significantly in large modpacks.

Let me read the essential docs first to ensure I use correct 1.21.11 APIs

FastLoader — Accelerated Game Loading Mod

FastLoader
A Fabric mod that accelerates Minecraft game loading for heavy-modded setups using mixin-based optimizations during the early loading stage. Features parallel resource loading, class preloading during early initialization, optimized resource pack scanning, and streamlined datapack loading. Uses a custom mixin plugin system to selectively apply optimizations. Designed for Fabric 1.21.11 with Yarn mappings, targeting the early loading stage to reduce startup time significantly in large modpacks.

Creating all project files. Architecture: SimpleResourceReloadMixin parallelizes the resource reload preparation phase using a larger thread pool, ClassPreloader preloads common classes in a background thread during onInitialize, and FastLoaderConfig provides toggles for each optimization

All files confirmed missing — creating the entire project from scratch.

x0pier

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
            ResourceReloader.Prepare prepare,
                            ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
            ResourceReloader.Factory factory,
                            ^
  symbol: class Factory
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
              ResourceReloader.Prepare prepare,
                              ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
              ResourceReloader.Factory factory,
                              ^
  symbol: class Factory
  location: interface ResourceReloader


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - Prepare
  - Factory
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
  -   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJul 7 at 2:16 am 14

Those types exist in Yarn but the subagent report is speculative. Let me check the actual decompiled Minecraft source.

Now I know the correct API. SimpleResourceReload.create() takes (ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>) — not the old Prepare/Factory types. Let me also check DataPackContents.

Now I have the correct API. The old mixin was using non-existent ResourceReloader.Prepare/Factory types. The actual SimpleResourceReload.create() takes (ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>). Let me rewrite the entire project with correct 1.21.11 APIs.

Now I have the correct API signatures. Let me read all files and rewrite them properly

Now I have the correct 1.21.11 API signatures. The errors are caused by using non-existent ResourceReloader.Prepare/Factory types. The actual SimpleResourceReload.create() signature is (ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>). Let me rewrite the affected mixins and clean up.

Now I see the issue — the old API with Prepare/Factory/Applier doesn’t exist in 1.21.11. The actual API is SimpleResourceReload.create(ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>). Let me rewrite the mixins properly.

The file needs a full rewrite since the entire method signature and types changed. Let me use the inline tag approach.

x0pier

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
            ResourceReloader.Prepare prepare,
                            ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
            ResourceReloader.Factory factory,
                            ^
  symbol: class Factory
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
              ResourceReloader.Prepare prepare,
                              ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
              ResourceReloader.Factory factory,
                              ^
  symbol: class Factory
  location: interface ResourceReloader


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - Prepare
  - Factory
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
  -   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJul 7 at 2:18 am 1
x0pier

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
            ResourceReloader.Prepare prepare,
                            ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
            ResourceReloader.Factory factory,
                            ^
  symbol: class Factory
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
              ResourceReloader.Prepare prepare,
                              ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
              ResourceReloader.Factory factory,
                              ^
  symbol: class Factory
  location: interface ResourceReloader


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - Prepare
  - Factory
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
  -   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJul 7 at 2:20 am 1

Let me read the actual file currently on disk to see what’s still broken.

x0pier

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
            ResourceReloader.Prepare prepare,
                            ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
            ResourceReloader.Factory factory,
                            ^
  symbol: class Factory
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
              ResourceReloader.Prepare prepare,
                              ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
              ResourceReloader.Factory factory,
                              ^
  symbol: class Factory
  location: interface ResourceReloader


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - Prepare
  - Factory
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
  -   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJul 7 at 2:21 am 1
x0pier

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
            ResourceReloader.Prepare prepare,
                            ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
            ResourceReloader.Factory factory,
                            ^
  symbol: class Factory
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
              ResourceReloader.Prepare prepare,
                              ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
              ResourceReloader.Factory factory,
                              ^
  symbol: class Factory
  location: interface ResourceReloader


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - Prepare
  - Factory
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
  -   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJul 8 at 1:51 pm 2

Now I have the full picture. In 1.21.11, ResourceReloader.Prepare and ResourceReloader.Factory don’t exist. The actual API is:

  • ReloadableResourceManagerImpl.reload(Executor, Executor, CompletableFuture<Unit>, List<ResourcePack>)

  • Which calls SimpleResourceReload.start(ResourceManager, List<ResourceReloader>, Executor, Executor, CompletableFuture<Unit>, boolean)

The mixin needs to wrap the SimpleResourceReload.start() call to substitute the prepare executorThe file still has the old broken code. Let me rewrite it entirely with the correct 1.21.11 API.

<<update>>

x0pier

The compilation failed with this error:

code
Compilation failed with 4 error(s):

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
            ResourceReloader.Prepare prepare,
                            ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
            ResourceReloader.Factory factory,
                            ^
  symbol: class Factory
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 33: cannot find symbol
              ResourceReloader.Prepare prepare,
                              ^
  symbol: class Prepare
  location: interface ResourceReloader

ERROR in   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java at line 34: cannot find symbol
              ResourceReloader.Factory factory,
                              ^
  symbol: class Factory
  location: interface ResourceReloader


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - Prepare
  - Factory
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java
  -   src/main/java/com/fastloader/mixin/SimpleResourceReloadMixin.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariJul 9 at 10:44 pm 7

ાજેત

Fixed SimpleResourceReloadMixin.java for Fabric 1.21.11.

  • Removed nonexistent ResourceReloader.Prepare and ResourceReloader.Factory types.

  • Updated the mixin to target SimpleResourceReload.start(...).

  • Added the correct ResourceManager, ResourceReload, ResourceReloader, Unit, and collection types.

  • Updated the method descriptor and operation call arguments.

x0pier

every time you click "Create New World" because of a mixin conflict with the fastloader mod Mixin apply for mod fastloader failed fastloader.mixins.json:DataPackContentsMixin Critical injection failure: @WrapOperation annotation on wrapDataPackReload could not find any targets matching

Kodari AI
KodariJul 11 at 10:47 am 8
  • Inspect the failing DataPackContentsMixin and its mixin configuration.

  • Verify the 1.21.11 target method and @WrapOperation signature.

  • Patch the injection to the actual datapack reload call, preserving FastLoader’s behavior.

Patched DataPackContentsMixin.java to target the Fabric 1.21.11 datapack reload call:

  • Updated the DataPackContents.reload descriptor.

  • Wrapped SimpleResourceReload.start(...) instead of recursively targeting DataPackContents.reload(...).

  • Corrected the static wrapper signature.

  • Removed the obsolete reload parameters.

  • Preserved FastLoader’s configurable prepare-thread pool.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
13 463
src/client/java/com/fastloader/FastLoaderClient.java
package com.fastloader;

import net.fabricmc.api.ClientModInitializer;

public class FastLoaderClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        FastLoader.LOGGER.info("FastLoader client initialized");
    }
}