mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fd531035ab | ||
|
|
0c4239c954 | ||
|
|
075caff6c2 | ||
|
|
dca553a13d | ||
|
|
9d2c667c35 | ||
|
|
67dfeb7daa | ||
|
|
e2080bc542 | ||
|
|
b0116884f1 | ||
|
|
a9948fcf26 | ||
|
|
828231c3c4 | ||
|
|
aed51fbd9a | ||
|
|
9bae32761c | ||
|
|
25c04cedcb | ||
|
|
cfe1cad9e8 |
No files matched your search
+23
-4
@@ -1,4 +1,4 @@
|
||||
//version: 1704751096
|
||||
//version: 1705357285
|
||||
/*
|
||||
DO NOT CHANGE THIS FILE!
|
||||
Also, you may replace this file at any time if there is an update available.
|
||||
@@ -122,6 +122,7 @@ propertyDefaultIfUnset("modrinthProjectId", "")
|
||||
propertyDefaultIfUnset("modrinthRelations", "")
|
||||
propertyDefaultIfUnset("curseForgeProjectId", "")
|
||||
propertyDefaultIfUnset("curseForgeRelations", "")
|
||||
propertyDefaultIfUnset("versionPattern", "")
|
||||
propertyDefaultIfUnset("minimizeShadowedDependencies", true)
|
||||
propertyDefaultIfUnset("relocateShadowedDependencies", true)
|
||||
// Deprecated properties (kept for backwards compat)
|
||||
@@ -370,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) {
|
||||
@@ -388,6 +390,8 @@ try {
|
||||
}
|
||||
} else if (isDirty) {
|
||||
identifiedVersion += "-${branchName}+${gitDetails.gitHash}-dirty"
|
||||
} else {
|
||||
checkVersion = true
|
||||
}
|
||||
} else {
|
||||
identifiedVersion = versionOverride
|
||||
@@ -409,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"
|
||||
@@ -428,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)
|
||||
|
||||
+4
-4
@@ -3,11 +3,11 @@
|
||||
dependencies {
|
||||
compile('com.github.GTNewHorizons:ForestryMC:4.8.2:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.5.0:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.5.0:dev')
|
||||
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.4-GTNH:api') {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.25:dev')
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.47:dev')
|
||||
}
|
||||
|
||||
@@ -131,7 +131,6 @@ import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import gregtech.api.enums.Materials;
|
||||
import magicbees.item.types.CombType;
|
||||
import magicbees.item.types.DropType;
|
||||
@@ -262,7 +261,7 @@ public class BeeProductHelper {
|
||||
}
|
||||
|
||||
public static void initOreDictSProducts() {
|
||||
boolean isGTLoaded = Loader.isModLoaded("gregtech");
|
||||
boolean isGTLoaded = Config.isGTLoaded;
|
||||
SILVER.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetSilver").size() > 0) {
|
||||
SILVER.addSpecialty(
|
||||
|
||||
+9
-12
@@ -15,21 +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.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 static Class<? extends TileEntity> drainer = TileEntityApiamancersDrainerCommon.class;
|
||||
public static Class<? extends TileEntity> drainer = TileEntityApimancersDrainerCommon.class;
|
||||
|
||||
public BlockApiamancersDrainer() {
|
||||
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);
|
||||
@@ -51,7 +51,7 @@ public class BlockApiamancersDrainer extends BlockContainer {
|
||||
return false;
|
||||
} else {
|
||||
TileEntity tile = world.getTileEntity(x, y, z);
|
||||
if (tile instanceof TileEntityApiamancersDrainerCommon) {
|
||||
if (tile instanceof TileEntityApimancersDrainerCommon) {
|
||||
ItemStack tItemStack = player.getHeldItem();
|
||||
if (tItemStack != null) {
|
||||
Item tItem = tItemStack.getItem();
|
||||
@@ -60,16 +60,13 @@ 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);
|
||||
@@ -90,7 +87,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ 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;
|
||||
@@ -58,7 +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.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;
|
||||
|
||||
@@ -164,7 +164,8 @@ public class Config {
|
||||
public static Configuration configuration;
|
||||
|
||||
// ---- Loaded mods -----------------------------------------
|
||||
public static boolean isGTLoaded = Loader.isModLoaded("gregtech");
|
||||
public static boolean isGTLoaded = Loader.isModLoaded("gregtech")
|
||||
&& !Loader.instance().getIndexedModList().get("gregtech").getVersion().startsWith("GT6");
|
||||
|
||||
public Config(File configFile) {
|
||||
configuration = new Configuration(configFile);
|
||||
@@ -346,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);
|
||||
@@ -354,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);
|
||||
@@ -362,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);
|
||||
@@ -507,10 +508,10 @@ public class Config {
|
||||
GameRegistry.registerBlock(visAuraProvider, "visAuraProvider");
|
||||
GameRegistry.registerTileEntity(TileEntityVisAuraProvider.class, "visAuraProvider");
|
||||
|
||||
if (isGTLoaded) BlockApiamancersDrainer.drainer = TileEntityApiamancersDrainerGT.class;
|
||||
apiamancersDrainer = new BlockApiamancersDrainer();
|
||||
GameRegistry.registerBlock(apiamancersDrainer, "apiamancersDrainer");
|
||||
GameRegistry.registerTileEntity(BlockApiamancersDrainer.drainer, "apiamancersDrainer");
|
||||
if (isGTLoaded) 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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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();
|
||||
+3
-7
@@ -14,7 +14,7 @@ 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 {
|
||||
|
||||
@Override
|
||||
@@ -32,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=The Apiamancer'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_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 |
Reference in new issue
Block a user