I have been putting some mods together for fun recently, however when I try to add the mod RpgDifficulty mod I end up getting this error (first one). I noticed that in the error it was mentioning the moonlight api, so just for good measure I removed it and the mods that relied on it, however I sitll got an error (second one).
---- Crashed! ----
Date/Time: 2023/04/05 24:43:48.6631
-- Crash --
org.quiltmc.loader.impl.FormattedException: java.lang.ExceptionInInitializerError
at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:529)
at org.quiltmc.loader.impl.launch.knot.Knot.launch(Knot.java:82)
at org.quiltmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:28)
Caused by: java.lang.ExceptionInInitializerError
at net.minecraft.class_1802.<clinit>(class_1802.java:21)
at net.mehvahdjukaar.moonlight.api.fluids.FoodProvider.<clinit>(FoodProvider.java:33)
at net.mehvahdjukaar.moonlight.api.fluids.SoftFluid$Builder.<init>(SoftFluid.java:244)
at net.mehvahdjukaar.moonlight.api.fluids.fabric.SoftFluidRegistryImpl.getDefaultValue(SoftFluidRegistryImpl.java:81)
at net.minecraft.class_5458.method_44104(class_5458.java:98)
at net.minecraft.class_5458.method_30566(class_5458.java:105)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721)
at net.minecraft.class_5458.<clinit>(class_5458.java:104)
at net.minecraft.class_2378.<clinit>(class_2378.java:326)
at net.minecraft.class_2966.method_12851(class_2966.java:50)
at net.minecraft.client.main.Main.method_44604(Main.java:161)
at net.minecraft.client.main.Main.main(Main.java:51)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:527)
... 2 more
Caused by: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_1528 failed
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:456)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:246)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClassOnly(KnotClassDelegate.java:164)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:150)
at org.quiltmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:228)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at net.minecraft.class_2246.<clinit>(class_2246.java:451)
... 19 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:451)
... 25 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinPreProcessorException: Attach error for #rpgdifficulty:rpgdifficulty.mixins.json:entity.WitherEntityMixin from mod rpgdifficulty during activity: [Transform -> Method mobTickMixin(F)F -> INVOKESTATIC -> net/fabricmc/fabric/mixin/object/builder/DefaultAttributeRegistryAccessor::getRegistry:()Ljava/util/Map;]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:313)
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:277)
at org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1289)
at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:294)
at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:421)
at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:403)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363)
... 28 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: net.fabricmc.fabric.mixin.object.builder.DefaultAttributeRegistryAccessor
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transformMemberReference(MixinPreProcessorStandard.java:786)
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transformMethod(MixinPreProcessorStandard.java:772)
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transform(MixinPreProcessorStandard.java:738)
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:307)
... 34 more
Caused by: java.lang.ClassNotFoundException: net.fabricmc.fabric.mixin.object.builder.DefaultAttributeRegistryAccessor
... 38 more
=========================================
---- Crashed! ----
Date/Time: 2023/04/05 24:50:00.5241
-- Crash --
org.quiltmc.loader.impl.FormattedException: java.lang.ExceptionInInitializerError
at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:529)
at org.quiltmc.loader.impl.launch.knot.Knot.launch(Knot.java:82)
at org.quiltmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:28)
Caused by: java.lang.ExceptionInInitializerError
at net.minecraft.class_5872.<clinit>(class_5872.java:9)
at net.minecraft.class_5871.method_33968(class_5871.java:20)
at com.mojang.serialization.codecs.RecordCodecBuilder.mapCodec(RecordCodecBuilder.java:76)
at net.minecraft.class_5871.<clinit>(class_5871.java:16)
at net.minecraft.class_2939.<clinit>(class_2939.java:32)
at net.minecraft.class_5463.<clinit>(class_5463.java:21)
at net.minecraft.class_5458.method_30572(class_5458.java:66)
at net.minecraft.class_5458.method_44104(class_5458.java:98)
at net.minecraft.class_5458.method_30566(class_5458.java:105)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721)
at net.minecraft.class_5458.<clinit>(class_5458.java:104)
at net.minecraft.class_2378.<clinit>(class_2378.java:326)
at net.minecraft.class_2966.method_12851(class_2966.java:50)
at net.minecraft.client.main.Main.method_44604(Main.java:161)
at net.minecraft.client.main.Main.main(Main.java:51)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.quiltmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:527)
... 2 more
Caused by: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_1528 failed
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:456)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:246)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClassOnly(KnotClassDelegate.java:164)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:150)
at org.quiltmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:228)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at net.minecraft.class_2246.<clinit>(class_2246.java:451)
... 22 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
at org.quiltmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:451)
... 28 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinPreProcessorException: Attach error for #rpgdifficulty:rpgdifficulty.mixins.json:entity.WitherEntityMixin from mod rpgdifficulty during activity: [Transform -> Method mobTickMixin(F)F -> INVOKESTATIC -> net/fabricmc/fabric/mixin/object/builder/DefaultAttributeRegistryAccessor::getRegistry:()Ljava/util/Map;]
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:313)
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:277)
at org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1289)
at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:294)
at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:421)
at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:403)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363)
... 31 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: net.fabricmc.fabric.mixin.object.builder.DefaultAttributeRegistryAccessor
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transformMemberReference(MixinPreProcessorStandard.java:786)
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transformMethod(MixinPreProcessorStandard.java:772)
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.transform(MixinPreProcessorStandard.java:738)
at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:307)
... 37 more
Caused by: java.lang.ClassNotFoundException: net.fabricmc.fabric.mixin.object.builder.DefaultAttributeRegistryAccessor
... 41 more
Here is the mod list (without moonlight):
AdvancementPlaques-1.19.2-fabric-1.4.6.jar
advdebug-2.3.0.jar
autopath-mc1.19.2-1.4.9.jar
BetterAdvancements-Fabric-1.19.2-0.2.2.142.jar
carryon-fabric-1.19.2-2.0.4.6.jar
CorgiLib-fabric-1.19.2-1.0.0.32.jar
CraftTweaker-fabric-1.19.2-10.1.41.jar
doubledoors-1.19.2-4.5.jar
Droplight-1.19.2-fabric-1.0.5.jar
Enhanced_Celestials-fabric-1.19.2-2.1.0.5.jar
EquipmentCompare-1.19-fabric-1.3.1.jar
ForgeConfigAPIPort-v4.2.11-1.19.2-Fabric.jar
gravestones-v1.13.jar
IngredientExtensionAPI-fabric-1.19.2-3.0.6.jar
inventorio-1.19-fabric-1.8.7.jar
jei-1.19.2-fabric-11.6.0.1013.jar
JeiTweaker-fabric-1.19.2-4.0.11.jar
lazydfu-0.1.3.jar
LeavesBeGone-v4.0.1-1.19.2-Fabric.jar
lootr-1.19-0.4.25.64.jar
MobCatcher-Fabric-1.19.2-1.2.15.jar
playerex-3.5.2.jar
Prism-1.19.2-fabric-1.0.3.jar
rare-ice-0.5.0.jar
relicex-3.3.1+1.19.2.jar
rpgdifficulty-1.3.7.jar
travelers-backpack-1.19.2-8.2.17.jar
trinkets-3.4.2.jar
3dskinlayers-fabric-1.5.2-mc1.19.1.jar
AdditionalStructures-1.19.x-(v.4.1.1).jar
adventurez-1.4.17.jar
architectury-6.5.69-fabric.jar
AttributeFix-Fabric-1.19.2-17.2.6.jar
badpackets-fabric-0.2.1.jar
balm-fabric-1.19.2-4.5.7.jar
BambooEverything-fabric-2.2.4-build.33+mc1.19.2.jar
bclib-2.1.6.jar
better-end-2.1.4.jar
better-nether-7.1.3.jar
betteranimalsplus-1.19.2-11.0.10-fabric.jar
BetterThirdPerson-Fabric-1.19-1.8.1.jar
BOMD-1.4.6-1.19.2.jar
Bookshelf-Fabric-1.19.2-16.2.18.jar
BountifulFabric-4.0.0.jar
cardinal-components-api-5.0.2.jar
chipped-fabric-1.19.2-2.1.4.jar
cloth-config-8.2.88-fabric.jar
collective-1.19.2-6.53.jar
continuity-2.0.2+1.19.jar
creeperoverhaul-2.0.9-fabric.jar
Croptopia-1.19.2-FABRIC-2.2.2.jar
ctov-3.1.8.jar
ctov-waystone-compat-1.0.jar
dataattributes-1.4.3+1.19.2.jar
deeperdarker-fabric-1.1.6-fabric.jar
dragonfight-fabric-1.19.2-2.7.jar
DungeonsArise-1.19.2-2.1.54-fabric.jar
dusk-fabric-1.19.1-2.2.jar
effective-1.6+1.19.2.jar
eldritch-mobs-1.12.11.jar
elytraslot-fabric-6.1.0+1.19.2.jar
EnchantmentDescriptions-Fabric-1.19.2-13.0.14.jar
enchantwithmob-quilt-1.2.0+1.19.2.jar
entityculling-fabric-1.6.1-mc1.19.2.jar
explorify-fabric-1.19-1.3.0.jar
fabric-end-remastered-5.2.0.jar
fabric-language-kotlin-1.9.3+kotlin.1.8.20.jar
fallingleaves-1.13.0+1.19.2.jar
farmers-delight-fabric-1.19.X-1.3.9.jar
farsight-fabric-1.19-2.4.jar
friendsandfoes-fabric-mc1.19.2-1.8.0.jar
geckolib-quilt-1.19-3.1.41.jar
giantspawn-1.19.2-4.5.jar
global_packs-fabric-1.19.2-1.14.3.1_fabric.jar
goblin-traders-1.5.2.jar
grizzlybear-1.19.2-1.3.jar
handcrafted-fabric-1.19.2-2.0.6.jar
Highlighter-1.19.1-fabric-1.1.4.jar
hookshot-26.0.jar
Iceberg-1.19.1-fabric-1.0.46.jar
illuminations-1.10.11.jar
Incendium_1.19.3_v5.1.6.jar
indium-1.0.9+mc1.19.2.jar
interactic-0.1.11+1.19.jar
InventoryHUD-fabric-[1.19.1]+-3.4.2.jar
iris-mc1.19.2-1.5.2.jar
ItemBorders-1.19-fabric-1.1.6.jar
Kambrik-4.0-1.19.2.jar
LegendaryTooltips-1.19.2-fabric-1.3.3.jar
letmedespawn-1.18.x-1.19.x-fabric-1.0.2.jar
lithium-fabric-mc1.19.2-0.11.1.jar
lovely_snails-1.1.0+1.19.jar
MagnumTorch-v4.2.1-1.19.2-Fabric.jar
mcw-bridges-2.0.7-mc1.19.2fabric.jar
mcw-doors-1.0.9fabric-mc1.19.2.jar
mcw-fences-1.0.7-mc1.19.2fabric.jar
mcw-furniture-3.1.1-mc1.19.2fabric.jar
mcw-lights-1.0.5-mc1.19.2fabric.jar
mcw-paintings-1.0.4fabric-mc1.19.2.jar
mcw-roofs-2.2.3-mc1.19.2fabric.jar
mcw-trapdoors-1.0.9-mc1.19.2fabric.jar
mcw-windows-2.1.2-mc1.19.2fabric.jar
minecraft-comes-alive-7.4.8+1.19.2-universal.jar
modmenu-4.2.0-beta.2.jar
morevillagers-fabric-1.19-4.0.2.jar
mostructures-1.4.3+1.19.2.jar
MouseTweaks-fabric-mc1.19-2.22.jar
mythic-mounts-1.19.2-7.1.jar
naturalist-fabric-2.1.1-1.19.2.jar
netherportalfix-fabric-1.19-10.0.1.jar
netherportalspread-1.19.2-7.5.jar
Oh_The_Biomes_You'll_Go-fabric-1.19.2-2.0.0.13.jar
Patchouli-1.19.2-77-FABRIC.jar
puddles-1.2.2.jar
PuzzlesLib-v4.3.12-1.19.2-Fabric.jar
qfapi-4.0.0-beta.30_qsl-3.0.0-beta.29_fapi-0.76.0_mc-1.19.2.jar
quartz-elevator-2.1.5+1.19.jar
reeses_sodium_options-1.4.6+mc1.19.2-build.55.jar
repurposed_structures_quilt-6.3.20+1.19.2.jar
resourcefulconfig-fabric-1.19.2-1.0.20.jar
resourcefullib-fabric-1.19.2-1.1.23.jar
rocks-1.6.1.jar
rottencreatures-fabric-1.19.2-1.0.1.jar
ruined-equipment-2.0.0+1.19.jar
shroomdealers_1.6-1.19.2-fabric.jar
sodium-extra-0.4.16+mc1.19.2-build.90.jar
sodium-fabric-mc1.19.2-0.4.4+build.18.jar
soundphysics-fabric-1.19.2-1.0.18.jar
spirit-fabric-1.19.2-2.2.4.jar
starlight-1.1.1+fabric.ae22326.jar
stoneholm-1.4.4.jar
Structory_1.19.3_v1.3.1a.jar
TerraBlender-fabric-1.19.2-2.0.1.130.jar
Terralith_1.19.3_v2.3.7b.jar
The_Graveyard_2.3_(FABRIC)_for_1.19.2.jar
thonkutil-2.15.4+1.19.jar
totw_additions-1.2.4-1.19.x-fabric.jar
Towns-and-Towers-1.19.2-1.9.jar
twilightforest-fabric-1.19.2-4.2.335.jar
untitledduckmod-0.6.1-1.19.2-fabric.jar
Wabi-Sabi-Structures-1.1.1-Fabric.jar
waystones-fabric-1.19.2-11.3.1.jar
wetlands-1.0.2-1.19.2.jar
wthit-quilt-5.15.1.jar
YungsApi-1.19.2-Fabric-3.8.9.jar
YungsBetterDesertTemples-1.19.2-Fabric-2.2.2.jar
YungsBetterDungeons-1.19.2-Fabric-3.2.1.jar
YungsBetterMineshafts-1.19.2-Fabric-3.2.0.jar
YungsBetterNetherFortresses-1.19.2-Fabric-1.0.5.jar
YungsBetterOceanMonuments-1.19.2-Fabric-2.1.0.jar
YungsBetterStrongholds-1.19.2-Fabric-3.2.0.jar
YungsBetterWitchHuts-1.19.2-Fabric-2.1.0.jar
YungsExtras-1.19.2-Fabric-3.1.0.jar