mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-25 06:34:35 +00:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff494012ed | ||
|
|
d5dbfe5f6d | ||
|
|
a2b32f4d73 | ||
|
|
2a93fbd33d | ||
|
|
52496b770a |
No files matched your search
+13
-18
@@ -1,4 +1,4 @@
|
||||
//version: 1702141377
|
||||
//version: 1704135167
|
||||
/*
|
||||
DO NOT CHANGE THIS FILE!
|
||||
Also, you may replace this file at any time if there is an update available.
|
||||
@@ -31,8 +31,7 @@ buildscript {
|
||||
maven {
|
||||
// GTNH RetroFuturaGradle and ASM Fork
|
||||
name "GTNH Maven"
|
||||
url "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
|
||||
allowInsecureProtocol = true
|
||||
url "https://nexus.gtnewhorizons.com/repository/public/"
|
||||
}
|
||||
mavenLocal()
|
||||
}
|
||||
@@ -49,7 +48,7 @@ plugins {
|
||||
id 'org.ajoberstar.grgit' version '4.1.1' // 4.1.1 is the last jvm8 supporting version, unused, available for addon.gradle
|
||||
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
|
||||
id 'com.palantir.git-version' version '3.0.0' apply false
|
||||
id 'de.undercouch.download' version '5.4.0'
|
||||
id 'de.undercouch.download' version '5.5.0'
|
||||
id 'com.github.gmazzo.buildconfig' version '3.1.0' apply false // Unused, available for addon.gradle
|
||||
id 'com.diffplug.spotless' version '6.13.0' apply false // 6.13.0 is the last jvm8 supporting version
|
||||
id 'com.modrinth.minotaur' version '2.+' apply false
|
||||
@@ -118,7 +117,7 @@ propertyDefaultIfUnset("forceEnableMixins", false)
|
||||
propertyDefaultIfUnset("channel", "stable")
|
||||
propertyDefaultIfUnset("mappingsVersion", "12")
|
||||
propertyDefaultIfUnset("usesMavenPublishing", true)
|
||||
propertyDefaultIfUnset("mavenPublishUrl", "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases")
|
||||
propertyDefaultIfUnset("mavenPublishUrl", "https://nexus.gtnewhorizons.com/repository/releases/")
|
||||
propertyDefaultIfUnset("modrinthProjectId", "")
|
||||
propertyDefaultIfUnset("modrinthRelations", "")
|
||||
propertyDefaultIfUnset("curseForgeProjectId", "")
|
||||
@@ -573,13 +572,15 @@ afterEvaluate {
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name 'Overmind forge repo mirror'
|
||||
url 'https://gregtech.overminddl1.com/'
|
||||
name = "GTNH Maven"
|
||||
url = "https://nexus.gtnewhorizons.com/repository/public/"
|
||||
// Links for convenience:
|
||||
// Simple HTML browsing: https://nexus.gtnewhorizons.com/service/rest/repository/browse/releases/
|
||||
// Rich web UI browsing: https://nexus.gtnewhorizons.com/#browse/browse:releases
|
||||
}
|
||||
maven {
|
||||
name = "GTNH Maven"
|
||||
url = "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
|
||||
allowInsecureProtocol = true
|
||||
name 'Overmind forge repo mirror'
|
||||
url 'https://gregtech.overminddl1.com/'
|
||||
}
|
||||
maven {
|
||||
name 'sonatype'
|
||||
@@ -960,8 +961,7 @@ if (usesShadowedDependencies.toBoolean()) {
|
||||
configurations.runtimeElements.outgoing.artifact(tasks.named("shadowJar", ShadowJar))
|
||||
configurations.apiElements.outgoing.artifact(tasks.named("shadowJar", ShadowJar))
|
||||
tasks.named("jar", Jar) {
|
||||
enabled = false
|
||||
finalizedBy(tasks.shadowJar)
|
||||
archiveClassifier.set('dev-preshadow')
|
||||
}
|
||||
tasks.named("reobfJar", ReobfuscatedJar) {
|
||||
inputJar.set(tasks.named("shadowJar", ShadowJar).flatMap({it.archiveFile}))
|
||||
@@ -970,11 +970,6 @@ if (usesShadowedDependencies.toBoolean()) {
|
||||
javaComponent.withVariantsFromConfiguration(configurations.shadowRuntimeElements) {
|
||||
skip()
|
||||
}
|
||||
for (runTask in ["runClient", "runServer", "runClient17", "runServer17"]) {
|
||||
tasks.named(runTask).configure {
|
||||
dependsOn("shadowJar")
|
||||
}
|
||||
}
|
||||
}
|
||||
ext.publishableDevJar = usesShadowedDependencies.toBoolean() ? tasks.shadowJar : tasks.jar
|
||||
ext.publishableObfJar = tasks.reobfJar
|
||||
@@ -1178,7 +1173,7 @@ publishing {
|
||||
if (usesMavenPublishing.toBoolean() && System.getenv("MAVEN_USER") != null) {
|
||||
maven {
|
||||
url = mavenPublishUrl
|
||||
allowInsecureProtocol = mavenPublishUrl.startsWith("http://") // Mostly for the GTNH maven
|
||||
allowInsecureProtocol = mavenPublishUrl.startsWith("http://")
|
||||
credentials {
|
||||
username = System.getenv("MAVEN_USER") ?: "NONE"
|
||||
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
|
||||
|
||||
+3
-2
@@ -4,16 +4,17 @@ dependencies {
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.1.11:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenLib:1.1.8:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.4.13-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.4.1:dev")
|
||||
implementation("com.github.GTNewHorizons:ForgeMultipart:1.4.4:dev")
|
||||
|
||||
compileOnly("org.projectlombok:lombok:1.18.24")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
||||
|
||||
shadowImplementation("com.github.GTNewHorizons:CTMLib:1.4.4:dev")
|
||||
|
||||
compileOnly("com.github.GTNewHorizons:waila:1.6.5:dev") {
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.6.5:dev") {
|
||||
transitive = false
|
||||
}
|
||||
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.1.10-GTNH:dev")
|
||||
|
||||
compileOnly("curse.maven:ee3-65509:2305023") { // https://www.curseforge.com/minecraft/mc-mods/ee3/files/2305023
|
||||
transitive = false
|
||||
|
||||
@@ -75,6 +75,7 @@ public class Chisel {
|
||||
public static final BlockCarvable.SoundType soundMetalFootstep = new BlockCarvable.SoundType("metal", 1.0f, 1.0f);
|
||||
public static boolean multipartLoaded = false;
|
||||
public static boolean gtnhLoaded = false;
|
||||
public static boolean iguanaTweaksLoaded = false;
|
||||
public static int renderEldritchId;
|
||||
public static int renderAutoChiselId;
|
||||
public static int renderGlowId;
|
||||
@@ -148,6 +149,9 @@ public class Chisel {
|
||||
if (Loader.isModLoaded("dreamcraft")) {
|
||||
gtnhLoaded = true;
|
||||
}
|
||||
if (Loader.isModLoaded("IguanaTweaksTConstruct")) {
|
||||
iguanaTweaksLoaded = true;
|
||||
}
|
||||
TabsInit.preInit();
|
||||
Features.preInit();
|
||||
Statistics.init();
|
||||
|
||||
@@ -939,6 +939,13 @@ public enum Features {
|
||||
.setHardness(5F)
|
||||
.setResistance(10F)
|
||||
.setStepSound(Block.soundTypeMetal);
|
||||
|
||||
if (Chisel.iguanaTweaksLoaded) {
|
||||
diamond_block.setHarvestLevel("pickaxe", 4);
|
||||
} else {
|
||||
diamond_block.setHarvestLevel("pickaxe", 2);
|
||||
}
|
||||
|
||||
Carving.chisel.addVariation("diamond_block", Blocks.diamond_block, 0, 0);
|
||||
diamond_block.carverHelper.addVariation("tile.diamond.1.desc", 1, "diamond/terrain-diamond-embossed");
|
||||
diamond_block.carverHelper.addVariation("tile.diamond.2.desc", 2, "diamond/terrain-diamond-gem");
|
||||
@@ -1031,6 +1038,13 @@ public enum Features {
|
||||
.setHardness(5.0F)
|
||||
.setResistance(10.0F)
|
||||
.setStepSound(Block.soundTypeMetal);
|
||||
|
||||
if (Chisel.iguanaTweaksLoaded) {
|
||||
emerald_block.setHarvestLevel("pickaxe", 4);
|
||||
} else {
|
||||
emerald_block.setHarvestLevel("pickaxe", 2);
|
||||
}
|
||||
|
||||
Carving.chisel.addVariation("emerald_block", Blocks.emerald_block, 0, 0);
|
||||
emerald_block.carverHelper.addVariation("tile.emerald.1.desc", 1, "emerald/panel");
|
||||
emerald_block.carverHelper.addVariation("tile.emerald.2.desc", 2, "emerald/panelclassic");
|
||||
@@ -1512,6 +1526,13 @@ public enum Features {
|
||||
.setHardness(3F)
|
||||
.setResistance(10F)
|
||||
.setStepSound(Block.soundTypeMetal);
|
||||
|
||||
if (Chisel.iguanaTweaksLoaded) {
|
||||
gold_block.setHarvestLevel("pickaxe", 3);
|
||||
} else {
|
||||
gold_block.setHarvestLevel("pickaxe", 2);
|
||||
}
|
||||
|
||||
Carving.chisel.addVariation("gold_block", Blocks.gold_block, 0, 0);
|
||||
gold_block.carverHelper.addVariation("tile.gold.1.desc", 1, "gold/terrain-gold-largeingot");
|
||||
gold_block.carverHelper.addVariation("tile.gold.2.desc", 2, "gold/terrain-gold-smallingot");
|
||||
@@ -1920,6 +1941,13 @@ public enum Features {
|
||||
.setHardness(5F)
|
||||
.setResistance(10F)
|
||||
.setStepSound(Block.soundTypeMetal);
|
||||
|
||||
if (Chisel.iguanaTweaksLoaded) {
|
||||
iron_block.setHarvestLevel("pickaxe", 2);
|
||||
} else {
|
||||
iron_block.setHarvestLevel("pickaxe", 1);
|
||||
}
|
||||
|
||||
Carving.chisel.addVariation("iron_block", Blocks.iron_block, 0, 0);
|
||||
iron_block.carverHelper.addVariation("tile.iron.1.desc", 1, "iron/terrain-iron-largeingot");
|
||||
iron_block.carverHelper.addVariation("tile.iron.2.desc", 2, "iron/terrain-iron-smallingot");
|
||||
@@ -2031,6 +2059,13 @@ public enum Features {
|
||||
.setHardness(3F)
|
||||
.setResistance(5F)
|
||||
.setStepSound(Block.soundTypeStone);
|
||||
|
||||
if (Chisel.iguanaTweaksLoaded) {
|
||||
lapis_block.setHarvestLevel("pickaxe", 2);
|
||||
} else {
|
||||
lapis_block.setHarvestLevel("pickaxe", 1);
|
||||
}
|
||||
|
||||
Carving.chisel.addVariation("lapis_block", Blocks.lapis_block, 0, 0);
|
||||
lapis_block.carverHelper.addVariation("tile.lapis.1.desc", 1, "lapis/terrain-lapisblock-chunky");
|
||||
lapis_block.carverHelper.addVariation("tile.lapis.2.desc", 2, "lapis/terrain-lapisblock-panel");
|
||||
@@ -2789,6 +2824,12 @@ public enum Features {
|
||||
.setResistance(2000.0F)
|
||||
.setStepSound(Block.soundTypeStone);
|
||||
|
||||
if (Chisel.iguanaTweaksLoaded) {
|
||||
obsidian.setHarvestLevel("pickaxe", 5);
|
||||
} else {
|
||||
obsidian.setHarvestLevel("pickaxe", 3);
|
||||
}
|
||||
|
||||
Carving.chisel.addVariation("obsidian", Blocks.obsidian, 0, 0);
|
||||
obsidian.carverHelper.addVariation("tile.obsidian.1.desc", 1, "obsidian/pillar");
|
||||
obsidian.carverHelper.addVariation("tile.obsidian.2.desc", 2, "obsidian/pillar-quartz");
|
||||
|
||||
Reference in new issue
Block a user