Jump to content

mods.toml missing metadata for modid lifesharing


Recommended Posts

Problem Description:

-------------------------------------------------------------

I pulled the `forge 1.18.2.x` version of `forge` in a new folder. I created a test `MOD` according to the official `forge` documentation

  • `Main.java`      
  package com.AJ.LifeSharing;
  import net.minecraftforge.fml.common.Mod;
  @Mod(Utils.MOD_ID)
  public class Main {
  } 
  • `Utils.java`
  package com.AJ.LifeSharing;
  public class Utils {
      public static final String MOD_ID = "lifesharing";
  }

But when I run `runClient`, the game prompts me with `mods.toml missing metadata for modid lifesharing`

I'm pretty sure this is caused by the `test mod(lifesharing)` I added, because before I added the `test mod(lifesharing)`, which was just after I extracted `forge` to the directory, I tried to run `runClient` once and it ran successfully and the game didn't report any errors.

So I followed the prompts to find the `mods.toml` file and confirmed that the changes were implemented according to the `forge` documentation. (Here is a question, the official documentation says `mods.toml` is in the `resources/META-INF` directory, but I found the `mods.toml` file in the `build/resources/META-INF` directory, is this normal?)

  • `mods.toml`
  # This is an example mods.toml file. It contains the data relating to the loading mods.
  # There are several mandatory fields (#mandatory), and many more that are optional (#optional).
  # The overall format is standard TOML format, v0.5.0.
  # Note that there are a couple of TOML lists in this file.
  # Find more information on toml format here: https://github.com/toml-lang/toml
  # The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
  modLoader="javafml" #mandatory
  # A version range to match for said mod loader - for regular FML @Mod it will be the forge version
  loaderVersion="[40,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
  # The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
  # Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
  license="All rights reserved"
  # A URL to refer people to when problems occur with this mod
  #issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
  # A list of mods - how many allowed here is determined by the individual mod loader
  [[mods]] #mandatory
  # The modid of the mod
  modId="examplemod" #mandatory
  # The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
  # ${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata
  # see the associated build.gradle script for how to populate this completely automatically during a build
  version="${file.jarVersion}" #mandatory
   # A display name for the mod
  displayName="Example Mod" #mandatory
  # A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/
  #updateJSONURL="https://change.me.example.invalid/updates.json" #optional
  # A URL for the "homepage" for this mod, displayed in the mod UI
  #displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional
  # A file name (in the root of the mod JAR) containing a logo for display
  logoFile="examplemod.png" #optional
  # A text field displayed in the mod UI
  credits="Thanks for this example mod goes to Java" #optional
  # A text field displayed in the mod UI
  authors="Love, Cheese and small house plants" #optional
  # The description text for the mod (multi line!) (#mandatory)
  description='''
  This is a long form description of the mod. You can write whatever you want here
  
  Have some lorem ipsum.
  
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magna. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed sagittis luctus odio eu tempus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque volutpat ligula eget lacus auctor sagittis. In hac habitasse platea dictumst. Nunc gravida elit vitae sem vehicula efficitur. Donec mattis ipsum et arcu lobortis, eleifend sagittis sem rutrum. Cras pharetra quam eget posuere fermentum. Sed id tincidunt justo. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  '''
  # A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
  [[dependencies.examplemod]] #optional
      # the modid of the dependency
      modId="forge" #mandatory
      # Does this dependency have to exist - if not, ordering below must be specified
      mandatory=true #mandatory
      # The version range of the dependency
      versionRange="[40,)" #mandatory
      # An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
      ordering="NONE"
      # Side this dependency is applied on - BOTH, CLIENT or SERVER
      side="BOTH"
  # Here's another dependency
  [[dependencies.examplemod]]
      modId="minecraft"
      mandatory=true
  # This version range declares a minimum of the current minecraft version up to but not including the next major version
      versionRange="[1.18.2,1.19)"
      ordering="NONE"
      side="BOTH"

My environment:

------------------------------------------

  • windows 64
  • IntelliJ IDEA
  • JAVA 8

Other documents that may be required:

-----------------------------------------------

  • `build.gradle`

  

  buildscript {
      repositories {
          // These repositories are only for Gradle plugins, put any other repositories in the repository block further below
          maven { url = 'https://maven.minecraftforge.net' }
          mavenCentral()
      }
      dependencies {
          classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
      }
  }
  // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
  plugins {
      id 'eclipse'
      id 'maven-publish'
  }
  apply plugin: 'net.minecraftforge.gradle'
  
  
  version = '1.0'
  group = 'com.AJ.LifeSharing' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
  archivesBaseName = 'lifesharing'
  
  // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
  java.toolchain.languageVersion = JavaLanguageVersion.of(17)
  
  println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}"
  minecraft {
      // The mappings can be changed at any time and must be in the following format.
      // Channel:   Version:
      // official   MCVersion             Official field/method names from Mojang mapping files
      // parchment  YYYY.MM.DD-MCVersion  Open community-sourced parameter names and javadocs layered on top of official
      //
      // You must be aware of the Mojang license when using the 'official' or 'parchment' mappings.
      // See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md
      //
      // Parchment is an unofficial project maintained by ParchmentMC, separate from MinecraftForge
      // Additional setup is needed to use their mappings: https://github.com/ParchmentMC/Parchment/wiki/Getting-Started
      //
      // Use non-default mappings at your own risk. They may not always work.
      // Simply re-run your setup task after changing the mappings to update your workspace.
      mappings channel: 'official', version: '1.18.2'
  
      // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Currently, this location cannot be changed from the default.
  
      // Default run configurations.
      // These can be tweaked, removed, or duplicated as needed.
      runs {
          client {
              workingDirectory project.file('run')
  
              // Recommended logging data for a userdev environment
              // The markers can be added/remove as needed separated by commas.
              // "SCAN": For mods scan.
              // "REGISTRIES": For firing of registry events.
              // "REGISTRYDUMP": For getting the contents of all registries.
              property 'forge.logging.markers', 'REGISTRIES'
  
              // Recommended logging level for the console
              // You can set various levels here.
              // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
              property 'forge.logging.console.level', 'info'
  
              // Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
              property 'forge.enabledGameTestNamespaces', 'examplemod'
  
              mods {
                  examplemod {
                      source sourceSets.main
                  }
              }
          }
  
          server {
              workingDirectory project.file('run')
  
              property 'forge.logging.markers', 'REGISTRIES'
  
              property 'forge.logging.console.level', 'info'
  
              // Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
              property 'forge.enabledGameTestNamespaces', 'examplemod'
  
              mods {
                  examplemod {
                      source sourceSets.main
                  }
              }
          }
  
          // This run config launches GameTestServer and runs all registered gametests, then exits.
          // By default, the server will crash when no gametests are provided.
          // The gametest system is also enabled by default for other run configs under the /test command.
          gameTestServer {
              workingDirectory project.file('run')
  
              // Recommended logging data for a userdev environment
              // The markers can be added/remove as needed separated by commas.
              // "SCAN": For mods scan.
              // "REGISTRIES": For firing of registry events.
              // "REGISTRYDUMP": For getting the contents of all registries.
              property 'forge.logging.markers', 'REGISTRIES'
  
              // Recommended logging level for the console
              // You can set various levels here.
              // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
              property 'forge.logging.console.level', 'info'
  
              // Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
              property 'forge.enabledGameTestNamespaces', 'examplemod'
  
              mods {
                  examplemod {
                      source sourceSets.main
                  }
              }
          }
  
          data {
              workingDirectory project.file('run')
  
              property 'forge.logging.markers', 'REGISTRIES'
  
              property 'forge.logging.console.level', 'info'
  
              // Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
              args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
  
              mods {
                  examplemod {
                      source sourceSets.main
                  }
              }
          }
      }
  }
  
  // Include resources generated by data generators.
  sourceSets.main.resources { srcDir 'src/generated/resources' }
  
  repositories {
      // Put repositories for dependencies here
      // ForgeGradle automatically adds the Forge maven and Maven Central for you
  
      // If you have mod jar dependencies in ./libs, you can declare them as a repository like so:
      // flatDir {
      //     dir 'libs'
      // }
  }
  
  dependencies {
      // Specify the version of Minecraft to use. If this is any group other than 'net.minecraft', it is assumed
      // that the dep is a ForgeGradle 'patcher' dependency, and its patches will be applied.
      // The userdev artifact is a special name and will get all sorts of transformations applied to it.
      minecraft 'net.minecraftforge:forge:1.18.2-40.1.0'
  
      // Real mod deobf dependency examples - these get remapped to your current mappings
      // compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api") // Adds JEI API as a compile dependency
      // runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}") // Adds the full JEI mod as a runtime dependency
      // implementation fg.deobf("com.tterrag.registrate:Registrate:MC${mc_version}-${registrate_version}") // Adds registrate as a dependency
  
      // Examples using mod jars from ./libs
      // implementation fg.deobf("blank:coolmod-${mc_version}:${coolmod_version}")
  
      // For more info...
      // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
      // http://www.gradle.org/docs/current/userguide/dependency_management.html
  }
  
  // Example for how to get properties into the manifest for reading at runtime.
  jar {
      manifest {
          attributes([
                  "Specification-Title"     : "examplemod",
                  "Specification-Vendor"    : "examplemodsareus",
                  "Specification-Version"   : "1", // We are version 1 of ourselves
                  "Implementation-Title"    : project.name,
                  "Implementation-Version"  : project.jar.archiveVersion,
                  "Implementation-Vendor"   : "examplemodsareus",
                  "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
          ])
      }
  }
  
  // Example configuration to allow publishing using the maven-publish plugin
  // This is the preferred method to reobfuscate your jar file
  jar.finalizedBy('reobfJar')
  // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
  // publish.dependsOn('reobfJar')
  
  publishing {
      publications {
          mavenJava(MavenPublication) {
              artifact jar
          }
      }
      repositories {
          maven {
              url "file://${project.projectDir}/mcmodsrepo"
          }
      }
  }
  
  tasks.withType(JavaCompile).configureEach {
      options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
  }
  

Error Log:

--------------------------------------------------------------

  • `latest.log`

  [245月2022 18:55:27.570] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeclientuserdev, --version, MOD_DEV, --assetIndex, 1.18, --assetsDir, C:\Users\admin\.gradle\caches\forge_gradle\assets, --gameDir, ., --fml.forgeVersion, 40.1.0, --fml.mcVersion, 1.18.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220404.173914]
  [245月2022 18:55:27.575] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 9.1.3+9.1.3+main.9b69c82a starting: java version 17.0.2 by Oracle Corporation
  [245月2022 18:55:27.667] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/admin/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.5/9d1c0c3a304ae6697ecd477218fa61b850bf57fc/mixin-0.8.5.jar%2322!/ Service=ModLauncher Env=CLIENT
  [245月2022 18:55:28.893] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclientuserdev' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\admin\.gradle\caches\forge_gradle\assets, --assetIndex, 1.18]
  [245月2022 18:55:33.893] [Render thread/WARN] [net.minecraft.server.packs.VanillaPackResources/]: Assets URL 'union:/C:/Users/admin/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.18.2-40.1.0_mapped_official_1.18.2/forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/assets/.mcassetsroot' uses unexpected schema
  [245月2022 18:55:33.894] [Render thread/WARN] [net.minecraft.server.packs.VanillaPackResources/]: Assets URL 'union:/C:/Users/admin/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.18.2-40.1.0_mapped_official_1.18.2/forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/data/.mcassetsroot' uses unexpected schema
  [245月2022 18:55:33.908] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
  [245月2022 18:55:33.929] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev
  [245月2022 18:55:34.070] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 SNAPSHOT
  [245月2022 18:55:35.277] [Render thread/FATAL] [net.minecraftforge.fml.ModLoader/CORE]: Failed to initialize mod containers
  net.minecraftforge.fml.ModLoadingException: mods.toml missing metadata for modid lifesharing
      at net.minecraftforge.fml.ModLoader.lambda$buildModContainerFromTOML$29(ModLoader.java:253) ~[fmlcore-1.18.2-40.1.0.jar%2379!/:?]
      at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?]
      at net.minecraftforge.fml.ModLoader.buildModContainerFromTOML(ModLoader.java:253) ~[fmlcore-1.18.2-40.1.0.jar%2379!/:?]
      at net.minecraftforge.fml.ModLoader.lambda$buildMods$26(ModLoader.java:233) ~[fmlcore-1.18.2-40.1.0.jar%2379!/:?]
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
      at java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1850) ~[?:?]
      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.ModLoader.buildMods(ModLoader.java:235) ~[fmlcore-1.18.2-40.1.0.jar%2379!/:?]
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
      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.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.ModLoader.gatherAndInitializeMods(ModLoader.java:153) ~[fmlcore-1.18.2-40.1.0.jar%2379!/:?]
      at net.minecraftforge.client.loading.ClientModLoader.lambda$begin$1(ClientModLoader.java:92) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2375%2381!/:?]
      at net.minecraftforge.client.loading.ClientModLoader.lambda$createRunnableWithCatch$4(ClientModLoader.java:113) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2375%2381!/:?]
      at net.minecraftforge.client.loading.ClientModLoader.begin(ClientModLoader.java:92) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2375%2381!/:?]
      at net.minecraft.client.Minecraft.<init>(Minecraft.java:458) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?]
      at net.minecraft.client.main.Main.main(Main.java:169) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?]
      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.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:24) ~[fmlloader-1.18.2-40.1.0.jar%230!/:?]
      at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.1.3.jar%2310!/:?]
      at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.1.3.jar%2310!/:?]
      at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.1.3.jar%2310!/:?]
      at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.1.3.jar%2310!/:?]
      at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%2310!/:?]
      at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%2310!/:?]
      at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%2310!/:?]
      at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?]
  [245月2022 18:55:35.633] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.sound.SoundLoadEvent to a broken mod state
  [245月2022 18:55:35.833] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.ColorHandlerEvent$Block to a broken mod state
  [245月2022 18:55:35.837] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.ColorHandlerEvent$Item to a broken mod state
  [245月2022 18:55:36.603] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.ParticleFactoryRegisterEvent to a broken mod state
  [245月2022 18:55:36.683] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded
  [245月2022 18:55:36.743] [Render thread/INFO] [net.minecraftforge.gametest.ForgeGameTestHooks/]: Enabled Gametest Namespaces: [examplemod]
  [245月2022 18:55:36.744] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.event.RegisterGameTestsEvent to a broken mod state
  [245月2022 18:55:36.748] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.RegisterClientReloadListenersEvent to a broken mod state
  [245月2022 18:55:36.749] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$RegisterLayerDefinitions to a broken mod state
  [245月2022 18:55:36.749] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$RegisterRenderers to a broken mod state
  [245月2022 18:55:37.180] [Render thread/INFO] [net.minecraft.server.packs.resources.ReloadableResourceManager/]: Reloading ResourceManager: Default
  [245月2022 18:55:37.487] [Worker-Main-14/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.ModelRegistryEvent to a broken mod state
  [245月2022 18:55:37.667] [Worker-Main-17/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:37.667] [Worker-Main-16/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:37.682] [Worker-Main-18/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:45.666] [Worker-Main-14/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:46.547] [Worker-Main-14/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:46.576] [Worker-Main-14/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:46.612] [Worker-Main-14/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:46.649] [Worker-Main-14/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:46.686] [Worker-Main-14/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:46.732] [Worker-Main-14/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state
  [245月2022 18:55:47.258] [Render thread/INFO] [com.mojang.blaze3d.audio.Library/]: OpenAL initialized on device OpenAL Soft on 扬声器 (Realtek(R) Audio)
  [245月2022 18:55:47.260] [Render thread/INFO] [net.minecraft.client.sounds.SoundEngine/SOUNDS]: Sound engine started
  [245月2022 18:55:47.485] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
  [245月2022 18:55:47.543] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:47.544] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas
  [245月2022 18:55:47.545] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:47.545] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
  [245月2022 18:55:47.547] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:47.548] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
  [245月2022 18:55:47.550] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:47.550] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
  [245月2022 18:55:47.551] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:47.552] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
  [245月2022 18:55:47.553] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:47.553] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
  [245月2022 18:55:47.554] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:47.894] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.ModelBakeEvent to a broken mod state
  [245月2022 18:55:48.116] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.118] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.227] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.230] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.234] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.242] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.245] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.246] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.247] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.248] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.249] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.253] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.255] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.256] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.257] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.258] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.260] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.280] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.280] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.284] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.296] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.297] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$CreateSkullModels to a broken mod state
  [245月2022 18:55:48.298] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.EntityRenderersEvent$AddLayers to a broken mod state
  [245月2022 18:55:50.396] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.RegisterShadersEvent to a broken mod state
  [245月2022 18:55:50.636] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
  [245月2022 18:55:50.643] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:50.645] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
  [245月2022 18:55:50.647] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:50.647] [Render thread/INFO] [net.minecraft.client.renderer.texture.TextureAtlas/]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas
  [245月2022 18:55:50.649] [Render thread/ERROR] [net.minecraftforge.fml.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Post to a broken mod state
  [245月2022 18:55:51.039] [Render thread/FATAL] [net.minecraftforge.client.loading.ClientModLoader/]: Crash report saved to .\crash-reports\crash-2022-05-24_18.55.51-fml.txt

 

 

  • `crash-2022-05-24-18.55.51-fml.txt`
  ---- Minecraft Crash Report ----
  // Uh... Did I do that?
  
  Time: 2022/5/24 下午6:55
  Description: Mod loading error has occurred
  
  java.lang.Exception: Mod Loading has failed
      at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:55) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2375%2381!/:?] {re:classloading}
      at net.minecraftforge.client.loading.ClientModLoader.completeModLoading(ClientModLoader.java:169) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2375%2381!/:?] {re:classloading,pl:runtimedistcleaner:A}
      at net.minecraft.client.Minecraft.lambda$new$1(Minecraft.java:555) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.Util.ifElse(Util.java:397) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading}
      at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:549) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.client.gui.screens.LoadingOverlay.render(LoadingOverlay.java:135) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:runtimedistcleaner:A}
      at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:877) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.client.Minecraft.runTick(Minecraft.java:1044) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.client.Minecraft.run(Minecraft.java:663) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.client.main.Main.main(Main.java:205) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:runtimedistcleaner:A}
      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.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:24) ~[fmlloader-1.18.2-40.1.0.jar%230!/:?] {}
      at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?] {}
  
  
  A detailed walkthrough of the error, its code path and all known details is as follows:
  ---------------------------------------------------------------------------------------
  
  -- Head --
  Thread: Render thread
  Stacktrace:
      at net.minecraftforge.logging.CrashReportExtender.lambda$dumpModLoadingCrashReport$7(CrashReportExtender.java:58) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2375%2381!/:?] {re:classloading}
  -- NO MOD INFO AVAILABLE --
  Details:
      Mod File: NO FILE INFO
      Failure message: mods.toml missing metadata for modid lifesharing
      Mod Version: NO MOD INFO AVAILABLE
      Mod Issue URL: NOT PROVIDED
      Exception message: MISSING EXCEPTION MESSAGE
  Stacktrace:
      at net.minecraftforge.logging.CrashReportExtender.lambda$dumpModLoadingCrashReport$7(CrashReportExtender.java:58) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2375%2381!/:?] {re:classloading}
      at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?] {}
      at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:56) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2375%2381!/:?] {re:classloading}
      at net.minecraftforge.client.loading.ClientModLoader.completeModLoading(ClientModLoader.java:169) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2375%2381!/:?] {re:classloading,pl:runtimedistcleaner:A}
      at net.minecraft.client.Minecraft.lambda$new$1(Minecraft.java:555) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.Util.ifElse(Util.java:397) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading}
      at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:549) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.client.gui.screens.LoadingOverlay.render(LoadingOverlay.java:135) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:runtimedistcleaner:A}
      at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:877) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.client.Minecraft.runTick(Minecraft.java:1044) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.client.Minecraft.run(Minecraft.java:663) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
      at net.minecraft.client.main.Main.main(Main.java:205) ~[forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.jar%2376!/:?] {re:classloading,pl:runtimedistcleaner:A}
      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.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:24) ~[fmlloader-1.18.2-40.1.0.jar%230!/:?] {}
      at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%2310!/:?] {}
      at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?] {}
  
  
  -- System Details --
  Details:
      Minecraft Version: 1.18.2
      Minecraft Version ID: 1.18.2
      Operating System: Windows 10 (amd64) version 10.0
      Java Version: 17.0.2, Oracle Corporation
      Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
      Memory: 1241831152 bytes (1184 MiB) / 2210398208 bytes (2108 MiB) up to 4229955584 bytes (4034 MiB)
      CPUs: 12
      Processor Vendor: GenuineIntel
      Processor Name: 11th Gen Intel(R) Core(TM) i5-11260H @ 2.60GHz
      Identifier: Intel64 Family 6 Model 141 Stepping 1
      Microarchitecture: unknown
      Frequency (GHz): 2.61
      Number of physical packages: 1
      Number of physical CPUs: 6
      Number of logical CPUs: 12
      Graphics card #0 name: Intel(R) UHD Graphics
      Graphics card #0 vendor: Intel Corporation (0x8086)
      Graphics card #0 VRAM (MB): 1024.00
      Graphics card #0 deviceId: 0x9a68
      Graphics card #0 versionInfo: DriverVersion=30.0.100.9805
      Graphics card #1 name: NVIDIA GeForce RTX 3050 Laptop GPU
      Graphics card #1 vendor: NVIDIA (0x10de)
      Graphics card #1 VRAM (MB): 4095.00
      Graphics card #1 deviceId: 0x25a2
      Graphics card #1 versionInfo: DriverVersion=27.21.14.6242
      Memory slot #0 capacity (MB): 8192.00
      Memory slot #0 clockSpeed (GHz): 3.20
      Memory slot #0 type: DDR4
      Memory slot #1 capacity (MB): 8192.00
      Memory slot #1 clockSpeed (GHz): 3.20
      Memory slot #1 type: DDR4
      Virtual memory max (MB): 28416.22
      Virtual memory used (MB): 24285.82
      Swap memory total (MB): 12288.00
      Swap memory used (MB): 2309.96
      JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
      ModLauncher: 9.1.3+9.1.3+main.9b69c82a
      ModLauncher launch target: forgeclientuserdev
      ModLauncher naming: mcp
      ModLauncher services: 
           mixin PLUGINSERVICE 
           eventbus PLUGINSERVICE 
           slf4jfixer PLUGINSERVICE 
           object_holder_definalize PLUGINSERVICE 
           runtime_enum_extender PLUGINSERVICE 
           capability_token_subclass PLUGINSERVICE 
           accesstransformer PLUGINSERVICE 
           runtimedistcleaner PLUGINSERVICE 
           mixin TRANSFORMATIONSERVICE 
           fml TRANSFORMATIONSERVICE 
      FML Language Providers: 
          [email protected]
          javafml@null
      Mod List: 
          forge-1.18.2-40.1.0_mapped_official_1.18.2-recomp.|Minecraft                     |minecraft                     |1.18.2              |NONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
                                                            |Forge                         |forge                         |40.1.0              |NONE      |Manifest: NOSIGNATURE
          main                                              |Example Mod                   |examplemod                    |0.0NONE             |NONE      |Manifest: NOSIGNATURE
 

Possible directions:

-----------------------------------------------

  • I did not find `Application` in `Run → Edit Configurations` of `IDEA`, because this is not the first time I tried to find `Application` and delete the rest of the tasks. When I first tried to find and delete it, I succeeded. Although the official documentation suggested to me that there should only be three under `Application`, I saw that there were four (I'm sorry, I wasn't able to remember the name of the fourth one), but I still managed to run the game. This was my second attempt to find it, but this time I didn't even see `Application`. But when I ignored this step, I managed to run the game before I added the `Test Mod`.
  • I found that after I executed `runClient` for a while (the game was still reporting errors), the `modId` parameter in the `mods.toml` file changed itself to the default `modId="examplemod"` I'm pretty sure I've changed the correct `modId` parameter, because I've tried many times, but each time I see this parameter, it resets.
  • I'm new to `IDEA` and `JAVA` and `Gradle`, and I made the mistake of changing/not changing some of the parameters/files that are officially written/default.


 

Edited by iYM8jXCs3pcvblTE
Fixed confusing formatting
Link to comment
Share on other sites

1 hour ago, diesieben07 said:

build is the build output when you run the game. .java code is compiled and the resulting .class files go there. Resources are copied over. You should never edit files inside the build folder.

Your mods.toml shown above still references the examplemod that comes with the MDK.

Thank you very much for the tip. I have successfully run the game and my `test mod` is detected in the game. xD (Do I need to close this issue?)

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.