mirror of
https://github.com/chylex/Minecraft-View-Distance-Workaround.git
synced 2024-11-24 13:42:50 +01:00
47 lines
825 B
Plaintext
47 lines
825 B
Plaintext
val modId: String by project
|
|
val minecraftVersion: String by project
|
|
val fabricVersion: String by project
|
|
|
|
plugins {
|
|
idea
|
|
id("fabric-loom") version "0.9-SNAPSHOT"
|
|
}
|
|
|
|
dependencies {
|
|
minecraft("com.mojang:minecraft:$minecraftVersion")
|
|
modImplementation("net.fabricmc:fabric-loader:$fabricVersion")
|
|
mappings(loom.officialMojangMappings())
|
|
}
|
|
|
|
loom {
|
|
runs {
|
|
named("client") {
|
|
configName = "Fabric Client"
|
|
client()
|
|
runDir("run")
|
|
ideConfigGenerated(true)
|
|
}
|
|
|
|
named("server") {
|
|
configName = "Fabric Server"
|
|
server()
|
|
runDir("run")
|
|
ideConfigGenerated(true)
|
|
}
|
|
}
|
|
|
|
mixin {
|
|
add(sourceSets.main.get(), "$modId.refmap.json")
|
|
}
|
|
}
|
|
|
|
tasks.processResources {
|
|
filesMatching("fabric.mod.json") {
|
|
expand(inputs.properties)
|
|
}
|
|
}
|
|
|
|
tasks.remapJar {
|
|
archiveVersion.set(tasks.jar.get().archiveVersion)
|
|
}
|