Future-MC
Future-MC copied to clipboard
Maven repository
Just wondering if there was a repository so I could make an addon to this mod!
There is not a maven repo at the moment but you can use the curse maven repository like I do with several mods in my project. Add this to your build.gradle:
repositories {
maven {
name = 'CurseForge'
url = 'https://minecraft.curseforge.com/api/maven/'
}
// future mc depends on Shadowfacts' Forgelin
maven {
name = 'Forgelin'
url = 'http://maven.shadowfacts.net/'
}
}
dependencies {
// name "future-mc" can be replaced by whatever you want
// all that matters is the file id after it (can be found at end of file link at cf)
// '2976806' corresponds to Future MC 1.12.2 0.2.3.2 from
// https://www.curseforge.com/minecraft/mc-mods/future-mc/files/2976806
compile 'curse.maven:future-mc:2976806'
// forgelin
compile 'net.shadowfacts:Forgelin:1.8.4'
}
Although a majority of Future MC is written in Kotlin, I do provide a few Java classes in thedarkcolour.futuremc.api
for people who do not use Kotlin.
If you would like me to add more Java API let me know
Thanks for this it made my day!
Although there is one thing what is the maven address with curseforge for your mod because you've given me forgelin but not yours and I just wondered what it was. Sorry if I sound rude.
I gives me the error Could not resolve curse.maven:future-mc: 2976806 also I had to change implementation to compile for it to work and I am putting this here for people having that error
I'll change my original comment to use "compile"
If you'd like to see more usages of the curse maven repository the build.gradle of FutureMC has many examples of it
Still have an error when trying to add depency
Could not resolve: curse.maven:future-mc:2976806
Still have an error when trying to add depency
Could not resolve: curse.maven:future-mc:2976806
I gives me the error Could not resolve curse.maven:future-mc: 2976806 also I had to change implementation to compile for it to work and I am putting this here for people having that error
You guys still having that issue?