Jump to content

Gradle can't find net.minecraft:server:1.16.5_mapped_official_1.16.5.


Recommended Posts

Posted

I'm attempting to use FG to download the vanilla Minecraft server.
Gradle throws this massive error: hastebin
 

build.gradle:

Spoiler

buildscript {
  repositories {
    maven { url = 'https://maven.minecraftforge.net' }
    maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
    mavenCentral()

    dependencies {
      classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.+', changing: true
      classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
    }
  }
}

apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'

group = 'com.blockypenguin'
archivesBaseName = 'spongecake'
version = '0.0.1'

def minecraftVersion = '1.16.5'
def mixinJson = "spongecake.refmap.json"

java.toolchain.languageVersion = JavaLanguageVersion.of(8)

minecraft {
  mappings channel: 'official', version: minecraftVersion

  runs {
    server {
      workingDirectory project.file('run')
      property 'forge.logging.markers', 'REGISTRIES'
      property 'forge.logging.console.level', 'debug'

      arg "-mixin.config=$mixinJson"
    }
  }
}

mixin { add sourceSets.main, mixinJson }

repositories {
  maven { url = 'https://files.minecraftforge.net/maven' }
  mavenCentral()
}

dependencies {
  minecraft "net.minecraft:server:$minecraftVersion"
  annotationProcessor 'org.spongepowered:mixin:0.8:processor'
}

jar {
  manifest {
    attributes([
      "Specification-Title"     : "SpongeCake Minecraft Server $minecraftVersion",
      "Specification-Vendor"    : "BlockyPenguin",
      "Specification-Version"   : "1",
      "Implementation-Title"    : project.name,
      "Implementation-Version"  : project.version,
      "Implementation-Vendor"   : "BlockyPenguin",
      "MixinConfigs"            : mixinJson,
      "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
    ])
  }
}

jar.finalizedBy('reobfJar')

 

Today (22/10/20) I reached 100 posts!

I'm probably more excited than I should be for something so realistically minor...

Posted
6 hours ago, diesieben07 said:

What on earth are you trying to achieve here?

Modifying vanilla with Mixins, no Forge, no Fabric, just plain old vanilla.

I know, it's not recommended, but it's a personal project of mine, just to see where it could lead.

I have no intentions of making anything fancy, i.e. "real" modified servers like paper or sponge, it's more of a testing ground.

Any ideas as to how to fix this?

Today (22/10/20) I reached 100 posts!

I'm probably more excited than I should be for something so realistically minor...

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Thanks, I've now installed a slightly newer version and the server is at least starting up now.
    • i have the same issue. Found 1 Create mod class dependency(ies) in createdeco-1.3.3-1.19.2.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Found 11 Create mod class dependency(ies) in createaddition-fabric+1.19.2-20230723a.jar, which are missing from the current create-1.19.2-0.5.1.i.jar Detailed walkthrough of mods which rely on missing Create mod classes: Mod: createaddition-fabric+1.19.2-20230723a.jar Missing classes of create: com/simibubi/create/compat/jei/category/sequencedAssembly/JeiSequencedAssemblySubCategory com/simibubi/create/compat/recipeViewerCommon/SequencedAssemblySubCategoryType com/simibubi/create/compat/rei/CreateREI com/simibubi/create/compat/rei/EmptyBackground com/simibubi/create/compat/rei/ItemIcon com/simibubi/create/compat/rei/category/CreateRecipeCategory com/simibubi/create/compat/rei/category/WidgetUtil com/simibubi/create/compat/rei/category/animations/AnimatedBlazeBurner com/simibubi/create/compat/rei/category/animations/AnimatedKinetics com/simibubi/create/compat/rei/category/sequencedAssembly/ReiSequencedAssemblySubCategory com/simibubi/create/compat/rei/display/CreateDisplay Mod: createdeco-1.3.3-1.19.2.jar Missing classes of create: com/simibubi/create/content/kinetics/fan/SplashingRecipe
    • The crash points to moonlight lib - try other builds or make a test without this mod and the mods requiring it
    • Do you have shaders enabled? There is an issue with the mod simpleclouds - remove this mod or disable shaders, if enabled  
    • Maybe you need to create file in assets/<modid>/items/<itemname>.json with content like this:   { "model": { "type": "minecraft:model", "model": "modname:item/itemname" } }  
  • Topics

×
×
  • Create New...

Important Information

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