initial: JustASplash 1.21.1 NeoForge me.sashegdev - hotkey Z fullscreen png/gif ogg/mp3 fade 3s

This commit is contained in:
SashegDev
2026-08-24 02:54:49 +03:00
commit 6021a7c60b
14 changed files with 495 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'net.neoforged.gradle.userdev' version '7.0.163'
}
version = findProperty('mod_version') ?: '1.0.0'
group = findProperty('group') ?: 'me.sashegdev.justasplash'
archivesBaseName = findProperty('archives_base_name') ?: 'justasplash'
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
println "Java: ${java.toolchain.languageVersion.get()} - NeoForge ${findProperty('neo_version')}"
minecraft {
mappings channel: findProperty('mappings_channel') ?: 'official', version: findProperty('mappings_version') ?: '1.21.1'
copyIdeResources = true
}
repositories {
mavenCentral()
}
dependencies {
implementation "net.neoforged:neoforge:${findProperty('neo_version')}"
implementation "javazoom:jlayer:1.0.1"
implementation "com.googlecode.soundlibs:mp3spi:1.9.5.4"
implementation "com.googlecode.soundlibs:tritonus-share:0.3.7.4"
implementation "com.googlecode.soundlibs:jorbis:0.0.17.4"
}
tasks.named('processResources', DuplicatesStrategy.INCLUDE).configure {
var replaceProperties = [
minecraft_version: findProperty('minecraft_version'), neo_version: findProperty('neo_version'),
loader_version: findProperty('loader_version'), mod_version: findProperty('mod_version')
]
inputs.properties(replaceProperties)
filesMatching(['META-INF/neoforge.mods.toml', 'pack.mcmeta']) {
expand(replaceProperties)
}
}
jar {
manifest {
attributes([
'Specification-Title' : 'justasplash',
'Specification-Vendor' : 'SashegDev',
'Specification-Version' : '1',
'Implementation-Title' : project.name,
'Implementation-Version' : project.jar.archiveVersion,
'Implementation-Vendor' : 'SashegDev',
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}