- Set up config w/ modified SimpleConfig - Set up ExpectPlatform - Set up WeaponTypes - Added items to ItemRegister - Added dmg modifier to ToolMaterials
77 lines
2.3 KiB
Groovy
77 lines
2.3 KiB
Groovy
plugins {
|
|
id 'com.github.johnrengelman.shadow'
|
|
}
|
|
|
|
architectury {
|
|
platformSetupLoomIde()
|
|
fabric()
|
|
}
|
|
|
|
configurations {
|
|
common {
|
|
canBeResolved = true
|
|
canBeConsumed = false
|
|
}
|
|
compileClasspath.extendsFrom common
|
|
runtimeClasspath.extendsFrom common
|
|
developmentFabric.extendsFrom common
|
|
|
|
// Files in this configuration will be bundled into your mod using the Shadow plugin.
|
|
// Don't use the `shadow` configuration from the plugin itself as it's meant for excluding files.
|
|
shadowBundle {
|
|
canBeResolved = true
|
|
canBeConsumed = false
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
url "https://www.cursemaven.com"
|
|
content {
|
|
includeGroup "curse.maven"
|
|
}
|
|
}
|
|
// maven {
|
|
// name = "Team Resourceful Maven"
|
|
// url = "https://maven.teamresourceful.com/repository/maven-public/"
|
|
// }
|
|
maven { url "https://maven.shedaniel.me/" }
|
|
}
|
|
|
|
dependencies {
|
|
modImplementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version"
|
|
modImplementation "net.fabricmc.fabric-api:fabric-api:$rootProject.fabric_api_version"
|
|
modImplementation "dev.architectury:architectury-fabric:$rootProject.architectury_api_version"
|
|
|
|
// modImplementation "com.teamresourceful.resourcefulconfig:resourcefulconfig-fabric-$minecraft_version:$rconfig_version"
|
|
|
|
modImplementation "curse.maven:simplyswords-659887:5255981"
|
|
|
|
modLocalRuntime "me.shedaniel.cloth:cloth-config-fabric:${rootProject.cloth_config_version}"
|
|
// runtimeOnly "curse.maven:better-combat-by-daedelus-639842:5625757"
|
|
// runtimeOnly "curse.maven:playeranimator-658587:4587214"
|
|
// implementation "curse.maven:additional-additions-forge-582387:5155724"
|
|
// implementation "curse.maven:create-328085:5838779"
|
|
// implementation "curse.maven:create-industry-693815:5811638"
|
|
|
|
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
|
shadowBundle project(path: ':common', configuration: 'transformProductionFabric')
|
|
}
|
|
|
|
processResources {
|
|
inputs.property 'version', project.version
|
|
|
|
filesMatching('fabric.mod.json') {
|
|
expand version: project.version
|
|
}
|
|
}
|
|
|
|
shadowJar {
|
|
configurations = [project.configurations.shadowBundle]
|
|
archiveClassifier = 'dev-shadow'
|
|
}
|
|
|
|
remapJar {
|
|
inputFile.set shadowJar.archiveFile
|
|
}
|