Jump to content

Unable to compile mod


OcelotJungle

Recommended Posts

Minecraft version 1.15.2, forge version 31.1.35, I just try to compile example mod (from forge mdk zip).

Checked: there are no these files in /bundeled_repo/, but they are in /minecraft_user_repo/, anyway if I copy them to the right folder it still doesn't work. Tried to google it, but with no success, really don't know what's wrong with it (and with me).

My first try to make mod and I failed at start, so shamefully.

Spoiler

Could not resolve all files for configuration ':compileClasspath'.
> Could not find net.minecraftforge:forge:1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1.
  Searched in the following locations:
    - file:/C:/Users/ocelotjungle/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1/forge-1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1.pom
    - file:/C:/Users/ocelotjungle/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1/forge-1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1.jar
    - https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1/forge-1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1.pom
    - https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1/forge-1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1.jar
    - https://libraries.minecraft.net/net/minecraftforge/forge/1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1/forge-1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1.jar
    - https://repo.maven.apache.org/maven2/net/minecraftforge/forge/1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1/forge-1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1.pom
    - https://repo.maven.apache.org/maven2/net/minecraftforge/forge/1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1/forge-1.15.2-31.1.35_mapped_snapshot_20200225-1.15.1.jar
  Required by:
      project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Spoiler

image.png.cac14375d443315a125f831d926697ed.png

 

image.png.a694f766314b9d7e36172911ec032bae.png

 

Edited by OcelotJungle
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.