2024-04-22 20:51:28 +02:00
|
|
|
plugins {
|
2024-04-27 02:04:00 +02:00
|
|
|
id 'idea'
|
|
|
|
id 'java'
|
|
|
|
id 'maven-publish'
|
|
|
|
id 'dev.architectury.loom'
|
|
|
|
id 'flywheel.java'
|
|
|
|
id 'flywheel.package-infos'
|
|
|
|
id 'flywheel.subproject'
|
2024-04-25 19:37:12 +02:00
|
|
|
id 'flywheel.platform'
|
2024-04-22 20:51:28 +02:00
|
|
|
}
|
|
|
|
|
2024-04-27 02:04:00 +02:00
|
|
|
evaluationDependsOn(':common')
|
|
|
|
|
|
|
|
loom {
|
|
|
|
runs {
|
|
|
|
client {
|
|
|
|
ideConfigGenerated true
|
|
|
|
|
|
|
|
// Turn on our own debug flags
|
|
|
|
property 'flw.dumpShaderSource', 'true'
|
|
|
|
property 'flw.debugMemorySafety', 'true'
|
|
|
|
|
|
|
|
// Turn on mixin debug flags
|
|
|
|
property 'mixin.debug.export', 'true'
|
|
|
|
property 'mixin.debug.verbose', 'true'
|
|
|
|
|
|
|
|
// 720p baby!
|
|
|
|
programArgs '--width', '1280', '--height', '720'
|
|
|
|
}
|
|
|
|
|
|
|
|
// We're a client mod, but we need to make sure we correctly render when playing on a server.
|
|
|
|
server {
|
|
|
|
ideConfigGenerated true
|
|
|
|
programArgs '--nogui'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-17 21:05:04 +02:00
|
|
|
dependencies {
|
2024-04-22 02:15:21 +02:00
|
|
|
modImplementation "net.fabricmc:fabric-loader:${fabric_loader_version}"
|
|
|
|
modApi "net.fabricmc.fabric-api:fabric-api:${fabric_api_version}"
|
2024-04-17 21:32:36 +02:00
|
|
|
|
2024-04-22 02:15:21 +02:00
|
|
|
modCompileOnly "maven.modrinth:sodium:${sodium_version}"
|
|
|
|
modCompileOnly "maven.modrinth:iris:${iris_version}"
|
2024-04-17 21:05:04 +02:00
|
|
|
|
2024-04-27 02:04:00 +02:00
|
|
|
forApi project(path: ':common', configuration: 'commonApi')
|
|
|
|
forLib project(path: ':common', configuration: 'commonLib')
|
|
|
|
forBackend project(path: ':common', configuration: 'commonBackend')
|
|
|
|
forImpl project(path: ':common', configuration: 'commonImpl')
|
2024-04-17 21:05:04 +02:00
|
|
|
}
|