#How to install geckolib 1.21
28 messages · Page 1 of 1 (latest)
!!deps
https://github.com/natanfudge/fabric-docs/blob/master/newdocs/Modding-Tutorials/Adding other mods.md
add it as a gradle dependency to your project
Bro
I added all of this in order.
// This is the repositories block in your build.gradle. NOT the one in publishing, or in buildscript. If it does not exist already, create it.
repositories {
maven {
name = 'GeckoLib'
url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'
content {
includeGroup("software.bernie.geckolib")
}
}
}
dependencies {
modImplementation "software.bernie.geckolib:geckolib-fabric-${minecraft_version}:${geckolib_version}"
}
geckolib_version=??? Replace this with the current latest version of GeckoLib from Curseforge for your Minecraft version
All of that in the order it said and I even refreshed the file and it didn't work.
define "didn't work"
I'm using a translator XD
But what I meant is that I followed the github tutorial for 1.20.5+ but it still didn't work
what exactly does not work?
Well, I follow the tutorial to the letter but when I refresh the libraries I get an error and it tells me that the error is in the first line of code where the ids are located.
post the error and your build.gradle
when you're describing errors, please provide as much as information you can
Here I have one of the errors I sent a while ago
- What went wrong:
A problem occurred configuring root project 'loroworld'.
Failed to setup Minecraft, java.io.UncheckedIOException: Failed to setup mappings: net.fabricmc🧶1.21+build.9
plugins {
id 'fabric-loom' version "${loom_version}"
id 'maven-publish'
id "software.bernie.geckolib" version "4.1.1"
}
version = project.mod_version
group = project.maven_group
base {
archivesName = project.archives_base_name
}
// This is the repositories block in your build.gradle. NOT the one in publishing, or in buildscript. If it does not exist already, create it.
repositories {
maven {url 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'}
}
fabricApi {
configureDataGeneration {
client = true
}
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc🧶${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "software.bernie.geckolib:geckolib-fabric-${minecraft_version}:4.1.1"
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": inputs.properties.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}
java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
jar {
inputs.property "archivesName", project.base.archivesName
from("LICENSE") {
rename { "${it}_${inputs.properties.archivesName}"}
}
}
// configure the maven publication
publishing {
publications {
create("mavenJava", MavenPublication) {
artifactId = project.archives_base_name
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
I'm sorry if my code is barely readable or if I sent it like that, I don't have my computer at hand.
it's better you can send the full error with a stacktrace
once you get to your computer
at a glance
plugins {
id 'fabric-loom' version "${loom_version}"
id 'maven-publish'
id "software.bernie.geckolib" version "4.1.1"
}
this is wrong. geckolib is not a gradle plugin
Bruh, maybe that was it, when I'm on my PC I'll tell you.
The supplied phased action failed with an exception.
A problem occurred configuring root project 'loroworld'.
Failed to setup Minecraft, java.io.UncheckedIOException: Failed to setup mappings: net.fabricmc🧶1.21+build.9
Failed to setup mappings: net.fabricmc🧶1.21+build.9
C:DIRECTORY_CENSURED.gradle\caches\fabric-loom\1.21\net.fabricmc.yarn.1_21.1.21+build.9-v2\mappings.jar: El proceso no tiene acceso al archivo porque está siendo utilizado por otro proceso
I DID IT