Jump to content

File jar. is not a valid mod file


SpeRubrum

Recommended Posts

I'm trying to create a mod for version 1.19 of Minecraft, but every time I run it I get this error, I'm new to this area... I've already reviewed the code several times and I can't find the problem. Can someone help me.

Link for image error: image
 

Just now, SpeRubrum said:

I'm trying to create a mod for version 1.19 of Minecraft, but every time I run it I get this error, I'm new to this area... I've already reviewed the code several times and I can't find the problem. Can someone help me.

Link for image error: image
 

[21:26:44] [main/INFO]: ModLauncher running: args [--username, BielNTD64, --version, Test my MOD, --gameDir, D:\.minecraft\versions\Test my MOD, --assetsDir, D:\.minecraft\assets, --assetIndex, 1.19, --uuid, 53008a9d-c18d-11e8-8716-002590a1379b, --accessToken, ????????, --clientId, null, --xuid, null, --userType, mojang, --versionType, release, --width, 925, --height, 530, --launchTarget, forgeclient, --fml.forgeVersion, 41.1.0, --fml.mcVersion, 1.19, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220607.102129]
[21:26:44] [main/INFO]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.3 by Microsoft; OS Windows 10 arch amd64 version 10.0
[21:26:44] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/D:/.minecraft/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2396!/ Service=ModLauncher Env=CLIENT
[21:26:44] [main/ERROR]: Invalid modId found in file D:\.minecraft\versions\Test my MOD\mods\pasmod-0.0-1.jar - PasMod does not match the standard: ^[a-z][a-z0-9_]{1,63}$
[21:26:44] [main/ERROR]: Locator {mods folder locator at D:\.minecraft\versions\Test my MOD\mods} found an invalid mod file net.minecraftforge.fml.loading.moddiscovery.ModFileInfo@1f651cd8
net.minecraftforge.fml.loading.moddiscovery.InvalidModFileException: Invalid modId found : PasMod (pasmod-0.0-1.jar)
    at net.minecraftforge.fml.loading.moddiscovery.ModInfo.<init>(ModInfo.java:61) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.lambda$new$2(ModFileInfo.java:69) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
    at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
    at net.minecraftforge.fml.loading.moddiscovery.ModFileInfo.<init>(ModFileInfo.java:70) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.modsTomlParser(ModFileParser.java:47) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at net.minecraftforge.fml.loading.moddiscovery.ModFileParser.readModList(ModFileParser.java:31) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at net.minecraftforge.fml.loading.moddiscovery.ModFile.<init>(ModFile.java:79) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at net.minecraftforge.fml.loading.moddiscovery.ModFile.<init>(ModFile.java:68) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at net.minecraftforge.fml.loading.moddiscovery.AbstractModProvider.createMod(AbstractModProvider.java:52) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at net.minecraftforge.fml.loading.moddiscovery.AbstractJarFileModLocator.lambda$scanMods$0(AbstractJarFileModLocator.java:19) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
    at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
    at java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) ~[?:?]
    at java.util.stream.Sink$ChainedReference.end(Sink.java:258) ~[?:?]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) ~[?:?]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?]
    at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?]
    at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) ~[?:?]
    at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) ~[?:?]
    at net.minecraftforge.fml.loading.moddiscovery.AbstractJarFileModLocator.scanMods(AbstractJarFileModLocator.java:19) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:74) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:166) ~[fmlloader-1.19-41.1.0.jar%2399!/:1.0]
    at net.minecraftforge.fml.loading.FMLServiceProvider.beginScanning(FMLServiceProvider.java:86) ~[fmlloader-1.19-41.1.0.jar%2399!/:1.0]
    at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:112) ~[modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:100) ~[modlauncher-10.0.8.jar%2387!/:?]
    at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) [?:?]
    at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779) [?:?]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) [?:?]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) [?:?]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) [?:?]
    at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) [?:?]
    at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) [?:?]
    at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) [?:?]
    at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) [?:?]
    at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:102) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:55) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:87) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?]
[21:26:44] [main/WARN]: Mod file D:\.minecraft\libraries\net\minecraftforge\fmlcore\1.19-41.1.0\fmlcore-1.19-41.1.0.jar is missing mods.toml file
[21:26:44] [main/WARN]: Mod file D:\.minecraft\libraries\net\minecraftforge\javafmllanguage\1.19-41.1.0\javafmllanguage-1.19-41.1.0.jar is missing mods.toml file
[21:26:44] [main/WARN]: Mod file D:\.minecraft\libraries\net\minecraftforge\lowcodelanguage\1.19-41.1.0\lowcodelanguage-1.19-41.1.0.jar is missing mods.toml file
[21:26:44] [main/WARN]: Mod file D:\.minecraft\libraries\net\minecraftforge\mclanguage\1.19-41.1.0\mclanguage-1.19-41.1.0.jar is missing mods.toml file
[21:26:44] [main/INFO]: Found mod file fmlcore-1.19-41.1.0.jar of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6f8d7714
[21:26:44] [main/INFO]: Found mod file javafmllanguage-1.19-41.1.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6f8d7714
[21:26:44] [main/INFO]: Found mod file lowcodelanguage-1.19-41.1.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6f8d7714
[21:26:44] [main/INFO]: Found mod file mclanguage-1.19-41.1.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6f8d7714
[21:26:44] [main/INFO]: Found mod file client-1.19-20220607.102129-srg.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6f8d7714
[21:26:44] [main/INFO]: Found mod file forge-1.19-41.1.0-universal.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@6f8d7714
[21:26:44] [main/INFO]: No dependencies to load found. Skipping!
[21:26:46] [main/INFO]: Launching target 'forgeclient' with arguments [--version, Test my MOD, --gameDir, D:\.minecraft\versions\Test my MOD, --assetsDir, D:\.minecraft\assets, --uuid, 53008a9d-c18d-11e8-8716-002590a1379b, --username, BielNTD64, --assetIndex, 1.19, --accessToken, ????????, --clientId, null, --xuid, null, --userType, mojang, --versionType, release, --width, 925, --height, 530]
[21:26:50] [pool-3-thread-1/INFO]: Building unoptimized datafixer
[21:26:52] [Render thread/WARN]: Assets URL 'union:/D:/.minecraft/libraries/net/minecraft/client/1.19-20220607.102129/client-1.19-20220607.102129-srg.jar%23150!/assets/.mcassetsroot' uses unexpected schema
[21:26:52] [Render thread/WARN]: Assets URL 'union:/D:/.minecraft/libraries/net/minecraft/client/1.19-20220607.102129/client-1.19-20220607.102129-srg.jar%23150!/data/.mcassetsroot' uses unexpected schema
[21:26:52] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[21:26:53] [Render thread/ERROR]: Failed to verify authentication
com.mojang.authlib.exceptions.InvalidCredentialsException: Status: 401
    at com.mojang.authlib.exceptions.MinecraftClientHttpException.toAuthenticationException(MinecraftClientHttpException.java:56) ~[authlib-3.5.41.jar%23126!/:?]
    at com.mojang.authlib.yggdrasil.YggdrasilUserApiService.fetchProperties(YggdrasilUserApiService.java:140) ~[authlib-3.5.41.jar%23126!/:?]
    at com.mojang.authlib.yggdrasil.YggdrasilUserApiService.<init>(YggdrasilUserApiService.java:47) ~[authlib-3.5.41.jar%23126!/:?]
    at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createUserApiService(YggdrasilAuthenticationService.java:158) ~[authlib-3.5.41.jar%23126!/:?]
    at net.minecraft.client.Minecraft.m_193585_(Minecraft.java:615) ~[client-1.19-20220607.102129-srg.jar%23150!/:?]
    at net.minecraft.client.Minecraft.<init>(Minecraft.java:392) ~[client-1.19-20220607.102129-srg.jar%23150!/:?]
    at net.minecraft.client.main.Main.main(Main.java:170) ~[client-1.19-20220607.102129-srg.jar%23150!/:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
    at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19-41.1.0.jar%2399!/:?]
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2387!/:?]
    at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?]
Caused by: com.mojang.authlib.exceptions.MinecraftClientHttpException: Status: 401
    at com.mojang.authlib.minecraft.client.MinecraftClient.readInputStream(MinecraftClient.java:85) ~[authlib-3.5.41.jar%23126!/:?]
    at com.mojang.authlib.minecraft.client.MinecraftClient.get(MinecraftClient.java:48) ~[authlib-3.5.41.jar%23126!/:?]
    at com.mojang.authlib.yggdrasil.YggdrasilUserApiService.fetchProperties(YggdrasilUserApiService.java:121) ~[authlib-3.5.41.jar%23126!/:?]
    ... 18 more
[21:26:53] [Render thread/INFO]: Setting user: BielNTD64
[21:26:53] [Render thread/INFO]: Backend library: LWJGL version 3.3.1 build 7
[21:26:54] [modloading-worker-0/INFO]: Forge mod loading, version 41.1.0, for MC 1.19 with MCP 20220607.102129
[21:26:54] [modloading-worker-0/INFO]: MinecraftForge v41.1.0 Initialized
[21:26:55] [Worker-Main-1/ERROR]: Failed to retrieve profile key pair
java.io.IOException: Could not retrieve profile key pair
    at net.minecraft.client.multiplayer.ProfileKeyPairManager.m_233789_(ProfileKeyPairManager.java:137) ~[client-1.19-20220607.102129-srg.jar%23150!/:?]
    at net.minecraft.client.multiplayer.ProfileKeyPairManager.m_233796_(ProfileKeyPairManager.java:63) ~[client-1.19-20220607.102129-srg.jar%23150!/:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) [?:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) [?:?]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) [?:?]
    at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) [?:?]
    at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) [?:?]
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) [?:?]
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [?:?]
[21:26:55] [Render thread/INFO]: Reloading ResourceManager: Default, Mod Resources
[21:27:08] [Forge Version Check/INFO]: [forge] Starting version check at https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json
[21:27:09] [Forge Version Check/INFO]: [forge] Found status: UP_TO_DATE Current: 41.1.0 Target: null
[21:27:10] [Render thread/WARN]: Missing sound for event: minecraft:item.goat_horn.play
[21:27:10] [Render thread/WARN]: Missing sound for event: minecraft:entity.goat.screaming.horn_break
[21:27:10] [Render thread/INFO]: OpenAL initialized on device OpenAL Soft on Alto-falantes (3- Realtek High Definition Audio)
[21:27:10] [Render thread/INFO]: Sound engine started
[21:27:10] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
[21:27:10] [Render thread/INFO]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas
[21:27:10] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
[21:27:10] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
[21:27:10] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
[21:27:10] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
[21:27:10] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[21:27:12] [Render thread/WARN]: Shader rendertype_entity_translucent_emissive could not find sampler named Sampler2 in the specified shader program.
[21:27:12] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
[21:27:12] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[21:27:12] [Render thread/INFO]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas
 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.