mirror of
https://github.com/TheWhiteDog9487/RandomTeleporter.git
synced 2025-10-15 16:05:04 +08:00
0.3.2
修改了一下传送落地之后玻璃的放置规则。 - 以前只要脚下是水或岩浆就无条件替换,在极小概率之下可能出现一些麻烦,所以我给改掉了。 - 现在是落地就准备替换,但是只会替换水、岩浆和空气,其他所有都会保留不变。 当然最重要的是适配Minecraft 1.21.2 另外针对开发者侧,Gradle语法从Groovy换到了Kotlin,看起来舒服多了。
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user