支持1.21,修复一些问题,为自动工具添加实体识别

This commit is contained in:
expvintl
2024-08-18 17:46:46 +08:00
parent b86130c6f7
commit 2d360b24f1
255 changed files with 417 additions and 602 deletions

View File

@ -1,20 +1,20 @@
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
version = project.mod_version
group = project.maven_group
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.nucleoid.xyz/' }
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modCompileOnly "net.fabricmc:fabric-loader:${project.loader_version}"
modCompileOnly "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
}
processResources {
inputs.property "version", project.version
@ -29,7 +29,7 @@ processResources {
}
}
def targetJavaVersion = 17
def targetJavaVersion = 21
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {