Jump to content

Paulsen

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Paulsen

  1. Yes I called shadowJar right after i applied the plugin. I also changed the compile to runtime, just like my discord-library in the dependencies. I can defenetly say that something is working because now the built file is smaller than before. But it still doesn't work in Forge sadly.
  2. I added a shadowJar{ } in my build.gradlebuild.gradle. In this Block i sho uld be able to define what my plugin is doing. I think i have to define my classes, as its described in the docs, but the library i importet from github doesn't work with intellij.
  3. I've been programming java for quite some years and i have never worked with gradle before, and i admit taht most of the time i don't have a clue what i'm doing other than copy paste possible solutions for this problem. I've tried to use the plugin, but it doesn't work and i have still no idea why!
  4. I applied several examples from https://plugins.gradle.org/search?term=shadow that compiled correctly, but none of them worked, i still get the same error. Maybe i imported them wrong. I only added the lines in the build.gradle-file like this: plugins { id "com.github.johnrengelman.plugin-shadow" version "2.0.3" } apply plugin: "com.github.johnrengelman.plugin-shadow" The jar-library btw. is this one: https://github.com/Vatuu/discord-rpc
  5. it says, that it is only for gradle 6.0.0+. I updated it and it still doesn't work. Now it even doesn't work if delete the pluginlines
  6. But how should i pack it into my mod? I already added it to the dependecies, shouldn't that work?
  7. Hey, I have programmed a little test-mod where i wanted to test the discord-rich-presence-library with minecraft. First i had problems with declaring the lib in the dependencies, but i finally got it working and no errors appear when testing. But as i exported it via CMD with the "gradlew build" command and tested it with forge it crashes when starting and i always get the same crashlog:crash-2020-10-22_21.25.25-client.txt. I think there is still something wrong with declaring the lib in the dependencies in my build.gradlebuild.gradle file. Thanks.
  8. I wanted to start programming Minecraftmods and to use forge i opened console and directed in my extracted forge-folder. Then i typed "gradlew eclipse". Before all this i also set my JAVA_HOME to my jdk-path. After a while i got an error: FAILURE: Build failed with an exception. * Where: Build file 'C:\Eclipse-Material\Eclipeprojects MC\Forge\forge-1.14.4-28.1.0-mdk\build.gradle' line: 11 * What went wrong: A problem occurred evaluating root project 'forge-1.14.4-28.1.0-mdk'. > Failed to apply plugin [id 'net.minecraftforge.gradle'] > Found java version 13.0.1. Minimum required is 1.8.0_101. Versions 11.0.0 and newer are not supported yet. * 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 Please somebody help. Thanks.
×
×
  • Create New...

Important Information

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