-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a4c69e
commit f2284e9
Showing
47 changed files
with
311 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,13 @@ plugins { | |
id 'java' | ||
id 'maven-publish' | ||
id 'signing' | ||
id 'net.neoforged.gradle' version '[6.0.18,6.2)' | ||
id 'net.neoforged.gradle.userdev' version '7.0.97' | ||
} | ||
|
||
group = "io.codechicken" | ||
archivesBaseName = "Translocators" | ||
base { | ||
archivesName = "Translocators" | ||
} | ||
|
||
java { | ||
toolchain { | ||
|
@@ -22,27 +24,23 @@ sourceSets.main.resources.srcDirs += "src/main/generated" | |
|
||
mod_version = "${mod_version}." + (System.getenv("BUILD_NUMBER") ?: "1") | ||
version = "${mc_version}-${mod_version}" | ||
println "Starting build of ${archivesBaseName}, Version: ${mod_version}" | ||
println "Starting build of ${base.archivesName.get()}, Version: ${mod_version}" | ||
println "Using Forge: ${forge_version}, for Minecraft: ${mc_version}" | ||
|
||
minecraft { | ||
mappings channel: 'official', version: mc_version | ||
accessTransformer = file("src/main/resources/META-INF/accesstransformer.cfg") | ||
runs { | ||
client { | ||
workingDirectory file('run') | ||
mods { translocators { source sourceSets.main } } | ||
} | ||
server { | ||
workingDirectory file('run') | ||
mods { translocators { source sourceSets.main } } | ||
} | ||
data { | ||
workingDirectory file('run') | ||
jvmArgs.add("-XstartOnFirstThread") | ||
args '--mod', 'translocators', '--all', '--output', file("src/main/generated"), '--existing', file("src/main/resources") | ||
mods { translocators { source sourceSets.main } } | ||
} | ||
accessTransformers.file file("src/main/resources/META-INF/accesstransformer.cfg") | ||
} | ||
|
||
runs { | ||
client { | ||
workingDirectory file('run') | ||
} | ||
server { | ||
workingDirectory file('run') | ||
} | ||
data { | ||
workingDirectory file('run') | ||
programArguments.addAll '--mod', 'translocators', '--all', '--output', file("src/main/generated"), '--existing', file("src/main/resources") | ||
} | ||
} | ||
|
||
|
@@ -52,12 +50,12 @@ repositories { | |
} | ||
|
||
dependencies { | ||
minecraft "net.neoforged:forge:${mc_version}-${forge_version}" | ||
implementation fg.deobf("io.codechicken:CodeChickenLib:${mc_version}-${ccl_version}:universal") | ||
implementation fg.deobf("io.codechicken:CBMultipart:${mc_version}-${cbmp_version}:universal") | ||
implementation "net.neoforged:neoforge:${forge_version}" | ||
implementation"io.codechicken:CodeChickenLib:${mc_version}-${ccl_version}" | ||
implementation"io.codechicken:CBMultipart:${mc_version}-${cbmp_version}" | ||
} | ||
|
||
def publishingMetadata = project.layout.buildDirectory.file("libs/$archivesBaseName-$version-publishing.json") | ||
def publishingMetadata = project.layout.buildDirectory.file("libs/${base.archivesName.get()}-$version-publishing.json") | ||
def publishingMetadataTask = tasks.register("publishingMetadata") { | ||
outputs.file(publishingMetadata) | ||
doFirst { | ||
|
@@ -66,7 +64,7 @@ def publishingMetadataTask = tasks.register("publishingMetadata") { | |
'displayName' : "Translocators ${version}", | ||
'mcVersion' : "${mc_version}", | ||
'version' : "${mod_version}", | ||
'classifier' : 'universal', | ||
'classifier' : null, | ||
'modLoader' : 'neoforge', | ||
'curseforgeId': '247695', | ||
'modrinthId' : 'WIxTuRkQ', | ||
|
@@ -108,13 +106,11 @@ processResources { task -> | |
} | ||
|
||
jar { | ||
finalizedBy 'reobfJar' | ||
archiveClassifier = 'universal' | ||
manifest { | ||
attributes 'Specification-Title': archivesBaseName | ||
attributes 'Specification-Title': base.archivesName.get() | ||
attributes 'Specification-Vendor': 'covers1624' | ||
attributes 'Specification-Version': "1" | ||
attributes 'Implementation-Title': archivesBaseName | ||
attributes 'Implementation-Title': base.archivesName.get() | ||
attributes 'Implementation-Vendor': 'covers1624' | ||
attributes 'Implementation-Version': version | ||
attributes 'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") | ||
|
@@ -124,7 +120,6 @@ jar { | |
|
||
tasks.register("signJar") { | ||
dependsOn("jar") | ||
dependsOn("reobfJar") | ||
|
||
doFirst { | ||
def args = [:] | ||
|
@@ -170,7 +165,7 @@ publishing { | |
publications { | ||
Translocators(MavenPublication) { | ||
groupId project.group | ||
artifactId project.archivesBaseName | ||
artifactId project.base.archivesName.get() | ||
version project.version | ||
artifact jar | ||
artifact sourcesJar | ||
|
@@ -181,23 +176,23 @@ publishing { | |
} | ||
|
||
pom { | ||
name = archivesBaseName | ||
description = archivesBaseName | ||
url = "https://github.com/TheCBProject/${archivesBaseName}" | ||
name = base.archivesName.get() | ||
description = base.archivesName.get() | ||
url = "https://github.com/TheCBProject/${base.archivesName.get()}" | ||
scm { | ||
url = "https://github.com/TheCBProject/${archivesBaseName}" | ||
connection = "scm:git:git://github.com/TheCBProject/${archivesBaseName}.git" | ||
connection = "scm:git:[email protected]:TheCBProject/${archivesBaseName}.git" | ||
url = "https://github.com/TheCBProject/${base.archivesName.get()}" | ||
connection = "scm:git:git://github.com/TheCBProject/${base.archivesName.get()}.git" | ||
connection = "scm:git:[email protected]:TheCBProject/${base.archivesName.get()}.git" | ||
} | ||
|
||
issueManagement { | ||
system = 'github' | ||
url = "https://github.com/TheCBProject/${archivesBaseName}/issues" | ||
url = "https://github.com/TheCBProject/${base.archivesName.get()}/issues" | ||
} | ||
licenses { | ||
license { | ||
name = "MIT" | ||
url = "https://raw.githubusercontent.com/TheCBProject/${archivesBaseName}/master/LICENSE.txt" | ||
url = "https://raw.githubusercontent.com/TheCBProject/${base.archivesName.get()}/master/LICENSE.txt" | ||
distribution = 'repo' | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
mc_version=1.20.1 | ||
forge_version=47.1.65 | ||
ccl_version=4.4.0.+ | ||
mc_version=1.20.4 | ||
forge_version=20.4.237 | ||
ccl_version=4.5.0.+ | ||
ccl_version_max=5.0.0 | ||
mod_version=2.6.0 | ||
cbmp_version=3.3.0.+ | ||
mod_version=2.7.0 | ||
cbmp_version=3.4.0.+ | ||
cbmp_version_max=4.0.0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/generated/.cache/43dbc3018fae92cc3d6afd06fdaf4aa8082196e8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// 1.20.4 2024-09-23T12:56:44.961332023 translocators Recipes. | ||
b86470478db7aa35494ea40f2fe420003555cf16 data/minecraft/recipes/diamond.json | ||
6904d2eed5f0e1469ce69b43adb15c52407ae1fa data/translocators/recipes/diamond_nugget.json | ||
7a9427757b6ee11b237438bb0bccfcdd1f9d4660 data/translocators/recipes/fluid_translocator.json | ||
4fc343ddcd448bc38629bfdeafa0a8b1f4846b8c data/translocators/recipes/item_translocator.json |
4 changes: 4 additions & 0 deletions
4
src/main/generated/.cache/47c388603704cfebbc251cedb6a1ad15cd223a5a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// 1.20.4 2024-09-23T12:56:44.960306364 translocators Item models. | ||
da255926859262bfe389edf0508370a46f27b10b assets/translocators/models/item/diamond_nugget.json | ||
bf3ca3ac3b818476d9758b2d31f8a54aa5e73cd9 assets/translocators/models/item/fluid_translocator.json | ||
4f201565e027550b795bb556d73c00a7cec99da0 assets/translocators/models/item/item_translocator.json |
1 change: 1 addition & 0 deletions
1
src/main/generated/.cache/5f0a708f96a608e3cd1bae634a0e2a9d76ba23f0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// 1.20.4 2024-09-23T12:56:44.961438784 Tags for minecraft:block mod id translocators |
4 changes: 4 additions & 0 deletions
4
src/main/generated/.cache/7504cef79c788f2bdce19ded1ca0a6ca9e0712e0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// 1.20.4 2024-09-23T12:56:44.961106271 Tags for minecraft:item mod id translocators | ||
066595d5295e47124940b94a294b3e09c7fc1844 data/forge/tags/items/nuggets.json | ||
066595d5295e47124940b94a294b3e09c7fc1844 data/forge/tags/items/nuggets/diamond.json | ||
31730a223d67604c9b5e88893621ed3113ca3e6a data/translocators/tags/items/regulate.json |
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
src/main/generated/.cache/eddaa00703c70c4767c23281f132e682544d96ed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// 1.20.4 2024-09-23T12:56:44.961227232 Block States: translocators | ||
ba04de053f1f9b61db84a6b3395823abb1a1cd09 assets/translocators/blockstates/crafting_grid.json | ||
f142b327b9d3b70140ba25dd6eeed2cdb27d7952 assets/translocators/models/block/dummy.json |
2 changes: 1 addition & 1 deletion
2
src/main/generated/assets/translocators/models/block/dummy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"parent": "minecraft:block/block", | ||
"textures": { | ||
"particle": "translocators:blocks/crafting_grid" | ||
"particle": "translocators:block/crafting_grid" | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
src/main/generated/assets/translocators/models/item/fluid_translocator.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"parent": "minecraft:item/generated" | ||
"parent": "minecraft:item/generated", | ||
"class": "codechicken.translocators.client.render.RenderTranslocatorItem$Fluid", | ||
"loader": "codechickenlib:class" | ||
} |
4 changes: 3 additions & 1 deletion
4
src/main/generated/assets/translocators/models/item/item_translocator.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"parent": "minecraft:item/generated" | ||
"parent": "minecraft:item/generated", | ||
"class": "codechicken.translocators.client.render.RenderTranslocatorItem$Item", | ||
"loader": "codechickenlib:class" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"translocators:diamond_nugget" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"translocators:diamond_nugget" | ||
] | ||
|
1 change: 1 addition & 0 deletions
1
...d/data/translocators/recipes/diamond.json → ...rated/data/minecraft/recipes/diamond.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
src/main/generated/data/translocators/advancements/recipes/misc/diamond.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.