initial: server-side fix for Gunfire 0.1.6+ + SBW 0.8.9 ammo consume (me.sashegdev) - AT public-f AmmoConsumer.type

This commit is contained in:
SashegDev
2026-08-23 23:09:22 +03:00
commit 79e935ffa8
13 changed files with 233 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '6.0.+', changing: true
}
}
plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'net.minecraftforge.gradle' version '6.0.+'
}
version = findProperty('mod_version') ?: '1.0.0'
group = findProperty('group') ?: 'me.sashegdev.gunfiresbfix'
archivesBaseName = findProperty('archives_base_name') ?: 'gunfiresbfix'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
println "Java toolchain: ${java.toolchain.languageVersion.get()}"
minecraft {
mappings channel: findProperty('mappings_channel') ?: 'official', version: findProperty('mappings_version') ?: '1.20.1'
copyIdeResources = true
}
dependencies {
minecraft "net.minecraftforge:forge:${findProperty('minecraft_version')}-${findProperty('forge_version')}"
implementation fg.deobf(files('/mnt/c/Users/User/AppData/Roaming/AstralRinthApp/profiles/ZernOBT v2/mods/superbwarfare-0.8.9-final-mc1.20.1-6effe4385-all.jar'))
implementation fg.deobf(files('/tmp/GunfireOverhaul.jar'))
}
tasks.named('processResources').configure {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
jar {
manifest {
attributes([
'Specification-Title' : 'gunfiresbfix',
'Specification-Vendor' : 'Zern',
'Specification-Version' : '1',
'Implementation-Title' : project.name,
'Implementation-Version' : project.jar.archiveVersion,
'Implementation-Vendor' : 'Zern',
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
publishing {
publications {
register('maven', MavenPublication) {
from components.java
}
}
repositories {
maven {
url "file://${project.projectDir}/mcmodsrepo"
}
}
}