#How to use other jar library
30 messages · Page 1 of 1 (latest)
build.gradle
plugins {
id 'fabric-loom' version '1.5-SNAPSHOT'
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
base {
archivesName = project.archives_base_name
}
repositories {
}
loom {
splitEnvironmentSourceSets()
mods {
"modid" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${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}"
implementation (files('src/main/resources/assets/modid/libraries/jl1.0.1.jar'))
implementation files('src/main/resources/assets/modid/libraries/jl1.0.1.jar')
implementation files('libs/jl1.0.1.jar')
implementation (files('libs/jl1.0.1.jar'))
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 17
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
}
}
what exactly log do you want to see?
Minecraft log where it crashes.
it doesn't crush
I putted sending message between and after these two but it didn't work
but no crushes
Where you call playSound()
Where is playSound used? Maybe it just doesn't find the files.
It does not even go to try-catch by guy upper message
I mean, idk where its used, just made a guess based on the context
it seems like I make something wrong with other library
deathDragon is called?
Isn't server and client code should be separated with networking 👀👀
Yes, then zombie dies
Not necessary
Did you compiled it correctly
Mabye
I was trying to )

I putted this lib everywhere