Posted October 30, 20205 yr I get this error whenever I try to run some test mod that I made because I decided to learn Forge modding \ license="All rights reserved" #issueTrackerURL="http://my.issue.tracker/" #optional [[mods]] #mandatory modId="somerandommodid" #mandatory version="1.0.0" #mandatory displayName="T E S T" #mandatory #updateJSONURL="http://myurl.me/" #optional #displayURL="https://example.com/" #optional modLoader="javafml" loaderVersion="[31,)" #logoFile="examplemod.png" #optional #credits="Thanks for this example mod goes to Java" #optional authors="Fake_Name131" description=''' commands _fc/_fakechat Adds a fake message to chat. (Accepts & color codes) ''' [[dependencies.somerandommodid]] #optional modId="forge" #mandatory mandatory=true #mandatory versionRange="[34,)" #mandatory ordering="NONE" side="Client" [[dependencies.somerandommodid]] modId="minecraft" mandatory=true versionRange="[1.16.3]" ordering="NONE" side="BOTH"
October 30, 20205 yr Since I can't see the error, I'm gonna guess that it's telling you don't have a supplied mod loader or loader version since they are attached to the mods list instead of being global.
October 30, 20205 yr Author 16 minutes ago, ChampionAsh5357 said: Since I can't see the error, I'm gonna guess that it's telling you don't have a supplied mod loader or loader version since they are attached to the mods list instead of being global. [mException in thread "main" [32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: net.minecraftforge.fml.loading.moddiscovery.InvalidModFileException: Missing ModLoader in file (main) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.lambda$new$0(ModFileInfo.java:64) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at java.base/java.util.Optional.orElseThrow(Optional.java:408) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.<init>(ModFileInfo.java:64) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.modsTomlParser(ModFileParser.java:62) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.readModList(ModFileParser.java:46) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at net.minecraftforge.fml.loading.moddiscovery.ModFile.identifyMods(ModFile.java:113) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:116) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:213) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at net.minecraftforge.fml.loading.FMLServiceProvider.runScan(FMLServiceProvider.java:107) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:114) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:115) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1675) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:116) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:63) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [m[32m[17:21:55] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) Edited October 30, 20205 yr by Fake_Name131
October 30, 20205 yr Show your mods.toml file please Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
October 31, 20205 yr 2 hours ago, Beethoven92 said: Show your mods.toml file please They did. It was their starting post. Also, it seems that my hypothesis was correct. the mods.toml is ordered by the default in the mdk. This means you moved the variables around expecting it to work. However, the brackets indicates that whatever comes afterwards is applied to the specific mod and not global information. The modloader and version are global information that must be known independent of the mod. Please look at a default mods.toml and order your variables accordingly.
October 31, 20205 yr 1 minute ago, ChampionAsh5357 said: They did. It was their starting post. Yep, i wonder how i missed that 😆 Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
October 31, 20205 yr 14 minutes ago, poopoodice said: Licence can't be located above modid It must be loaded above [[mods]], so yes it must be...
October 31, 20205 yr 16 minutes ago, ChampionAsh5357 said: It must be loaded above [[mods]], so yes it must be... You're right it needs to be above it, apparently I have them mixed up
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.