- Add vectored afterburner nozzle block with AzureLib model, deflection, throttle and afterburner state - Drive nozzles from the vehicle control node and map pitch, roll and yaw to differential deflection - Add afterburner toggle key and packet, linked to the control node - Replace Warium exhaust effect entities with improved flames, particles and sounds when exhaustStyle is improved - Add /aero seedgen to measure the air ceiling for the air placeholder - Upgrade Warium VS to 1.1.7 and make the lift use horizontal speed
117 lines
3.4 KiB
Groovy
117 lines
3.4 KiB
Groovy
plugins {
|
|
id 'eclipse'
|
|
id 'idea'
|
|
id 'net.minecraftforge.gradle' version '[6.0.16,6.2)'
|
|
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
|
|
}
|
|
|
|
|
|
group = mod_group_id
|
|
version = mod_version
|
|
|
|
base {
|
|
archivesName = mod_id
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
|
|
minecraft {
|
|
mappings channel: mapping_channel, version: mapping_version
|
|
copyIdeResources = true
|
|
runs {
|
|
|
|
configureEach {
|
|
workingDirectory project.file('run')
|
|
|
|
property 'forge.logging.markers', 'REGISTRIES'
|
|
|
|
property 'forge.logging.console.level', 'debug'
|
|
|
|
mods {
|
|
"${mod_id}" {
|
|
source sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
|
|
client {
|
|
}
|
|
|
|
server {
|
|
args '--nogui'
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
exclusiveContent {
|
|
forRepository {
|
|
maven {
|
|
name = "Modrinth"
|
|
url = "https://api.modrinth.com/maven"
|
|
}
|
|
}
|
|
forRepositories(fg.repository)
|
|
filter {
|
|
includeGroup "maven.modrinth"
|
|
}
|
|
}
|
|
maven {
|
|
name = "AzureDoom Mods"
|
|
url = "https://maven.azuredoom.com/mods"
|
|
content {
|
|
includeGroup "mod.azure.azurelib"
|
|
}
|
|
}
|
|
// Warium VS is not on Modrinth, it is compiled against the jar in libs/
|
|
flatDir {
|
|
dir 'libs'
|
|
}
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
|
|
|
// Valkyrien Skies 2.4.11 (hard dependency). Its core API ships jar-in-jar, so those jars are extracted into libs/
|
|
compileOnly fg.deobf("maven.modrinth:valkyrien-skies:pOkdwuUh")
|
|
compileOnly files('libs/vs-core-api-1.1.0.jar', 'libs/vs-core-util-1.1.0.jar', 'libs/joml-primitives-1.10.0.jar')
|
|
compileOnly 'org.jetbrains.kotlin:kotlin-stdlib:1.9.22'
|
|
|
|
// Warium VS 1.1.7 and Futurism 0.0.4 (optional dependencies, the flight physics mixins only apply when they are present)
|
|
compileOnly fg.deobf("blank:WariumVS:1.1.7")
|
|
compileOnly fg.deobf("blank:futurism:0.0.4")
|
|
|
|
// AzureLib 3.2.7 for the animated block models (optional dependency, the common jar uses obfuscated names, so it is remapped)
|
|
compileOnly fg.deobf("mod.azure.azurelib:azurelib-common-${minecraft_version}:${azurelib_version}")
|
|
}
|
|
|
|
|
|
tasks.named('processResources', ProcessResources).configure {
|
|
var replaceProperties = [minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range,
|
|
forge_version : forge_version, forge_version_range: forge_version_range,
|
|
loader_version_range: loader_version_range,
|
|
mod_id : mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version,
|
|
mod_authors : mod_authors, mod_description: mod_description,]
|
|
|
|
inputs.properties replaceProperties
|
|
|
|
filesMatching(['META-INF/mods.toml', 'pack.mcmeta']) {
|
|
expand replaceProperties + [project: project]
|
|
}
|
|
}
|
|
|
|
|
|
// Every mixin uses remap = false (Warium and VS are not obfuscated), so no refmap is needed
|
|
tasks.named('jar', Jar).configure {
|
|
manifest {
|
|
attributes 'MixinConfigs': "${mod_id}.mixins.json"
|
|
}
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.encoding = 'UTF-8'
|
|
}
|