Free NeoForge 1.21.1 modpack on Cobblemon 1.8.4 built with packwiz, plus the Kotlin companion mod (cobblesurvival) and its built-in data pack. - Phase 0: packwiz pack with Modrinth/CurseForge cross-links, build and export tooling, Prism instance sync, test server with smoke checks. - Phase 1: Poke Ball shaped island (WorldGen Editor preset, seed isle-26), Adrian's biome list, no natural ore, structures without ore or vanilla mobs, no Nether portals, world template builder and world report. - Phase 2: permadeath (CobbleHardcoreMon plus the companion mod's gap fixes), Revival Charm, expensive Healing Machine, Lootr refreshing loot, in-game self-tests on Minecraft's GameTest framework. - Phase 3 so far: 14 zones with their own spawn pools and level bands (tools/zone_layout.py, tools/zone_spawns.py, "zone" spawn condition), Cold Sweat heat and cold as gates with boss-drop insulation recipes, spawn survey and hazard self-tests in tools/quick_check.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
83 lines
2.4 KiB
Kotlin
83 lines
2.4 KiB
Kotlin
plugins {
|
|
id("java")
|
|
id("dev.architectury.loom") version ("1.11-SNAPSHOT")
|
|
id("architectury-plugin") version ("3.4-SNAPSHOT")
|
|
// Must read the stdlib that Kotlin for Forge ships (5.12.0 -> Kotlin 2.4.0).
|
|
kotlin("jvm") version ("2.4.0")
|
|
}
|
|
|
|
val modId = property("mod_id") as String
|
|
val modVersion = property("mod_version") as String
|
|
val minecraftVersion = property("minecraft_version") as String
|
|
val neoforgeVersion = property("neoforge_version") as String
|
|
val cobblemonVersion = property("cobblemon_version") as String
|
|
val kotlinforforgeVersion = property("kotlinforforge_version") as String
|
|
|
|
group = "dev.cobblesurvival"
|
|
version = modVersion
|
|
base.archivesName = modId
|
|
|
|
architectury {
|
|
platformSetupLoomIde()
|
|
neoForge()
|
|
}
|
|
|
|
loom {
|
|
silentMojangMappingsLicense()
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://maven.neoforged.net/releases/")
|
|
maven("https://thedarkcolour.github.io/KotlinForForge/")
|
|
// Cobblemon's coordinates come from its official MDK, not guessed.
|
|
maven("https://artefacts.cobblemon.com/releases/")
|
|
}
|
|
|
|
dependencies {
|
|
minecraft("net.minecraft:minecraft:$minecraftVersion")
|
|
mappings(loom.officialMojangMappings())
|
|
neoForge("net.neoforged:neoforge:$neoforgeVersion")
|
|
|
|
modCompileOnly("com.cobblemon:mod:$cobblemonVersion") { isTransitive = false }
|
|
modImplementation("com.cobblemon:neoforge:$cobblemonVersion")
|
|
implementation("thedarkcolour:kotlinforforge-neoforge:$kotlinforforgeVersion") {
|
|
exclude("net.neoforged.fancymodloader", "loader")
|
|
}
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.0")
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
}
|
|
|
|
tasks {
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
processResources {
|
|
val props = mapOf(
|
|
"mod_id" to modId,
|
|
"version" to modVersion,
|
|
"neoforge_version" to neoforgeVersion,
|
|
"cobblemon_version" to cobblemonVersion.substringBefore('+'),
|
|
"kotlinforforge_version" to kotlinforforgeVersion,
|
|
)
|
|
inputs.properties(props)
|
|
filesMatching("META-INF/neoforge.mods.toml") {
|
|
expand(props)
|
|
}
|
|
// datapacks/core ships inside the mod as an always-enabled built-in pack.
|
|
from(rootDir.resolve("../datapacks/core")) {
|
|
into("datapacks/core")
|
|
}
|
|
}
|
|
}
|