Compare commits

...
Author SHA1 Message Date
Martin Robertz cad7d4d5f1 update
(cherry picked from commit 903619e38c)
2024-12-10 20:35:32 +01:00
Raven Szewczyk 9699d6764a Fix music disk use in the GT electric jukebox by adding metadata (#66)
(cherry picked from commit 7f838cd24c)
2024-12-10 20:35:27 +01:00
8 changed files with 28 additions and 13 deletions

No files matched your search

+5 -5
View File
@@ -1,19 +1,19 @@
// Add your dependencies here
dependencies {
compile('com.github.GTNewHorizons:Baubles:1.0.4:dev')
api('com.github.GTNewHorizons:Baubles:1.0.4:dev')
compile('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
compileOnly('com.github.GTNewHorizons:Railcraft:9.15.15:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:StorageDrawers:2.0.5-GTNH:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.5.0:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:NotEnoughItems:2.6.50-GTNH:dev')
compileOnly('com.github.GTNewHorizons:NotEnoughItems:2.6.51-GTNH:dev')
compileOnly('com.github.GTNewHorizons:BuildCraft:7.1.39:api') {transitive=false}
compile('com.github.GTNewHorizons:GTNHLib:0.5.21:dev')
api('com.github.GTNewHorizons:GTNHLib:0.5.22:dev')
compileOnly('curse.maven:cofh-lib-220333:2388748')
compileOnly('curse.maven:minefactory-reloaded-66672:2366150')
devOnlyNonPublishable('com.github.GTNewHorizons:NotEnoughItems:2.6.50-GTNH:dev')
devOnlyNonPublishable('com.github.GTNewHorizons:NotEnoughItems:2.6.51-GTNH:dev')
}
+3 -3
View File
@@ -50,10 +50,10 @@ enableGenericInjection = false
# Generate a class with a String field for the mod version named as defined below.
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
generateGradleTokenClass =
generateGradleTokenClass = vazkii.botania.common.Tags
# Name of the token containing the project's current version to generate/replace.
gradleTokenVersion = GRADLETOKEN_VERSION
gradleTokenVersion = VERSION
# [DEPRECATED] Mod ID replacement token.
gradleTokenModId =
@@ -70,7 +70,7 @@ gradleTokenGroupName =
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
# version in @Mod([...], version = VERSION, [...]).
# Leave these properties empty to skip individual token replacements.
replaceGradleTokenInFile = LibMisc.java
replaceGradleTokenInFile =
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
# leave this property empty.
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.29'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.30'
}
@@ -21,8 +21,9 @@ import vazkii.botania.common.core.BotaniaCreativeTab;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import com.gtnewhorizon.gtnhlib.api.MusicRecordMetadataProvider;
public class ItemModRecord extends ItemRecord {
public class ItemModRecord extends ItemRecord implements MusicRecordMetadataProvider {
private final String file;
@@ -55,4 +56,11 @@ public class ItemModRecord extends ItemRecord {
return new ResourceLocation(file);
}
@Override
public ResourceLocation getMusicRecordResource(ItemStack stack) {
if (stack == null || !(stack.getItem() instanceof ItemModRecord)) {
return null;
}
return new ResourceLocation(file);
}
}
@@ -11,14 +11,15 @@
package vazkii.botania.common.lib;
import net.minecraftforge.common.util.ForgeDirection;
import vazkii.botania.common.Tags;
public final class LibMisc {
// Mod Constants
public static final String MOD_ID = "Botania";
public static final String MOD_NAME = MOD_ID;
public static final String VERSION = "GRADLETOKEN_VERSION";
public static final String DEPENDENCIES = "required-after:Baubles;after:Thaumcraft";
public static final String VERSION = Tags.VERSION;
public static final String DEPENDENCIES = "required-after:Baubles;after:Thaumcraft;required-after:gtnhlib@[0.5.22,)";
// Network Contants
public static final String NETWORK_CHANNEL = MOD_ID;
@@ -0,0 +1,6 @@
{
"soundDurationsMs": {
"botania:music.gaia1": 202498,
"botania:music.gaia2": 226995
}
}