Compare commits

..
Author SHA1 Message Date
Martin Robertz fd50df3abd update deps 2024-01-27 17:49:14 +01:00
Martin Robertz 421f07203e Merge remote-tracking branch 'Quantumlyy/bring-closer-to-forestry' into dev 2024-01-27 17:46:32 +01:00
Martin Robertz 8b41b92359 Revert "Add GT version checks to avoid crash with GT6"
This reverts commit 0c4239c954.
2024-01-27 17:46:16 +01:00
Quantumlyy a64bd5f437 check that block side is not top 2024-01-27 11:36:09 +01:00
Quantumlyy fb43f46bb8 fix: check for gtnh coremod to determine drainer functionality 2024-01-27 11:22:20 +01:00
Martin Robertz fd531035ab update deps 2024-01-27 10:48:11 +01:00
kappa_maintainer 0c4239c954 Add GT version checks to avoid crash with GT6 2024-01-27 12:56:31 +08:00
Martin Robertz 075caff6c2 update bs+deps 2024-01-22 18:25:11 +01:00
Martin Robertz dca553a13d Merge remote-tracking branch 'Quantumlyy/bring-closer-to-forestry' into dev
# Conflicts:
#	build.gradle
#	dependencies.gradle
2024-01-22 18:24:31 +01:00
Quantumlyy 9d2c667c35 the grand rename 2024-01-21 21:01:57 +01:00
Quantumlyy 67dfeb7daa requested changes 2024-01-21 20:55:21 +01:00
Quantumlyy e2080bc542 sa 2024-01-21 20:55:01 +01:00
Quantumlyy b0116884f1 GTu no transitive 2024-01-21 20:47:26 +01:00
Quantumlyy a9948fcf26 sa 2024-01-21 20:37:50 +01:00
Quantumlyy 828231c3c4 Merge branch 'bring-closer-to-forestry' of https://github.com/Quantumlyy/MagicBees into bring-closer-to-forestry 2024-01-21 20:35:45 +01:00
Quantumlyy aed51fbd9a add infusion recipe 2024-01-21 20:35:40 +01:00
Alastors 9bae32761c Update build.gradle 2024-01-21 14:33:30 -05:00
Alastors 25c04cedcb Update dependencies.gradle 2024-01-21 14:32:54 -05:00
Martin Robertz 96b526e982 update bs+deps 2024-01-12 19:06:20 +01:00
Martin Robertz d738730898 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	build.gradle
#	dependencies.gradle
2024-01-12 19:04:55 +01:00
Martin Robertz cfe1cad9e8 Merge branch 'master' into bring-closer-to-forestry 2024-01-12 19:01:54 +01:00
Martin Robertz 766a440429 update bs+deps 2024-01-12 18:58:10 +01:00
Raven Szewczyk 428bfb04f8 [ci skip] upgraded build system 2024-01-08 21:27:14 +00:00
Quantumlyy 9fb5e3d8fb reword 2023-12-31 15:08:34 +01:00
Quantumlyy 3da4083bba localize 2023-12-31 15:04:53 +01:00
Quantumlyy 9d36165259 cursed shit 2023-12-31 15:03:38 +01:00
Nejc Drobnič 573c089b96 Merge pull request #1 from GTNewHorizons/dev
update
2023-12-31 14:46:55 +01:00
Martin Robertz b82ce5e15f update 2023-12-31 14:44:27 +01:00
15 changed files with 126 additions and 99 deletions

No files matched your search

+40 -24
View File
@@ -1,4 +1,4 @@
//version: 1701530445
//version: 1705357285
/*
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,12 +48,12 @@ 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
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.24'
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.27'
}
print("You might want to check out './gradlew :faq' if your build fails.\n")
@@ -118,11 +117,12 @@ 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", "")
propertyDefaultIfUnset("curseForgeRelations", "")
propertyDefaultIfUnset("versionPattern", "")
propertyDefaultIfUnset("minimizeShadowedDependencies", true)
propertyDefaultIfUnset("relocateShadowedDependencies", true)
// Deprecated properties (kept for backwards compat)
@@ -371,6 +371,7 @@ catch (Exception ignored) {
// Pulls version first from the VERSION env and then git tag
String identifiedVersion
String versionOverride = System.getenv("VERSION") ?: null
boolean checkVersion = false
try {
// Produce a version based on the tag, or for branches something like 0.2.2-configurable-maven-and-extras.38+43090270b6-dirty
if (versionOverride == null) {
@@ -389,6 +390,8 @@ try {
}
} else if (isDirty) {
identifiedVersion += "-${branchName}+${gitDetails.gitHash}-dirty"
} else {
checkVersion = true
}
} else {
identifiedVersion = versionOverride
@@ -410,6 +413,8 @@ ext {
if (identifiedVersion == versionOverride) {
out.style(Style.Failure).text('Override version to ').style(Style.Identifier).text(modVersion).style(Style.Failure).println('!\7')
} else if (checkVersion && versionPattern && !(identifiedVersion ==~ versionPattern)) {
throw new GradleException("Invalid version: '$identifiedVersion' does not match version pattern '$versionPattern'")
}
group = "com.github.GTNewHorizons"
@@ -429,18 +434,31 @@ minecraft {
for (f in replaceGradleTokenInFile.split(',')) {
tagReplacementFiles.add f
}
out.style(Style.Info).text('replaceGradleTokenInFile is deprecated! Consider using generateGradleTokenClass.').println()
}
if (gradleTokenModId) {
injectedTags.put gradleTokenModId, modId
if (replaceGradleTokenInFile) {
injectedTags.put gradleTokenModId, modId
} else {
out.style(Style.Failure).text('gradleTokenModId is deprecated! The field will no longer be generated.').println()
}
}
if (gradleTokenModName) {
injectedTags.put gradleTokenModName, modName
if (replaceGradleTokenInFile) {
injectedTags.put gradleTokenModName, modName
} else {
out.style(Style.Failure).text('gradleTokenModName is deprecated! The field will no longer be generated.').println()
}
}
if (gradleTokenVersion) {
injectedTags.put gradleTokenVersion, modVersion
}
if (gradleTokenGroupName) {
injectedTags.put gradleTokenGroupName, modGroup
if (replaceGradleTokenInFile) {
injectedTags.put gradleTokenGroupName, modGroup
} else {
out.style(Style.Failure).text('gradleTokenGroupName is deprecated! The field will no longer be generated.').println()
}
}
if (enableGenericInjection.toBoolean()) {
injectMissingGenerics.set(true)
@@ -573,13 +591,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'
@@ -613,7 +633,7 @@ repositories {
}
maven {
name = "ic2"
url = getURL("https://maven.ic2.player.to/", "https://maven2.ic2.player.to/")
url = getURL("https://maven2.ic2.player.to/", "https://maven.ic2.player.to/")
content {
includeGroup "net.industrial-craft"
}
@@ -672,6 +692,8 @@ configurations.all {
substitute module('com.github.GTNewHorizons:SpongePoweredMixin') using module(mixinProviderSpecNoClassifer) withClassifier("dev") because("Unimixins replaces other mixin mods")
substitute module('com.github.GTNewHorizons:SpongeMixins') using module(mixinProviderSpecNoClassifer) withClassifier("dev") because("Unimixins replaces other mixin mods")
substitute module('io.github.legacymoddingmc:unimixins') using module(mixinProviderSpecNoClassifer) withClassifier("dev") because("Our previous unimixins upload was missing the dev classifier")
substitute module('org.scala-lang:scala-library:2.11.1') using module('org.scala-lang:scala-library:2.11.5') because('To allow mixing with Java 8 targets')
}
}
@@ -783,7 +805,7 @@ dependencies {
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
}
if (modId != 'hodgepodge') {
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.35')
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.4.4')
}
java17PatchDependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}:forgePatches") {transitive = false}
@@ -958,8 +980,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}))
@@ -968,11 +989,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
@@ -1176,7 +1192,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"
+6 -6
View File
@@ -1,13 +1,13 @@
// Add your dependencies here
dependencies {
compile('com.github.GTNewHorizons:ForestryMC:4.7.1:dev')
compile('com.github.GTNewHorizons:ForestryMC:4.8.2:dev')
compileOnly('com.github.GTNewHorizons:BloodMagic:1.4.3:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.4.2:dev')
compileOnly('com.github.GTNewHorizons:Baubles:1.0.3:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.10.3-GTNH:api') {transitive = false}
compileOnly('com.github.GTNewHorizons:BloodMagic:1.5.1:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.5.1:dev')
compileOnly('com.github.GTNewHorizons:Baubles:1.0.4:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.10.5-GTNH:api') {transitive = false}
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.07:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.50:dev')
}
Binary file not shown.
+1
View File
@@ -2,5 +2,6 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Vendored
+13 -9
View File
@@ -83,7 +83,8 @@ done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@@ -130,10 +131,13 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
@@ -141,7 +145,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
@@ -149,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
@@ -198,11 +202,11 @@ fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
+4 -5
View File
@@ -4,10 +4,9 @@ pluginManagement {
maven {
// RetroFuturaGradle
name "GTNH Maven"
url "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
allowInsecureProtocol = true
url "https://nexus.gtnewhorizons.com/repository/public/"
mavenContent {
includeGroup("com.gtnewhorizons.retrofuturagradle")
includeGroupByRegex("com\\.gtnewhorizons\\..+")
}
}
gradlePluginPortal()
@@ -17,8 +16,8 @@ pluginManagement {
}
plugins {
id 'com.diffplug.blowdryerSetup' version '1.6.0'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.4.0' // Provides java toolchains
id 'com.diffplug.blowdryerSetup' version '1.7.1'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' // Provides java toolchains
}
blowdryerSetup {
@@ -15,20 +15,21 @@ import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import magicbees.main.CommonProxy;
import magicbees.main.utils.TabMagicBees;
import magicbees.tileentity.TileEntityApiamancersDrainerCommon;
import magicbees.tileentity.TileEntityApiamancersDrainerGT;
import magicbees.tileentity.TileEntityApimancersDrainerCommon;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.IEssentiaContainerItem;
public class BlockApiamancersDrainer extends BlockContainer {
public class BlockApimancersDrainer extends BlockContainer {
@SideOnly(Side.CLIENT)
private IIcon[] icons;
public BlockApiamancersDrainer() {
public static Class<? extends TileEntity> drainer = TileEntityApimancersDrainerCommon.class;
public BlockApimancersDrainer() {
super(Material.rock);
this.setCreativeTab(TabMagicBees.tabMagicBees);
this.setBlockName("apiamancersDrainer");
this.setBlockName("apimancersDrainer");
this.setHardness(1f);
this.setResistance(1.5f);
this.setHarvestLevel("pickaxe", 0);
@@ -36,18 +37,21 @@ public class BlockApiamancersDrainer extends BlockContainer {
@Override
public TileEntity createNewTileEntity(World world, int metadata) {
return TileEntityApiamancersDrainerGT.isGTLoaded ? new TileEntityApiamancersDrainerGT()
: new TileEntityApiamancersDrainerCommon();
try {
return drainer.newInstance();
} catch (Exception e) {
return null;
}
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7,
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7,
float par8, float par9) {
if (world.isRemote) {
return false;
} else {
TileEntity tile = world.getTileEntity(x, y, z);
if (tile instanceof TileEntityApiamancersDrainerCommon) {
if (tile instanceof TileEntityApimancersDrainerCommon && side != 0) {
ItemStack tItemStack = player.getHeldItem();
if (tItemStack != null) {
Item tItem = tItemStack.getItem();
@@ -56,21 +60,20 @@ public class BlockApiamancersDrainer extends BlockContainer {
&& ((IEssentiaContainerItem) tItem).getAspects(player.getHeldItem()).size() > 0) {
Aspect tLocked = ((IEssentiaContainerItem) tItem).getAspects(player.getHeldItem())
.getAspects()[0];
((TileEntityApiamancersDrainerCommon) tile).setAspect(tLocked);
((TileEntityApimancersDrainerCommon) tile).setAspect(tLocked);
// TODO: improve text
player.addChatMessage(
new ChatComponentTranslation("Producing " + tLocked.getLocalizedDescription()));
}
} else {
((TileEntityApiamancersDrainerCommon) tile).setAspect(null);
// TODO: improve text
((TileEntityApimancersDrainerCommon) tile).setAspect(null);
player.addChatMessage(new ChatComponentTranslation("Cleared production specifier"));
}
world.markBlockForUpdate(x, y, z);
return true;
} else return false;
} else {
return false;
}
}
}
@@ -86,7 +89,7 @@ public class BlockApiamancersDrainer extends BlockContainer {
icons = new IIcon[4];
for (int i = 0; i < icons.length; i++) {
icons[i] = register.registerIcon(CommonProxy.DOMAIN + ":apiamancersdrainer." + i);
icons[i] = register.registerIcon(CommonProxy.DOMAIN + ":apimancersdrainer." + i);
}
}
}
+15 -13
View File
@@ -14,13 +14,14 @@ import net.minecraftforge.common.config.Property;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.event.FMLInterModComms;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import forestry.api.apiculture.BeeManager;
import forestry.api.storage.BackpackManager;
import forestry.api.storage.EnumBackpackType;
import magicbees.block.BlockApiamancersDrainer;
import magicbees.block.BlockApimancersDrainer;
import magicbees.block.BlockEffectJar;
import magicbees.block.BlockEnchantedEarth;
import magicbees.block.BlockHive;
@@ -57,8 +58,7 @@ import magicbees.main.utils.VersionInfo;
import magicbees.main.utils.compat.BotaniaHelper;
import magicbees.main.utils.compat.ThaumcraftHelper;
import magicbees.storage.BackpackDefinition;
import magicbees.tileentity.TileEntityApiamancersDrainerCommon;
import magicbees.tileentity.TileEntityApiamancersDrainerGT;
import magicbees.tileentity.TileEntityApimancersDrainerGT;
import magicbees.tileentity.TileEntityEffectJar;
import magicbees.tileentity.TileEntityMagicApiary;
import magicbees.tileentity.TileEntityManaAuraProvider;
@@ -118,7 +118,7 @@ public class Config {
public static BlockEffectJar effectJar;
public static BlockHive hive;
public static BlockMagicApiary magicApiary;
public static BlockApiamancersDrainer apiamancersDrainer;
public static BlockApimancersDrainer apimancersDrainer;
public static BlockManaAuraProvider manaAuraProvider;
public static BlockVisAuraProvider visAuraProvider;
@@ -163,6 +163,10 @@ public class Config {
// ----- Config State info ----------------------------------
public static Configuration configuration;
// ---- Loaded mods -----------------------------------------
public static boolean isGTLoaded = Loader.isModLoaded("gregtech");
public static boolean isGTNHCoreModLoaded = Loader.isModLoaded("gregtech") && Loader.isModLoaded("dreamcraft");
public Config(File configFile) {
configuration = new Configuration(configFile);
configuration.load();
@@ -343,7 +347,7 @@ public class Config {
CATEGORY_GENERAL,
"drainerTimeBetween",
200,
"The time in ticks between Apiamancer's Drainer essentia generation",
"The time in ticks between Apimancer's Drainer essentia generation",
1,
32767);
drainerTimeBetween = p.getInt(200);
@@ -351,7 +355,7 @@ public class Config {
CATEGORY_GENERAL,
"drainerAmount",
1,
"The amount that the Apiamancer's Drainer generates on every round",
"The amount that the Apimancer's Drainer generates on every round",
1,
32767);
drainerAmount = p.getInt(1);
@@ -359,7 +363,7 @@ public class Config {
CATEGORY_GENERAL,
"drainerCapacity",
512,
"The amount that the Apiamancer's Drainer can hold of each aspect",
"The amount that the Apimancer's Drainer can hold of each aspect",
1,
32767);
drainerCapacity = p.getInt(512);
@@ -504,12 +508,10 @@ public class Config {
GameRegistry.registerBlock(visAuraProvider, "visAuraProvider");
GameRegistry.registerTileEntity(TileEntityVisAuraProvider.class, "visAuraProvider");
apiamancersDrainer = new BlockApiamancersDrainer();
GameRegistry.registerBlock(apiamancersDrainer, "apiamancersDrainer");
GameRegistry.registerTileEntity(
TileEntityApiamancersDrainerGT.isGTLoaded ? TileEntityApiamancersDrainerGT.class
: TileEntityApiamancersDrainerCommon.class,
"apiamancersDrainer");
if (isGTNHCoreModLoaded) BlockApimancersDrainer.drainer = TileEntityApimancersDrainerGT.class;
apimancersDrainer = new BlockApimancersDrainer();
GameRegistry.registerBlock(apimancersDrainer, "apimancersDrainer");
GameRegistry.registerTileEntity(BlockApimancersDrainer.drainer, "apimancersDrainer");
}
}
@@ -33,6 +33,7 @@ import thaumcraft.api.crafting.InfusionRecipe;
import thaumcraft.api.research.ResearchCategories;
import thaumcraft.api.research.ResearchItem;
import thaumcraft.api.research.ResearchPage;
import thaumcraft.common.config.ConfigBlocks;
public class ThaumcraftHelper implements IModHelper {
@@ -85,7 +86,7 @@ public class ThaumcraftHelper implements IModHelper {
private static Object visAuraProvider;
private static Object voidScoop;
private static Object voidGrafter;
private static InfusionRecipe apiamancersDrainer;
private static InfusionRecipe apimancersDrainer;
public static boolean isActive() {
return isThaumcraftPresent;
@@ -292,13 +293,20 @@ public class ThaumcraftHelper implements IModHelper {
'T',
new ItemStack(miscResource, 1, MiscResource.VOID_INGOT.ordinal()));
apiamancersDrainer = ThaumcraftApi.addInfusionCraftingRecipe(
"MB_ApiamancersDrainer",
new ItemStack(Config.apiamancersDrainer),
ItemStack centrifuge = new ItemStack(ConfigBlocks.blockTube);
centrifuge.setItemDamage(2);
apimancersDrainer = ThaumcraftApi.addInfusionCraftingRecipe(
"MB_ApimancersDrainer",
new ItemStack(Config.apimancersDrainer),
6,
new AspectList().add(Aspect.ELDRITCH, 10).add(Aspect.EXCHANGE, 20).add(Aspect.VOID, 15),
Config.propolis.getStackForType(PropolisType.UNSTABLE),
new ItemStack[] { input, input, in2 });
new AspectList().add(Aspect.MAGIC, 40).add(Aspect.HARVEST, 20).add(Aspect.EXCHANGE, 20)
.add(Aspect.ELDRITCH, 20),
new ItemStack(ConfigBlocks.blockEssentiaReservoir),
new ItemStack[] { centrifuge, Config.pollen.getStackForType(PollenType.UNUSUAL),
Config.pollen.getStackForType(PollenType.PHASED),
Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY),
Config.pollen.getStackForType(PollenType.UNUSUAL),
Config.pollen.getStackForType(PollenType.PHASED) });
}
private static void setupResearch() {
@@ -544,16 +552,17 @@ public class ThaumcraftHelper implements IModHelper {
.setParentsHidden("VISPOWER").registerResearchItem();
new ResearchItem(
"MB_ApiamancersDrainer",
"MB_ApimancersDrainer",
category,
new AspectList().add(Aspect.ELDRITCH, 1).add(Aspect.HARVEST, 1).add(Aspect.MAGIC, 1)
.add((Aspect) aspectTime, 1),
-3,
5,
4,
new ItemStack(Config.apiamancersDrainer))
.setPages(getResearchPage("MB_ApiamancersDrainer.1"), new ResearchPage(apiamancersDrainer))
.setParentsHidden("VOIDMETAL", "ESSENTIARESERVOIR").setConcealed().registerResearchItem();
new ItemStack(Config.apimancersDrainer))
.setPages(getResearchPage("MB_ApimancersDrainer.1"), new ResearchPage(apimancersDrainer))
.setParentsHidden("VOIDMETAL", "ESSENTIARESERVOIR").setParents("MB_EssenceUnstable")
.setConcealed().registerResearchItem();
}
@@ -23,7 +23,7 @@ import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.aspects.IAspectContainer;
import thaumcraft.api.aspects.IEssentiaTransport;
public class TileEntityApiamancersDrainerCommon extends TileEntity implements IAspectContainer, IEssentiaTransport {
public class TileEntityApimancersDrainerCommon extends TileEntity implements IAspectContainer, IEssentiaTransport {
public Aspect aspect;
public AspectList essentia = new AspectList();
@@ -6,7 +6,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumChatFormatting;
import cpw.mods.fml.common.Loader;
import forestry.api.apiculture.IBee;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.apiculture.IBeeModifier;
@@ -15,11 +14,9 @@ import gregtech.api.interfaces.tileentity.IGregTechDeviceInformation;
import gregtech.api.metatileentity.BaseMetaTileEntity;
import gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_IndustrialApiary;
public class TileEntityApiamancersDrainerGT extends TileEntityApiamancersDrainerCommon
public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCommon
implements IGregTechDeviceInformation {
public static boolean isGTLoaded = Loader.isModLoaded("gregtech");
@Override
public boolean isGivingInformation() {
return true;
@@ -35,12 +32,8 @@ public class TileEntityApiamancersDrainerGT extends TileEntityApiamancersDrainer
+ e.getValue())
.collect(Collectors.joining(EnumChatFormatting.RESET + ", " + EnumChatFormatting.RESET));
return new String[] { //
EnumChatFormatting.DARK_PURPLE + "Apiamancer's Drainer" + EnumChatFormatting.RESET, //
aspect != null ? "Attuned: " + aspect.getName() : "Not attuned", //
"Stored Essentia:", //
aspects //
};
return new String[] { EnumChatFormatting.DARK_PURPLE + "Apimancer's Drainer" + EnumChatFormatting.RESET,
aspect != null ? "Attuned: " + aspect.getName() : "Not attuned", "Stored Essentia:", aspects };
}
@Override
@@ -38,7 +38,7 @@ item.beeRing.name=Collector's Bee Ring
tile.effectJar.name=Bee Collector's Jar
tile.magicApiary.name=Magic Apiary
tile.visAuraProvider.name=Vis Apiary Booster
tile.ApiamancersDrainer.name=Apiamancer's Drainer
tile.apimancersDrainer.name=Apimancer's Drainer
tile.manaAuraProvider.name=Mana Apiary Booster
tile.hive.curious.name=Curious Hive
tile.hive.unusual.name=Unusual Hive
@@ -685,9 +685,9 @@ tc.research_name.MB_VisAuraProvider=Vis Apiary Booster
tc.research_text.MB_VisAuraProvider=Vis? What about Bis?
tc.research_page.MB_VisAuraProvider.1=Infusing Unusual Pollen with vis and combining it with gold creates an unusual crystal that, when fed centivis from an aura node, creates an energizing aura that bees are naturally attracted to when attuned to the environment within a Magic Apiary.<LINE>§3Aqua§0 CV will double mutation rate<BR>§8Perditio§0 CV will halve lifespan<BR>§6Aer§0 CV will double production rate
tc.research_name.MB_ApiamancersDrainer=Apiamancer's Drainer
tc.research_text.MB_ApiamancersDrainer=How long will your queen last?
tc.research_page.MB_ApiamancersDrainer.1=
tc.research_name.MB_ApimancersDrainer=Apimancer's Drainer
tc.research_text.MB_ApimancersDrainer=How long will your queen last?
tc.research_page.MB_ApimancersDrainer.1=The Apimancer's Drainer is an innovative device in the field of Apimancy, designed to extract essentia from the life force of bees. It is placed beneath an apiary, establishing a direct connection with the apiary above.<BR>To determine the type of essentia it produces, the Drainer is attuned by tapping it with the desired essentia.<BR>Once attuned, the Drainer converts the life energy of the queen into the selected essentia...
tc.research_name.MB_ScoopVoid=Void Scoop
tc.research_text.MB_ScoopVoid=The dark net
File renamed without changes.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 348 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 348 B

After

Width:  |  Height:  |  Size: 348 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 378 B

After

Width:  |  Height:  |  Size: 378 B