Naamah Posted January 4, 2023 Posted January 4, 2023 (edited) I've tried different jdks, reinstalling minecraft, reinstalling IntelliJ, and restarting the project from scratch and I cant figure out why this error is happening. Full error: Exception in thread "main" java.lang.IllegalStateException: Failed to find system mod: minecraft at MC-BOOTSTRAP/fmlloader@1.19-41.1.0/net.minecraftforge.fml.loading.ModSorter.detectSystemMods(ModSorter.java:181) at MC-BOOTSTRAP/fmlloader@1.19-41.1.0/net.minecraftforge.fml.loading.ModSorter.buildUniqueList(ModSorter.java:145) at MC-BOOTSTRAP/fmlloader@1.19-41.1.0/net.minecraftforge.fml.loading.ModSorter.sort(ModSorter.java:53) at MC-BOOTSTRAP/fmlloader@1.19-41.1.0/net.minecraftforge.fml.loading.moddiscovery.ModValidator.stage2Validation(ModValidator.java:101) at MC-BOOTSTRAP/fmlloader@1.19-41.1.0/net.minecraftforge.fml.loading.FMLLoader.completeScan(FMLLoader.java:175) at MC-BOOTSTRAP/fmlloader@1.19-41.1.0/net.minecraftforge.fml.loading.FMLServiceProvider.completeScan(FMLServiceProvider.java:91) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.TransformationServiceDecorator.onCompleteScan(TransformationServiceDecorator.java:174) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.TransformationServicesHandler.lambda$triggerScanCompletion$24(TransformationServicesHandler.java:145) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.TransformationServicesHandler.triggerScanCompletion(TransformationServicesHandler.java:147) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.Launcher.run(Launcher.java:94) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.Launcher.main(Launcher.java:77) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.8/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at cpw.mods.bootstraplauncher@1.1.2/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) Edited January 4, 2023 by Naamah Quote Not even gonna lie, I think I have autism
warjort Posted January 4, 2023 Posted January 4, 2023 If the forge bootstrap can't find minecraft this will be an issue with your launcher. If you are using the vanilla launcher post a link to the launcher_log.txt otherwise speak to whoever produces your launcher. Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
Naamah Posted January 5, 2023 Author Posted January 5, 2023 On 1/4/2023 at 9:12 AM, warjort said: If the forge bootstrap can't find minecraft this will be an issue with your launcher. If you are using the vanilla launcher post a link to the launcher_log.txt otherwise speak to whoever produces your launcher. Expand I see that my minecraft launcher is installing it's installations to the curseforge client install location, but after running the runClient, it gives the error but neither the log for the vanilla launcher, nor the curseforge launcher change. Quote Not even gonna lie, I think I have autism
warjort Posted January 5, 2023 Posted January 5, 2023 You need to explain better what you are doing. runclient is a gradle task used in development, it will not use anything from a production environment like curseforge If it can't find minecraft in the development environment, then you have likely broken your build.gradle in some way. Or you have not run the relevant gradle task to setup the run configurations for your IDE if you are starting it that way. https://forge.gemwire.uk/wiki/Getting_Started Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
Naamah Posted January 6, 2023 Author Posted January 6, 2023 (edited) On 1/5/2023 at 10:15 PM, warjort said: You need to explain better what you are doing. runclient is a gradle task used in development, it will not use anything from a production environment like curseforge If it can't find minecraft in the development environment, then you have likely broken your build.gradle in some way. Or you have not run the relevant gradle task to setup the run configurations for your IDE if you are starting it that way. https://forge.gemwire.uk/wiki/Getting_Started Expand This may sound like the weirded shit ever, but I refollowed the Getting Started section and it was all going well until I edited the mods.toml file. The only thing I changed in there was the name and author. If I don't touch the file, no error occurs and I can start the client like normal (gives an error, but the game actually starts). Edited January 6, 2023 by Naamah Quote Not even gonna lie, I think I have autism
Naamah Posted January 6, 2023 Author Posted January 6, 2023 On 1/6/2023 at 12:49 AM, Naamah said: This may sound like the weirded shit ever, but I refollowed the Getting Started section and it was all going well until I edited the mods.toml file. The only thing I changed in there was the name and author. If I don't touch the file, no error occurs and I can start the client like normal (gives an error, but the game actually starts). Expand So after a bunch of searching the error only happens when I change the modId="examplemod" to my own modid in the mods.toml file. I used a different modid and it worked, but it could just be that I am dumb as hell and cant solve a simple problem Quote Not even gonna lie, I think I have autism
warjort Posted January 6, 2023 Posted January 6, 2023 https://github.com/MinecraftForge/MinecraftForge/blob/b0a68b8c7947132411e44527dd3675f2f1d5fd6a/mdk/src/main/java/com/example/examplemod/ExampleMod.java#L27 Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
Lol_xd5 Posted March 3, 2023 Posted March 3, 2023 I found out what's wrong. The modId has some reqirements, i had the same problem i changed it and it worked. You can find them here:https://forge.gemwire.uk/wiki/Mods.toml Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.