修改了一下传送落地之后玻璃的放置规则。
- 以前只要脚下是水或岩浆就无条件替换,在极小概率之下可能出现一些麻烦,所以我给改掉了。
- 现在是落地就准备替换,但是只会替换水、岩浆和空气,其他所有都会保留不变。
当然最重要的是适配Minecraft 1.21.2

另外针对开发者侧,Gradle语法从Groovy换到了Kotlin,看起来舒服多了。
This commit is contained in:
2024-10-24 09:54:11 +08:00
parent 6d3af41b34
commit e7c99c2364
4 changed files with 49 additions and 33 deletions

View File

@@ -44,7 +44,9 @@ dependencies {
// Uncomment the following line to enable the deprecated Fabric API modules.
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
// "modImplementation"("net.fabricmc.fabric-api:fabric-api-deprecated:${project.extra["fabric_version"]}")
testImplementation("com.terraformersmc:modmenu:${project.extra["modmenu_version"]}")
// ↓ 开发测试用
modRuntimeOnly("com.terraformersmc:modmenu:${project.extra["modmenu_version"]}")
}
tasks.processResources {
@@ -72,11 +74,16 @@ java {
tasks.jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}" } }
// https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:archiveFileName
archiveFileName = "${project.base.archivesName.get()}-${project.version} mc${project.extra["minecraft_version"]}.jar"
}
tasks.remapJar{
// https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:archiveFileName
// 用这个属性设置jar包的文件名格式
// 别用上面那个Jar任务的配置会被remapJar覆盖掉
archiveFileName = "${project.base.archivesName.get()}-${project.version} mc${project.extra["minecraft_version"]}.jar"}
tasks.remapSourcesJar{
archiveFileName = "${project.base.archivesName.get()}-${project.version} mc${project.extra["minecraft_version"]}-sources.jar"}
// configure the maven publication
publishing {
publications {