Jump to content

Recommended Posts

Posted

I already know how to setup forge, but this is a problem I never encountered before (mainly because I was using a single disk). setDecompWorkspace works fine, but eclipse doesn't. Here is my powershell logs:

PS D:\Coding\mdk> .\gradlew eclipse
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html.
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
C:\Users\jerem\.gradle\caches\minecraft\net\minecraftforge\forge\1.12.2-14.23.2.2611\userdev\dev.json could not be parsed

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'mdk'.
> java.lang.NullPointerException (no error message)

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

BUILD FAILED

Total time: 13.509 secs
PS D:\Coding\mdk>


Using latest forge mdk. I'm a little lost at this point, a hand would be appreciated.

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted

If you are trying to setupDecompWorkspace and create the eclipse environment you could just do them together. Try if this works for you.

gradlew setupDecompWorkspace eclipse

 

Posted
15 minutes ago, xModRed said:

If you are trying to setupDecompWorkspace and create the eclipse environment you could just do them together. Try if this works for you.


gradlew setupDecompWorkspace eclipse

 

I already did setupDecompWorkspace though and it worked.

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

  • 3 weeks later...
Posted
On 2/4/2018 at 10:51 PM, jabelar said:

I'm not sure but I think it can happen if you don't have admin permissions. Are your running the script from a console with administrator rights?

running powershell under admin. I though maybe I should of tried gradlew.bat instead of gradlew but no the exact same output occurs.

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted
Spoiler

To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html.
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
C:\Users\jerem\.gradle\caches\minecraft\net\minecraftforge\forge\1.12.2-14.23.2.2611\userdev\dev.json could not be parsed

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'mdk'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'mdk'.
        at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:79)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:74)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)
        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:540)
        at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:93)
        at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)
        at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
        at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLauncher.java:124)
        at org.gradle.internal.Factories$1.create(Factories.java:22)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:121)
        at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98)
        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:99)
        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:48)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
        at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
        at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
        at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
        at org.gradle.util.Swapper.swap(Swapper.java:38)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:40)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
        at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:237)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
        at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
Caused by: java.lang.NullPointerException
        at net.minecraftforge.gradle.util.json.JsonFactory.loadVersion(JsonFactory.java:75)
        at net.minecraftforge.gradle.util.json.JsonFactory.loadVersion(JsonFactory.java:94)
        at net.minecraftforge.gradle.common.BasePlugin.parseAndStoreVersion(BasePlugin.java:802)
        at net.minecraftforge.gradle.user.patcherUser.PatcherUserBasePlugin.afterEvaluate(PatcherUserBasePlugin.java:172)
        at net.minecraftforge.gradle.user.patcherUser.forge.ForgePlugin.afterEvaluate(ForgePlugin.java:138)
        at net.minecraftforge.gradle.common.BasePlugin$2.execute(BasePlugin.java:207)
        at net.minecraftforge.gradle.common.BasePlugin$2.execute(BasePlugin.java:199)
        at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
        at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
        at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
        at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
        at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
        at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
        at com.sun.proxy.$Proxy11.afterEvaluate(Unknown Source)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:67)
        ... 52 more


BUILD FAILED

Total time: 6.583 secs

 

This is the updated output with stack trace before someone asks about it.

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted

What java are you using?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
1 minute ago, Delupara said:

jdk 1.8.0_161

downgrade to jdk 1.8.0_151

see this post for instructions

Minecraft Forge Server wont start when trying to add ram(MAC)

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
5 minutes ago, Cadiboo said:

downgrade to jdk 1.8.0_151

see this post for instructions

Minecraft Forge Server wont start when trying to add ram(MAC)

That problem isn't remotely similar and also never even got resolved, so I'm not even sure if it will fix it. I'm willing to try anything though.

regardless I can't find a legitimate download link for jdk 1.8.0_151
If you know where it is I'd appreciate it.

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted (edited)
2 minutes ago, Delupara said:

regardless I can't find a legitimate download link for jdk 1.8.0_151
If you know where it is I'd appreciate it.

... the reason I sent you to that post is because It has a link to that JDK

 

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
2 minutes ago, Cadiboo said:

... the reason I sent you to that post is because It has a link to that JDK

 

that's not where you sent me bud...

You sent me here.


Although its in the same thread I'm not gonna read it entirely especially since it's, once again, not relevant to my issue. But yeah ill try it out brb

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted (edited)
25 minutes ago, Delupara said:

That problem isn't remotely similar

19 minutes ago, Delupara said:

not relevant to my issue

The only problem that I can see with this thread is that you have the wrong Java version.
The only problem that I can see with the other thread is that they have the wrong Java version.
If I were you I would read the other thread completely and see if it fixes your issue.

I could be wrong but I'm pretty sure that I'm not.

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)
14 hours ago, Cadiboo said:

The only problem that I can see with this thread is that you have the wrong Java version.
The only problem that I can see with the other thread is that they have the wrong Java version.
If I were you I would read the other thread completely and see if it fixes your issue.

I could be wrong but I'm pretty sure that I'm not.

I actually have. Cant fix an issue that doesn't even exist bruh. I dont need to add any ram to my java because any amount will crash.
Also this is mac talk not windows. 

 

Also changing versions doesn't change the output.

Edited by Delupara

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted (edited)

Minecraft, Forge and Gradlew all use Java 8u151.

Having a different Java version will cause the fatal java error that you posted.

Java is the same across all operating systems. That is the entire point of the language.

You never said that you weren't on a mac.

The title of the thread is misleading as his problem was that he was using the wrong java version.

3 hours ago, Delupara said:

Also changing versions doesn't change the output.

Does this mean that you have successfully downgraded to java 8u151 and DELETED every other version of Java?
If not this article might help you
https://it.uoregon.edu/reverting-java-windows

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
1 hour ago, loordgek said:

 

 

Not in my experience but ok

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)
22 hours ago, Cadiboo said:

Minecraft, Forge and Gradlew all use Java

8u151.

Ok so? Java versions are backwards compatible for the most part, especially between patch versions. otherwise everything would brake if oracle made any changes. Besides, I HAVE changed it. Not working m'dude. Unless registry tweaks are needed to fully downgrade in which case the thread you linked wont do squat.

Quote

Having a different Java version will cause the fatal java error that you posted.

Where did you read this? I can run 1999 applets that uses java 5 or some shit (Haven't checked but I know for a fact that applets in general are old as java itself so). How do you explain this?

Quote

Java is the same across all operating systems. That is the entire point of the language.

I know jvm is cross platform. But most of the solution are not in java, its in the operating system. In Other words any other information (For example how to fully downgrade) is pointless and maybe even misleading

Quote

You never said that you weren't on a mac.

Tell me how running the following command in makes sense (On a mac that is):

 

PS D:\Coding\mdk> .\gradlew eclipse

 

If it does, I just learned that mac cmd was in fact a powershell!

But yeah I dont touch the probably rusted by this point bitten apple from a mile away

 

Quote

The title of the thread is misleading as his problem was that he was using the wrong java version.

The Problem never even got resolve so how do you know what the problem is?

Quote

Does this mean that you have successfully downgraded to java 8u151 and DELETED every other version of Java?
If not this article might help you
https://it.uoregon.edu/reverting-java-windows

See? That's the right link to sent me. Not an unrelated mac thread. Though may I point out that I've done everything in there. Still dont work bruh.

Edited by Delupara

When they say your code doesn't follow convention but ur edgy so u dont care

d-d-d-dab on them haterz

 

Posted

Don't listen to Cadiboo saying "downgrade java to 8u151". He tells that to everybody having any sort of issue.

 

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Aight, sorry for telling you to downgrade java, I've had a lot of problems (Including one on a Windows 10 computer that gave the a very similar error) that were solved solely by downgrading java.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted (edited)

Have you tried:

 

gradlew cleanCache clean setupDecompWorkspace --refresh-dependencies

 

It looks like it can't parse a file in the cache properly, and this will force it to rebuild the cache. 

Edited by Cloudy
My memory was wrong so updated using googlefu
Posted (edited)

I am still suspicious that it is related to something with administrator rights (i.e. not having where needed). That type of error is specifically mentioned in other discussions (general gradle discussions) as being the culprit. I'm not sure what might have changed to make this start popping up more. 

 

 

However, the rest of your log has the line:

C:\Users\jerem\.gradle\caches\minecraft\net\minecraftforge\forge\1.12.2-14.23.2.2611\userdev\dev.json could not be parsed

.

So have you looked more closely at that JSON file? Is it there? Is there a problem accessing it? Is it malformed?

 

For the "honor the JVM" thing, it seems that there are various scenarios that cause it. But it is usually possible to figure out based on the rest of the error message. Some of it has to do with your java home evironmental variables. Some of it has to do with admin privileges. Some of it is other things.

 

This is a gradle error though, so maybe there are gradle support available as well that can advise (even though it seems to be a Forge MDK file that is causing your problem).

Edited by jabelar

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • This is the last line before the crash: [ebwizardry]: Synchronising spell emitters for PixelTraveler But I have no idea what this means
    • What in particular? I barely used that mod this time around, and it's never been a problem in the past.
    • Im trying to build my mod using shade since i use the luaj library however i keep getting this error Reason: Task ':reobfJar' uses this output of task ':shadowJar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. So i try adding reobfJar.dependsOn shadowJar  Could not get unknown property 'reobfJar' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. my gradle file plugins { id 'eclipse' id 'idea' id 'maven-publish' id 'net.minecraftforge.gradle' version '[6.0,6.2)' id 'com.github.johnrengelman.shadow' version '7.1.2' id 'org.spongepowered.mixin' version '0.7.+' } apply plugin: 'net.minecraftforge.gradle' apply plugin: 'org.spongepowered.mixin' apply plugin: 'com.github.johnrengelman.shadow' version = mod_version group = mod_group_id base { archivesName = mod_id } // Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17. java.toolchain.languageVersion = JavaLanguageVersion.of(17) //jarJar.enable() println "Java: ${System.getProperty 'java.version'}, JVM: ${System.getProperty 'java.vm.version'} (${System.getProperty 'java.vendor'}), Arch: ${System.getProperty 'os.arch'}" minecraft { mappings channel: mapping_channel, version: mapping_version copyIdeResources = true runs { configureEach { workingDirectory project.file('run') property 'forge.logging.markers', 'REGISTRIES' property 'forge.logging.console.level', 'debug' arg "-mixin.config=derp.mixin.json" mods { "${mod_id}" { source sourceSets.main } } } client { // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. property 'forge.enabledGameTestNamespaces', mod_id } server { property 'forge.enabledGameTestNamespaces', mod_id args '--nogui' } gameTestServer { property 'forge.enabledGameTestNamespaces', mod_id } data { workingDirectory project.file('run-data') args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') } } } sourceSets.main.resources { srcDir 'src/generated/resources' } repositories { flatDir { dirs './libs' } maven { url = "https://jitpack.io" } } configurations { shade implementation.extendsFrom shade } dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" implementation 'org.luaj:luaj-jse-3.0.2' implementation fg.deobf("com.github.Virtuoel:Pehkui:${pehkui_version}") annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' minecraftLibrary 'luaj:luaj-jse:3.0.2' shade 'luaj:luaj-jse:3.0.2' } // Example for how to get properties into the manifest for reading at runtime. tasks.named('jar', Jar).configure { manifest { attributes([ 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors, 'Specification-Version' : '1', // We are version 1 of ourselves 'Implementation-Title' : project.name, 'Implementation-Version' : project.jar.archiveVersion, 'Implementation-Vendor' : mod_authors, 'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"), "TweakClass" : "org.spongepowered.asm.launch.MixinTweaker", "TweakOrder" : 0, "MixinConfigs" : "derp.mixin.json" ]) } rename 'mixin.refmap.json', 'derp.mixin-refmap.json' } shadowJar { archiveClassifier = '' configurations = [project.configurations.shade] finalizedBy 'reobfShadowJar' } assemble.dependsOn shadowJar reobf { re shadowJar {} } publishing { publications { mavenJava(MavenPublication) { artifact jar } } repositories { maven { url "file://${project.projectDir}/mcmodsrepo" } } } my entire project:https://github.com/kevin051606/DERP-Mod/tree/Derp-1.0-1.20
    • All versions of Minecraft Forge suddenly black screen even without mods (tried reinstalling original Minecraft, Java, updating drivers doesn't work)
  • Topics

×
×
  • Create New...

Important Information

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