If i try to launch my client in eclipse this error popsup idk what to do
Mind showing your build.gralde
file
Also what sponge api are you targetting?
Also a log of the gradle build would be good too
buildscript {
repositories {
jcenter()
maven {
name = âlukflugâ
url = âMaven repo - lukflug's websiteâ
}
maven {
name = âSpongePoweredâ
url = âRepository - Nexus Repository Managerâ
}
}
dependencies {
classpath ânet.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOTâ
classpath âorg.spongepowered:mixingradle:0.4-SNAPSHOTâ
classpath âcom.github.jengelman.gradle.plugins:shadow:1.2.3â
}
}
apply plugin: ânet.minecraftforge.gradle.forgeâ
apply plugin: âorg.spongepowered.mixinâ
apply plugin: âcom.github.johnrengelman.shadowâ
version project.modVersion
group project.modGroup
compileJava {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
}
minecraft {
version = project.forgeVersion
runDir = ârunâ
mappings = project.mcpVersion
coreMod = âcom.gamesense.mixin.GameSenseMixinLoaderâ
makeObfSourceJar = false
}
repositories {
maven {
name = âspongepowered-repoâ
url = âRepository - Nexus Repository Managerâ
}
maven {
name = âimpactdevelopment-repoâ
url = âMaven Repo | mavenâ
}
maven {
name = âswt-repoâ
url = âRedirecting...â
}
maven {
name = âjitpack.ioâ
url = âhttps://jitpack.ioâ
}
maven {
name = âlukflugâ
url = âMaven repo - lukflug's websiteâ
}
mavenCentral()
}
dependencies {
compile(âorg.spongepowered:mixin:0.7.4-SNAPSHOTâ) {
exclude module: âlaunchwrapperâ
exclude module: âguavaâ
exclude module: âgsonâ
exclude module: âcommons-ioâ
}
compile âcom.github.ZeroMemes:Alpine:1.5â
compile group: ânet.jodahâ, name: âtypetoolsâ, version: â0.5.0â
compile group: âcom.googlecode.json-simpleâ, name: âjson-simpleâ, version: â1.1.1â
compile group: âclub.minncedâ, name: âjava-discord-rpcâ, version: â2.0.1â
compile(âcom.lukflug:panelstudio:0.1.8â)
compile(âcom.lukflug:panelstudio-mc12:0.1.8â)
}
processResources {
inputs.property âversionâ, project.version
inputs.property âmcversionâ, project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version': project.version, 'mcversion': project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
rename '(.+_at.cfg)', 'META-INF/$1'
}
shadowJar {
dependencies {
include(dependency(âorg.spongepowered:mixinâ))
include(dependency(âcom.github.ZeroMemes:Alpineâ))
include(dependency(ânet.jodah:typetoolsâ))
include(dependency(âcom.googlecode.json-simple:json-simple:1.1.1â))
include(dependency(âclub.minnced:java-discord-rpc:2.0.1â))
include(dependency(âcom.lukflug:panelstudioâ))
include(dependency(âcom.lukflug:panelstudio-mc12â))
}
exclude âdummyThingâ
exclude âLICENSE.txtâ
classifier = âreleaseâ
}
mixin {
defaultObfuscationEnv searge
add sourceSets.main, âmixins.gamesense.refmap.jsonâ
}
reobf {
shadowJar {
mappingType = âSEARGEâ
classpath = sourceSets.main.compileClasspath
}
}
jar {
manifest {
attributes(
âMixinConfigsâ: âmixins.gamesense.jsonâ,
âtweakClassâ: âorg.spongepowered.asm.launch.MixinTweakerâ,
âTweakOrderâ: 0,
âFMLCorePluginContainsFMLModâ: âtrueâ,
âFMLCorePluginâ: âcom.gamesense.mixin.GameSenseMixinLoaderâ,
âForceLoadAsModâ: âtrueâ,
âFMLATâ: âgamesense_at.cfgâ
)
}
}
build.dependsOn(shadowJar)
Pretty much this is all im making a skid of a hacked client
The sppnge api targetting would be really helpful. Based on your build and lack of answer to that my guess is your just wanting mixins and your plugin is actually a mod? If so thats why your getting the error as spongeGradle expects a plugin main
Yh its a mod how to fix it ?
So what are you trying to do?
Use the sponge api from your mod? Use mixins? Or something else.
I can fix something that i dont have the answer to and having to pry for a sliver of one
So you said if sponge is thinking its a plugin then it wont work. I asked you how i can make it think its a mod because it a mod not a plugin
I dont really know a lot about gradle.
I just wanna fix the error nothing else there are alot of ppl that fixed it but i dont know how thry did it thats why i gone to that post from 7 years ago
This goes back to the question i ask before.
What are you trying to do with your mod and sponge?
As in why do you want sponge in your code?
Use of mixins?
Use of the sponge API?
The way you have currently gone about it is the way that plugin developers would go. This does not work for your mod as sponge does not boot up sponge mods, only plugins. Therefore there is a different way for you, for me to tell you that way I need to know what your trying to do
I just want to launch minecraft with the mod nothing else
Heres the mod its not mine
Its a hacked client for anarchy servers
So thats a lot more useful as it answers all my questions.
So i tried building it myself.
Can i make sure you read its wiki
on how to build it? Also make sure your running Java 8 at your JAVA_HOME
Im using java 8 yes but idk what wiki you talking about.
Also did it launch for you ?
The wiki on the github link you sent
As for launching it. I wont have java 8 as my main java anymore and can not be bothered doing all the process of adding it as my main, testing a bit of software that had stopped development to then make java 17 my main again.
But i will ask. How are you launching it?
In eclipse you just use java 8 jdk instead of the jre and use debug.it supposedly launch like that
(Edit) i just read the wiki. Do i just put the release file in my java launcher and launch it ?
The release file is a mod. So you put it in your clients mod folder
Is there a way to launch the master folder like a regular mod
What do you mean by âmaster folderâ?
Also how can you launch a folder? A folder isnt code to launch?
I meant the github master .jar file can you run its code as a regular mod ?
Oh you mean branch code.
When the master branch is compiled. Yes you can
How to compile it all at once