When launching the game with fabric launcher (ver.: 0.16.5) 1.21 the launcher throws the error:
Mod 'Iron Chests' (ironchest) 2.0.3 requires any version between 1.21.1 (inclusive) and 1.22- (exclusive) of 'Minecraft'(minecraft), but only the wrong version is present: 1.21!
Doing the same but in 1.21.1 the mod works fine.
My reason for this issue is the mod being marked as supports 1.21 but as it seems it doesn't.
I tried changing the dependency version and building it on my own and that produced an error as well which leads me to think, maybe the mod wasn't supposed to support 1.21?
Error in question:
---- Minecraft Crash Report ----
// Why did you do that?
Time: 2024-10-03 19:49:13
Description: Initializing game
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'ironchest' at 'anner.ironchest.IronChests'!
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:403)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:401)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
at net.minecraft.class_310.<init>(class_310.java:477)
at net.minecraft.client.main.Main.main(Main.java:239)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: java.lang.NoClassDefFoundError: net/minecraft/registry/RegistryKeys
at anner.ironchest.IronChests.<clinit>(IronChests.java:14)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:534)
at java.base/java.lang.Class.forName(Class.java:513)
at net.fabricmc.loader.impl.util.DefaultLanguageAdapter.create(DefaultLanguageAdapter.java:50)
at net.fabricmc.loader.impl.entrypoint.EntrypointStorage$NewEntry.getOrCreate(EntrypointStorage.java:124)
at net.fabricmc.loader.impl.entrypoint.EntrypointContainerImpl.getEntrypoint(EntrypointContainerImpl.java:53)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:399)
... 6 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.registry.RegistryKeys
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:226)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
... 14 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:403)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:401)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
at net.minecraft.class_310.<init>(class_310.java:477)
-- Initialization --
Details:
Modules:
ADVAPI32.dll:Advanced Windows 32 Base API:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
COMCTL32.dll:Common Controls Library:5.82 (WinBuild.160101.0800):Microsoft Corporation
CRYPT32.dll:Crypto API32:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
CRYPTBASE.dll:Base cryptographic API DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
CRYPTSP.dll:Cryptographic Service Provider API:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
DBGHELP.DLL:Windows Image Helper:10.0.22621.3593 (WinBuild.160101.0800):Microsoft Corporation
DNSAPI.dll:DNS Client API DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
GDI32.dll:GDI Client DLL:10.0.22621.4036 (WinBuild.160101.0800):Microsoft Corporation
IMM32.DLL:Multi-User Windows IMM32 API Client DLL:10.0.22621.3374 (WinBuild.160101.0800):Microsoft Corporation
IPHLPAPI.DLL:IP Helper API:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
KERNEL32.DLL:Windows NT BASE API Client DLL:10.0.22621.4036 (WinBuild.160101.0800):Microsoft Corporation
KERNELBASE.dll:Windows NT BASE API Client DLL:10.0.22621.4036 (WinBuild.160101.0800):Microsoft Corporation
MSVCP140.dll:Microsoft® C Runtime Library:14.40.33810.0:Microsoft Corporation
MinecraftJava.exe
MpOav.dll:IOfficeAntiVirus Module:4.18.24080.9 (f49fb7de0d838aeebbdbd940314a35a90705840e):Microsoft Corporation
NSI.dll:NSI User-mode interface DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
NTASN1.dll:Microsoft ASN.1 API:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
OLEAUT32.dll:OLEAUT32.DLL:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
Ole32.dll:Microsoft OLE for Windows:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
POWRPROF.dll:Power Profile Helper DLL:10.0.22621.3374 (WinBuild.160101.0800):Microsoft Corporation
PSAPI.DLL:Process Status Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
Pdh.dll:Windows Performance Data Helper DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
RPCRT4.dll:Remote Procedure Call Runtime:10.0.22621.2506 (WinBuild.160101.0800):Microsoft Corporation
SHCORE.dll:SHCORE:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
SHELL32.dll:Windows Shell Common Dll:10.0.22621.4036 (WinBuild.160101.0800):Microsoft Corporation
UMPDC.dll:User Mode Power Dependency Coordinator:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
USER32.dll:Multi-User Windows USER API Client DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
USERENV.dll:Userenv:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
VCRUNTIME140.dll:Microsoft® C Runtime Library:14.40.33810.0:Microsoft Corporation
VCRUNTIME140_1.dll:Microsoft® C Runtime Library:14.40.33810.0:Microsoft Corporation
VERSION.dll:Version Checking and File Installation Libraries:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
WINHTTP.dll:Windows HTTP Services:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
WINMM.dll:MCI API DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
WS2_32.dll:Windows Socket 2.0 32-Bit DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
amsi.dll:Anti-Malware Scan Interface:10.0.22621.3527 (WinBuild.160101.0800):Microsoft Corporation
bcrypt.dll:Windows Cryptographic Primitives Library:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
bcryptPrimitives.dll:Windows Cryptographic Primitives Library:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
clbcatq.dll:COM+ Configuration Catalog:2001.12.10941.16384 (WinBuild.160101.0800):Microsoft Corporation
combase.dll:Microsoft COM for Windows:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
dbgcore.DLL:Windows Core Debugging Helpers:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
discord-rpc.dll
extnet.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
fwpuclnt.dll:FWP/IPsec User-Mode API:10.0.22621.2506 (WinBuild.160101.0800):Microsoft Corporation
gdi32full.dll:GDI Client DLL:10.0.22621.3958 (WinBuild.160101.0800):Microsoft Corporation
instrument.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
java.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
jemalloc.dll
jimage.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
jli.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
jna14150428499584015823.dll:JNA native library:7.0.0:Java(TM) Native Access (JNA)
jna14905303122841197140.dll:JNA native library:7.0.0:Java(TM) Native Access (JNA)
jsvml.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
jvm.dll:OpenJDK 64-Bit server VM:21.0.3.0:Microsoft
kernel.appcore.dll:AppModel API Host:10.0.22621.3958 (WinBuild.160101.0800):Microsoft Corporation
lwjgl.dll
management.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
management_ext.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
msvcp140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
msvcp_win.dll:Microsoft® C Runtime Library:10.0.22621.3374 (WinBuild.160101.0800):Microsoft Corporation
msvcrt.dll:Windows NT CRT DLL:7.0.22621.2506 (WinBuild.160101.0800):Microsoft Corporation
mswsock.dll:Microsoft Windows Sockets 2.0 Service Provider:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
napinsp.dll:E-mail Naming Shim Provider:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
ncrypt.dll:Windows NCrypt Router:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
net.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
nio.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
nlansp_c.dll:NLA Namespace Service Provider DLL:10.0.22621.3672 (WinBuild.160101.0800):Microsoft Corporation
ntdll.dll:NT Layer DLL:10.0.22621.3374 (WinBuild.160101.0800):Microsoft Corporation
perfos.dll:Windows System Performance Objects DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
pfclient.dll:SysMain Client:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
pnrpnsp.dll:PNRP Name Space Provider:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
profapi.dll:User Profile Basic API:10.0.22621.4111 (WinBuild.160101.0800):Microsoft Corporation
rasadhlp.dll:Remote Access AutoDial Helper:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
rsaenh.dll:Microsoft Enhanced Cryptographic Provider:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
sechost.dll:Host for SCM/SDDL/LSA Lookup APIs:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
shlwapi.dll:Shell Light-weight Utility Library:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
sunmscapi.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
ucrtbase.dll:Microsoft® C Runtime Library:10.0.22621.3593 (WinBuild.160101.0800):Microsoft Corporation
vcruntime140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
vcruntime140_1.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
verify.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
win32u.dll:Win32u:10.0.22621.4169 (WinBuild.160101.0800):Microsoft Corporation
windows.storage.dll:Microsoft WinRT Storage API:10.0.22621.3527 (WinBuild.160101.0800):Microsoft Corporation
winrnr.dll:LDAP RnR Provider DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
wintypes.dll:Windows Base Types DLL:10.0.22621.1 (WinBuild.160101.0800):Microsoft Corporation
wshbth.dll:Windows Sockets Helper DLL:10.0.22621.3958 (WinBuild.160101.0800):Microsoft Corporation
zip.dll:OpenJDK Platform binary:21.0.3.0:Microsoft
Stacktrace:
at net.minecraft.client.main.Main.main(Main.java:239)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
-- System Details --
Details:
Minecraft Version: 1.21
Minecraft Version ID: 1.21
Operating System: Windows 11 (amd64) version 10.0
Java Version: 21.0.3, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 636673288 bytes (607 MiB) / 905969664 bytes (864 MiB) up to 2147483648 bytes (2048 MiB)
CPUs: 12
Processor Vendor: AuthenticAMD
Processor Name: AMD Ryzen 5 2600 Six-Core Processor
Identifier: AuthenticAMD Family 23 Model 8 Stepping 2
Microarchitecture: Zen+
Frequency (GHz): 3.59
Number of physical packages: 1
Number of physical CPUs: 6
Number of logical CPUs: 12
Graphics card #0 name: NVIDIA GeForce GTX 1070
Graphics card #0 vendor: NVIDIA
Graphics card #0 VRAM (MiB): 8192.00
Graphics card #0 deviceId: VideoController1
Graphics card #0 versionInfo: 32.0.15.6109
Memory slot #0 capacity (MiB): 8192.00
Memory slot #0 clockSpeed (GHz): 2.40
Memory slot #0 type: Unknown
Memory slot #1 capacity (MiB): 8192.00
Memory slot #1 clockSpeed (GHz): 2.40
Memory slot #1 type: Unknown
Memory slot #2 capacity (MiB): 32768.00
Memory slot #2 clockSpeed (GHz): 2.40
Memory slot #2 type: Unknown
Virtual memory max (MiB): 52151.21
Virtual memory used (MiB): 31426.70
Swap memory total (MiB): 3072.00
Swap memory used (MiB): 69.40
Space in storage for jna.tmpdir (MiB): available: 27178.66, total: 242513.00
Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): available: 27178.66, total: 242513.00
Space in storage for io.netty.native.workdir (MiB): available: 27178.66, total: 242513.00
Space in storage for java.io.tmpdir (MiB): available: 112881.20, total: 953855.00
Space in storage for workdir (MiB): available: 27178.66, total: 242513.00
JVM Flags: 8 total; -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
Fabric Mods:
fabric-api: Fabric API 0.105.0+1.21.1
fabric-api-base: Fabric API Base 0.4.42+6573ed8c19
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.68+b559734419
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.29+5bd9f1bc19
fabric-block-api-v1: Fabric Block API (v1) 1.0.22+0af3f5a719
fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.10+6573ed8c19
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.52+0af3f5a719
fabric-client-tags-api-v1: Fabric Client Tags 1.1.15+6573ed8c19
fabric-command-api-v1: Fabric Command API (v1) 1.2.49+f71b366f19
fabric-command-api-v2: Fabric Command API (v2) 2.2.28+6ced4dd919
fabric-commands-v0: Fabric Commands (v0) 0.2.66+df3654b319
fabric-content-registries-v0: Fabric Content Registries (v0) 8.0.16+b559734419
fabric-convention-tags-v1: Fabric Convention Tags 2.0.23+7f945d5b19
fabric-convention-tags-v2: Fabric Convention Tags (v2) 2.8.0+9d22c5fd19
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.29+0af3f5a719
fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.1.28+1daea21519
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 20.2.20+16c4ae2519
fabric-dimensions-v1: Fabric Dimensions API (v1) 4.0.0+6fc22b9919
fabric-entity-events-v1: Fabric Entity Events (v1) 1.7.0+2122d82819
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.13+ba9dae0619
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.53+6ced4dd919
fabric-item-api-v1: Fabric Item API (v1) 11.1.0+d5debaed19
fabric-item-group-api-v1: Fabric Item Group API (v1) 4.1.5+3fc0e55219
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.47+0af3f5a719
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.45+df3654b319
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.3.12+6c1df36019
fabric-loot-api-v2: Fabric Loot API (v2) 3.0.14+3f89f5a519
fabric-loot-api-v3: Fabric Loot API (v3) 1.0.2+3f89f5a519
fabric-message-api-v1: Fabric Message API (v1) 6.0.13+6573ed8c19
fabric-model-loading-api-v1: Fabric Model Loading API (v1) 2.0.0+fe474d6b19
fabric-networking-api-v1: Fabric Networking API (v1) 4.3.0+c7469b2119
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 15.2.0+40875a9319
fabric-particles-v1: Fabric Particles (v1) 4.0.2+6573ed8c19
fabric-recipe-api-v1: Fabric Recipe API (v1) 5.0.13+6508971219
fabric-registry-sync-v0: Fabric Registry Sync (v0) 5.1.3+60c3209b19
fabric-renderer-api-v1: Fabric Renderer API (v1) 3.4.0+c705a49c19
fabric-renderer-indigo: Fabric Renderer - Indigo 1.7.0+c705a49c19
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.68+df3654b319
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.48+73761d2e19
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.6+1daea21519
fabric-rendering-v0: Fabric Rendering (v0) 1.1.71+df3654b319
fabric-rendering-v1: Fabric Rendering (v1) 5.0.5+df16efd019
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 4.3.0+8dc279b119
fabric-resource-loader-v0: Fabric Resource Loader (v0) 1.3.0+5659912919
fabric-screen-api-v1: Fabric Screen API (v1) 2.0.25+8b68f1c719
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.87+b559734419
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.23+6573ed8c19
fabric-transfer-api-v1: Fabric Transfer API (v1) 5.3.0+d831205f19
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 6.1.0+1daea21519
fabricloader: Fabric Loader 0.16.5
mixinextras: MixinExtras 0.4.1
ironchest: Iron Chests 2.0.3
java: OpenJDK 64-Bit Server VM 21
minecraft: Minecraft 1.21
Launched Version: fabric-loader-0.16.5-1.21
Launcher name: java-minecraft-launcher
Backend library: LWJGL version 3.3.3-snapshot
Backend API: Unknown
Window size: <not initialized>
GFLW Platform: <error>
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages: <disabled>
Is Modded: Definitely; Client brand changed to 'fabric'
Universe: 404
Type: Client (map_client.txt)
Locale: en_US
System encoding: Cp1252
File encoding: UTF-8
CPU: <unknown>
When launching the game with fabric launcher (ver.: 0.16.5) 1.21 the launcher throws the error:
Doing the same but in 1.21.1 the mod works fine.
My reason for this issue is the mod being marked as supports 1.21 but as it seems it doesn't.
I tried changing the dependency version and building it on my own and that produced an error as well which leads me to think, maybe the mod wasn't supposed to support 1.21?
Error in question: