Jump to content

Missing 'minecraft' dependency.


Sherny

Recommended Posts

Hi I'm new to modding and I was trying to figure out how to integrate dependencies to my mod when this happened:

20:41:24: Executing 'runClient'...


> Configure project :
Java: 17.0.5, JVM: 17.0.5+8-LTS (Amazon.com Inc.), Arch: amd64

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'create_excavation-1.0-mc1.18'.
> Missing 'minecraft' dependency.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
20:41:26: Execution finished 'runClient'.

 

Here's the build.gradle file

https://drive.google.com/file/d/1HodF_xeVLAvUuFI6EhXqTSPSIADAnv5o/view?usp=sharing

Link to comment
Share on other sites

yeah so that worked and now I get these errors:

Caused by: java.lang.reflect.InvocationTargetException

Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered

Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [create.mixins.json:CustomItemUseEffectsMixin] from phase [DEFAULT] in config [create.mixins.json] FAILED during APPLY

Execution failed for task ':runClient'.
> Process 'command 'C:\Users\Private\.jdks\corretto-17.0.5\bin\java.exe'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --scan to get full insights.

 

the build.gradle file now looks like this

https://drive.google.com/file/d/1HodF_xeVLAvUuFI6EhXqTSPSIADAnv5o/view?usp=sharing

I'm sorry if I'm wasting your time

Link to comment
Share on other sites

6 hours ago, ChampionAsh5357 said:

Your buildscipt is missing the `minecraft` dependency in the dependencies block. It doesn't know what version of Forge to pull without it. You may want to look at the mdk again and see where that line exists.

forgot to quote it

1 minute ago, Sherny said:

yeah so that worked and now I get these errors:

Caused by: java.lang.reflect.InvocationTargetException

Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered

Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [create.mixins.json:CustomItemUseEffectsMixin] from phase [DEFAULT] in config [create.mixins.json] FAILED during APPLY

Execution failed for task ':runClient'.
> Process 'command 'C:\Users\Private\.jdks\corretto-17.0.5\bin\java.exe'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --scan to get full insights.

 

the build.gradle file now looks like this

https://drive.google.com/file/d/1HodF_xeVLAvUuFI6EhXqTSPSIADAnv5o/view?usp=sharing

I'm sorry if I'm wasting your time

 

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.