Skip to content

Commit 97d90e1

Browse files
committed
A big technical change!
- Moved codes from Java to Kotlin, and now requires fabric-language-kotlin as dependency.
1 parent 5fe6a89 commit 97d90e1

31 files changed

+754
-856
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
//file:noinspection GroovyAssignabilityCheck
22
plugins {
3-
id 'fabric-loom' version '1.2-SNAPSHOT'
3+
id 'fabric-loom' version '1.4-SNAPSHOT'
44
id 'maven-publish'
55
id 'com.modrinth.minotaur' version '2.+'
6+
id "org.jetbrains.kotlin.jvm" version "${kotlin_version}"
67
}
78

89
archivesBaseName = project.archives_base_name
@@ -30,6 +31,8 @@ dependencies {
3031
// Fabric API. This is technically optional, but you probably want it anyway.
3132
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
3233

34+
modImplementation("net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}")
35+
3336
// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
3437
// You may need to force-disable transitiveness on them.
3538
modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}") {

gradle.properties

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@ org.gradle.parallel=true
55

66
# Fabric Properties
77
# check these on https://fabricmc.net/versions.html
8-
minecraft_version=1.20.1
9-
yarn_mappings=1.20.1+build.1
10-
loader_version=0.14.21
8+
9+
minecraft_version=1.20.4
10+
yarn_mappings=1.20.4+build.3
11+
loader_version=0.15.3
1112

1213
# Modrinth Properties
13-
for_minecraft_version=1.20.1
14+
for_minecraft_version=1.20.4
1415

1516
# Mod Properties
16-
mod_version = 1.8.2
17+
mod_version = 1.8.3
1718
maven_group = cn.taskeren.minequery
1819
archives_base_name = minequery
1920

2021
# Dependencies
21-
fabric_version=0.83.0+1.20.1
22-
cloth_config_version=11.0.99
23-
modmenu_version=7.0.1
22+
fabric_version=0.91.3+1.20.4
23+
fabric_kotlin_version=1.10.16+kotlin.1.9.21
24+
kotlin_version=1.9.21
25+
cloth_config_version=13.0.114
26+
modmenu_version=9.0.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

src/main/java/cn/taskeren/minequery/MineQueryMod.java

Lines changed: 0 additions & 71 deletions
This file was deleted.

src/main/java/cn/taskeren/minequery/callback/HarvestCheck.java

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/main/java/cn/taskeren/minequery/callback/HarvestModLike.java

Lines changed: 0 additions & 69 deletions
This file was deleted.

src/main/java/cn/taskeren/minequery/callback/NotHit.java

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)