mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc40994271 |
No files matched your search
@@ -1,3 +1,3 @@
|
|||||||
#Build Number for ANT. Do not edit!
|
#Build Number for ANT. Do not edit!
|
||||||
#Sat Jan 26 13:19:10 PST 2013
|
#Mon Jan 28 02:03:40 PST 2013
|
||||||
build.number=96
|
build.number=101
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
<filter token="VERSION" value="${thaumicbees.version}" />
|
<filter token="VERSION" value="${thaumicbees.version}" />
|
||||||
<filter token="BUILD_NUMBER" value="${build.number}" />
|
<filter token="BUILD_NUMBER" value="${build.number}" />
|
||||||
<filter token="FINGERPRINT" value="${key.fingerprint}" />
|
<filter token="FINGERPRINT" value="${key.fingerprint}" />
|
||||||
<filter token="MODVERSION" value="${VERSION}-${BUILD_NUMBER}" />
|
<filter token="MODVERSION" value="${thaumicbees.version} - ${build.number}" />
|
||||||
</filterset>
|
</filterset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
|
|||||||
+21
-59
@@ -15,6 +15,7 @@ import thaumcraft.api.EnumTag;
|
|||||||
import thaumcraft.api.ObjectTags;
|
import thaumcraft.api.ObjectTags;
|
||||||
import thaumcraft.api.ThaumcraftApi;
|
import thaumcraft.api.ThaumcraftApi;
|
||||||
import thaumicbees.bees.genetics.Allele;
|
import thaumicbees.bees.genetics.Allele;
|
||||||
|
import thaumicbees.bees.genetics.AlleleEffectAuraNodeGrow;
|
||||||
import thaumicbees.bees.genetics.AlleleEffectCure;
|
import thaumicbees.bees.genetics.AlleleEffectCure;
|
||||||
import thaumicbees.bees.genetics.AlleleEffectPotion;
|
import thaumicbees.bees.genetics.AlleleEffectPotion;
|
||||||
import thaumicbees.bees.genetics.AlleleEffectSpawnMob;
|
import thaumicbees.bees.genetics.AlleleEffectSpawnMob;
|
||||||
@@ -43,21 +44,12 @@ import net.minecraft.item.ItemStack;
|
|||||||
import net.minecraft.potion.Potion;
|
import net.minecraft.potion.Potion;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
public class ThaumicBeesPlugin
|
public class TBBeeManager
|
||||||
{
|
{
|
||||||
private static int defaultBodyColour = 0xFF6E0D;
|
private static int defaultBodyColour = 0xFF6E0D;
|
||||||
private static int malevolentBodyColour = 0xe15236;
|
private static int malevolentBodyColour = 0xe15236;
|
||||||
private static boolean hideSpecies = true;
|
private static boolean hideSpecies = true;
|
||||||
|
|
||||||
public boolean isAvailable()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void preInit()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public void doInit()
|
public void doInit()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
@@ -94,6 +86,8 @@ public class ThaumicBeesPlugin
|
|||||||
Allele.cleansingEffect = new AlleleEffectCure("effectCurative", false);
|
Allele.cleansingEffect = new AlleleEffectCure("effectCurative", false);
|
||||||
Allele.digSpeed = new AlleleEffectPotion("effectDigSpeed", "Mining", Potion.digSpeed, 7, false);
|
Allele.digSpeed = new AlleleEffectPotion("effectDigSpeed", "Mining", Potion.digSpeed, 7, false);
|
||||||
Allele.moveSpeed = new AlleleEffectPotion("effectMoveSpeed", "Swiftness", Potion.moveSpeed, 5, false);
|
Allele.moveSpeed = new AlleleEffectPotion("effectMoveSpeed", "Swiftness", Potion.moveSpeed, 5, false);
|
||||||
|
|
||||||
|
Allele.nodeGen = new AlleleEffectAuraNodeGrow("effectNodeGeneration", "Nodeify", false, 800);
|
||||||
|
|
||||||
Allele.spawnBrainyZombie = new AlleleEffectSpawnMob("effectBrainy", false, "Brainy", TCEntity.BRAINY_ZOMBIE.entityID);
|
Allele.spawnBrainyZombie = new AlleleEffectSpawnMob("effectBrainy", false, "Brainy", TCEntity.BRAINY_ZOMBIE.entityID);
|
||||||
Allele.spawnBrainyZombie.setAggrosPlayerOnSpawn().setThrottle(800).setSpawnsOnPlayerNear(null).setMaxMobsInSpawnZone(2);
|
Allele.spawnBrainyZombie.setAggrosPlayerOnSpawn().setThrottle(800).setSpawnsOnPlayerNear(null).setMaxMobsInSpawnZone(2);
|
||||||
@@ -135,7 +129,7 @@ public class ThaumicBeesPlugin
|
|||||||
occult.addMemberSpecies(Allele.Mysterious);
|
occult.addMemberSpecies(Allele.Mysterious);
|
||||||
breedingMgr.registerBeeTemplate(Allele.Mysterious.getGenome());
|
breedingMgr.registerBeeTemplate(Allele.Mysterious.getGenome());
|
||||||
|
|
||||||
Allele.Arcane = new BeeSpecies("Arcane", "The pinnacle of magical bees. It is likely these lead to more powerful mutations...|Azanor, Master Thaumaturge",
|
Allele.Arcane = new BeeSpecies("Arcane", "\"Their produce is charged with magic.\"|Azanor, Master Thaumaturge",
|
||||||
"arcanus", occult, 0,
|
"arcanus", occult, 0,
|
||||||
0xd242df, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
0xd242df, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||||
true, hideSpecies, true, true);
|
true, hideSpecies, true, true);
|
||||||
@@ -280,7 +274,7 @@ public class ThaumicBeesPlugin
|
|||||||
Allele.Aware.setGenome(BeeGenomeManager.getTemplateAware());
|
Allele.Aware.setGenome(BeeGenomeManager.getTemplateAware());
|
||||||
breedingMgr.registerBeeTemplate(Allele.Aware.getGenome());
|
breedingMgr.registerBeeTemplate(Allele.Aware.getGenome());
|
||||||
|
|
||||||
Allele.Vis = new BeeSpecies("Vis", "\"They can feel changes in the aura, but are not yet able to affect it...\"|Azanor, research notes",
|
Allele.Vis = new BeeSpecies("Vis", "\"They can feel changes in the aura, but are not yet able to affect it.\"|Azanor, research notes",
|
||||||
"arcanus saecula", aware, 0,
|
"arcanus saecula", aware, 0,
|
||||||
0x004c99, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
0x004c99, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||||
false, hideSpecies, true, false);
|
false, hideSpecies, true, false);
|
||||||
@@ -304,6 +298,14 @@ public class ThaumicBeesPlugin
|
|||||||
Allele.Flux.setGenome(BeeGenomeManager.getTemplateFlux());
|
Allele.Flux.setGenome(BeeGenomeManager.getTemplateFlux());
|
||||||
breedingMgr.registerBeeTemplate(Allele.Flux.getGenome());
|
breedingMgr.registerBeeTemplate(Allele.Flux.getGenome());
|
||||||
|
|
||||||
|
Allele.Node = new BeeSpecies("Node", "Having undergone a freak mutation, these bees now attract magic to them.|Apinomicon",
|
||||||
|
"conficiens", aware, 0,
|
||||||
|
0xFFF266, 0xFF8CE9, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||||
|
true, hideSpecies, true, false);
|
||||||
|
Allele.Node.addProduct(ItemManager.combs.getStackForType(CombType.INTELLECT), 20);
|
||||||
|
Allele.Node.setGenome(BeeGenomeManager.getTemplateNode());
|
||||||
|
breedingMgr.registerBeeTemplate(Allele.Node.getGenome());
|
||||||
|
|
||||||
IClassification malevolent = AlleleManager.alleleRegistry.createAndRegisterClassification(EnumClassLevel.GENUS, "malevolens", "Malevolens");
|
IClassification malevolent = AlleleManager.alleleRegistry.createAndRegisterClassification(EnumClassLevel.GENUS, "malevolens", "Malevolens");
|
||||||
malevolent.setParent(familyBee);
|
malevolent.setParent(familyBee);
|
||||||
|
|
||||||
@@ -384,13 +386,18 @@ public class ThaumicBeesPlugin
|
|||||||
BeeMutation.Stark = new BeeMutation(Allele.Arcane, Allele.Supernatural, Allele.Stark, 8);
|
BeeMutation.Stark = new BeeMutation(Allele.Arcane, Allele.Supernatural, Allele.Stark, 8);
|
||||||
|
|
||||||
BeeMutation.Aware = new BeeMutation(Allele.getBaseSpecies("Demonic"), Allele.getBaseSpecies("Edenic"), Allele.Aware, 9);
|
BeeMutation.Aware = new BeeMutation(Allele.getBaseSpecies("Demonic"), Allele.getBaseSpecies("Edenic"), Allele.Aware, 9);
|
||||||
/*BeeMutation.Vis = new BeeMutation(Allele.Aware, Allele.Arcane, Allele.Vis, 7)
|
BeeMutation.Vis = new BeeMutation(Allele.Aware, Allele.Arcane, Allele.Vis, 7)
|
||||||
.setAuraNodeRequired(15);
|
.setAuraNodeRequired(15);
|
||||||
|
|
||||||
BeeMutation.Pure = new BeeMutation(Allele.Vis, Allele.getBaseSpecies("Edenic"), Allele.Pure, 5)
|
BeeMutation.Pure = new BeeMutation(Allele.Vis, Allele.getBaseSpecies("Edenic"), Allele.Pure, 5)
|
||||||
.setAuraNodeTypeRequired(5, EnumNodeType.PURE).setMoonPhaseBonus(MoonPhase.NEW, MoonPhase.NEW, 1.6f);
|
.setAuraNodeTypeRequired(5, EnumNodeType.PURE).setMoonPhaseBonus(MoonPhase.NEW, MoonPhase.NEW, 1.6f);
|
||||||
BeeMutation.Flux = new BeeMutation(Allele.Vis, Allele.getBaseSpecies("Edenic"), Allele.Flux, 5)
|
BeeMutation.Flux = new BeeMutation(Allele.Vis, Allele.getBaseSpecies("Edenic"), Allele.Flux, 5)
|
||||||
.setAuraNodeTypeRequired(30, EnumNodeType.UNSTABLE).setMoonPhaseBonus(MoonPhase.FULL, MoonPhase.FULL, 1.6f);*/
|
.setAuraNodeTypeRequired(30, EnumNodeType.UNSTABLE).setMoonPhaseBonus(MoonPhase.FULL, MoonPhase.FULL, 1.6f);
|
||||||
|
|
||||||
|
BeeMutation.Node = new BeeMutation(Allele.Vis, Allele.Vis, Allele.Node, 2)
|
||||||
|
.setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WANING_HALF, MoonPhase.WANING_HALF);
|
||||||
|
BeeMutation.Node1 = new BeeMutation(Allele.Vis, Allele.Vis, Allele.Node, 2)
|
||||||
|
.setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WAXING_HALF, MoonPhase.WAXING_HALF);
|
||||||
|
|
||||||
// Now we get into a little bit of branching...
|
// Now we get into a little bit of branching...
|
||||||
if (ThaumicBees.getInstanceConfig().ExtraBeesInstalled)
|
if (ThaumicBees.getInstanceConfig().ExtraBeesInstalled)
|
||||||
@@ -413,49 +420,4 @@ public class ThaumicBeesPlugin
|
|||||||
BeeMutation.Wispy = new BeeMutation(Allele.Gossamer, Allele.getBaseSpecies("Cultivated"), Allele.Wispy, 8);
|
BeeMutation.Wispy = new BeeMutation(Allele.Gossamer, Allele.getBaseSpecies("Cultivated"), Allele.Wispy, 8);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescription()
|
|
||||||
{
|
|
||||||
return "ThaumicBees";
|
|
||||||
}
|
|
||||||
|
|
||||||
public void generateSurface(World world, Random random, int i, int j)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public IGuiHandler getGuiHandler()
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public IPacketHandler getPacketHandler()
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public IPickupHandler getPickupHandler()
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public IResupplyHandler getResupplyHandler()
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ISaveEventHandler getSaveEventHandler()
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public IOreDictionaryHandler getDictionaryHandler()
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ICommand[] getConsoleCommands()
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -29,6 +29,7 @@ public class Allele implements IAllele
|
|||||||
public static BeeSpecies Vis;
|
public static BeeSpecies Vis;
|
||||||
public static BeeSpecies Pure;
|
public static BeeSpecies Pure;
|
||||||
public static BeeSpecies Flux;
|
public static BeeSpecies Flux;
|
||||||
|
public static BeeSpecies Node;
|
||||||
|
|
||||||
public static BeeSpecies Skulking;
|
public static BeeSpecies Skulking;
|
||||||
public static BeeSpecies Brainy;
|
public static BeeSpecies Brainy;
|
||||||
@@ -52,6 +53,7 @@ public class Allele implements IAllele
|
|||||||
public static AlleleEffectSpawnMob spawnWisp;
|
public static AlleleEffectSpawnMob spawnWisp;
|
||||||
public static AlleleEffectSpawnMob spawnBats;
|
public static AlleleEffectSpawnMob spawnBats;
|
||||||
public static AlleleEffectSpawnMob spawnGhast;
|
public static AlleleEffectSpawnMob spawnGhast;
|
||||||
|
public static AlleleEffectAuraNodeGrow nodeGen;
|
||||||
|
|
||||||
private String uid;
|
private String uid;
|
||||||
private boolean dominant;
|
private boolean dominant;
|
||||||
|
|||||||
@@ -0,0 +1,74 @@
|
|||||||
|
package thaumicbees.bees.genetics;
|
||||||
|
|
||||||
|
import java.lang.reflect.Method;
|
||||||
|
|
||||||
|
import thaumcraft.api.AuraNode;
|
||||||
|
import thaumcraft.api.EnumNodeType;
|
||||||
|
import thaumcraft.api.ObjectTags;
|
||||||
|
import thaumcraft.api.ThaumcraftApi;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
import forestry.api.genetics.IEffectData;
|
||||||
|
|
||||||
|
public class AlleleEffectAuraNodeGrow extends AlleleEffect
|
||||||
|
{
|
||||||
|
|
||||||
|
private int throttle;
|
||||||
|
|
||||||
|
public AlleleEffectAuraNodeGrow(String id, String identifier, boolean isDominant, int timeout)
|
||||||
|
{
|
||||||
|
super(id, isDominant, identifier);
|
||||||
|
this.throttle = timeout;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData validateStorage(IEffectData storedData)
|
||||||
|
{
|
||||||
|
if (storedData == null)
|
||||||
|
{
|
||||||
|
storedData = new EffectData(1, 0, 0);
|
||||||
|
}
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData doEffect(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
||||||
|
{
|
||||||
|
int value = storedData.getInteger(0);
|
||||||
|
if (value >= throttle)
|
||||||
|
{
|
||||||
|
World w = housing.getWorld();
|
||||||
|
float x = housing.getXCoord();
|
||||||
|
float y = housing.getYCoord();
|
||||||
|
float z = housing.getZCoord();
|
||||||
|
int nodeId = ThaumcraftApi.getClosestAuraWithinRange(w, x, y, z, 1800);
|
||||||
|
if (nodeId != -1)
|
||||||
|
{
|
||||||
|
AuraNode node = ThaumcraftApi.getNodeCopy(nodeId);
|
||||||
|
x = (float)(x - node.xPos);
|
||||||
|
y = (float)(y - node.yPos);
|
||||||
|
z = (float)(z - node.zPos);
|
||||||
|
|
||||||
|
float distance = (float)Math.sqrt(x * x + y * y + z * z);
|
||||||
|
x = x / distance;
|
||||||
|
y = y / distance;
|
||||||
|
z = z / distance;
|
||||||
|
|
||||||
|
x *= 0.02f;
|
||||||
|
y *= 0.02f;
|
||||||
|
z *= 0.02f;
|
||||||
|
|
||||||
|
ThaumcraftApi.queueNodeChanges(nodeId, 0, w.rand.nextInt(1), false, null, x, y, z);
|
||||||
|
}
|
||||||
|
storedData.setInteger(0, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
storedData.setInteger(0, value + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -319,6 +319,18 @@ public class BeeGenomeManager
|
|||||||
return genome;
|
return genome;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateNode()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseVis();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = Allele.Node;
|
||||||
|
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringSlowest");
|
||||||
|
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerAuraNode;
|
||||||
|
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.nodeGen;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
private static IAllele[] getTemplateBaseMalevolent()
|
private static IAllele[] getTemplateBaseMalevolent()
|
||||||
{
|
{
|
||||||
IAllele[] genome = getTemplateBaseThaumic();
|
IAllele[] genome = getTemplateBaseThaumic();
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public class BeeMutation implements IBeeMutation
|
|||||||
public static BeeMutation Vis;
|
public static BeeMutation Vis;
|
||||||
public static BeeMutation Pure;
|
public static BeeMutation Pure;
|
||||||
public static BeeMutation Flux;
|
public static BeeMutation Flux;
|
||||||
|
public static BeeMutation Node;
|
||||||
|
public static BeeMutation Node1;
|
||||||
public static BeeMutation Skulking;
|
public static BeeMutation Skulking;
|
||||||
public static BeeMutation Brainy;
|
public static BeeMutation Brainy;
|
||||||
public static BeeMutation Gossamer;
|
public static BeeMutation Gossamer;
|
||||||
@@ -107,7 +109,12 @@ public class BeeMutation implements IBeeMutation
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
finalChance = Math.round(chance * BeeManager.breedingManager.getBeekeepingMode(housing.getWorld()).getMutationModifier((IBeeGenome) genome0, (IBeeGenome) genome1));
|
finalChance = Math.round(chance
|
||||||
|
* housing.getMutationModifier((IBeeGenome) genome0,
|
||||||
|
(IBeeGenome) genome1)
|
||||||
|
* BeeManager.breedingManager.getBeekeepingMode(housing.getWorld())
|
||||||
|
.getMutationModifier((IBeeGenome) genome0,
|
||||||
|
(IBeeGenome) genome1));
|
||||||
}
|
}
|
||||||
|
|
||||||
return finalChance;
|
return finalChance;
|
||||||
|
|||||||
@@ -99,8 +99,8 @@ public class ItemManager
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
FMLLog.severe("ThaumicBees encountered an error during loading! Please ensure that Forestry did not fail to load.");
|
FMLLog.severe("ThaumicBees encountered a problem during loading!");
|
||||||
e.printStackTrace();
|
throw new RuntimeException("Could not register backpacks via Forestry. Did it fail to load?", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import net.minecraftforge.event.EventBus;
|
|||||||
import net.minecraftforge.event.ForgeSubscribe;
|
import net.minecraftforge.event.ForgeSubscribe;
|
||||||
import net.minecraftforge.event.world.WorldEvent;
|
import net.minecraftforge.event.world.WorldEvent;
|
||||||
import thaumcraft.api.*;
|
import thaumcraft.api.*;
|
||||||
import thaumicbees.bees.ThaumicBeesPlugin;
|
import thaumicbees.bees.TBBeeManager;
|
||||||
import thaumicbees.bees.genetics.BeeSpecies;
|
import thaumicbees.bees.genetics.BeeSpecies;
|
||||||
import thaumicbees.block.BlockManager;
|
import thaumicbees.block.BlockManager;
|
||||||
import thaumicbees.item.ItemComb;
|
import thaumicbees.item.ItemComb;
|
||||||
@@ -48,14 +48,14 @@ public class ThaumicBees
|
|||||||
private String configsPath;
|
private String configsPath;
|
||||||
private Configuration config;
|
private Configuration config;
|
||||||
private ThaumicBeesConfiguration modConfig;
|
private ThaumicBeesConfiguration modConfig;
|
||||||
private ThaumicBeesPlugin plugin;
|
private TBBeeManager plugin;
|
||||||
|
|
||||||
public ThaumicBees()
|
public ThaumicBees()
|
||||||
{
|
{
|
||||||
this.modConfig = new ThaumicBeesConfiguration();
|
this.modConfig = new ThaumicBeesConfiguration();
|
||||||
|
|
||||||
this.modConfig.ThaumcraftRecipesAdded = false;
|
this.modConfig.ThaumcraftRecipesAdded = false;
|
||||||
this.plugin = new ThaumicBeesPlugin();
|
this.plugin = new TBBeeManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Mod.PreInit
|
@Mod.PreInit
|
||||||
@@ -67,7 +67,6 @@ public class ThaumicBees
|
|||||||
this.config.load();
|
this.config.load();
|
||||||
// Allow us to set up some extra stuff.
|
// Allow us to set up some extra stuff.
|
||||||
this.modConfig.doMiscConfig(this.config);
|
this.modConfig.doMiscConfig(this.config);
|
||||||
plugin.preInit();
|
|
||||||
|
|
||||||
ThaumcraftCompat.registerResearch();
|
ThaumcraftCompat.registerResearch();
|
||||||
}
|
}
|
||||||
@@ -81,15 +80,24 @@ public class ThaumicBees
|
|||||||
// Give ThaumcraftCompat a chance to set itself up.
|
// Give ThaumcraftCompat a chance to set itself up.
|
||||||
ThaumcraftCompat.parseThaumcraftConfig(configsPath);
|
ThaumcraftCompat.parseThaumcraftConfig(configsPath);
|
||||||
this.proxy.preloadTextures();
|
this.proxy.preloadTextures();
|
||||||
|
try
|
||||||
// Grab Forestry graphics file path
|
{
|
||||||
proxy.FORESTRY_GFX_ITEMS = ItemInterface.getItem("beeComb").getItem().getTextureFile();
|
FMLLog.info("[ThaumicBees] Attempting to get Forestry's item graphics file...");
|
||||||
|
// Grab Forestry graphics file path
|
||||||
|
proxy.FORESTRY_GFX_ITEMS = ItemInterface.getItem("beeComb").getItem().getTextureFile();
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
FMLLog.severe("ThaumicBees encountered a problem while loading!");
|
||||||
|
throw new RuntimeException("Could not get the Forestry item texture file! Did Forestry load correctly?", e);
|
||||||
|
}
|
||||||
|
|
||||||
BlockManager.setupBlocks(this.config);
|
BlockManager.setupBlocks(this.config);
|
||||||
ItemManager.setupItems(this.config);
|
ItemManager.setupItems(this.config);
|
||||||
this.config.save();
|
this.config.save();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Vanilla & Forestry mechanics setup
|
// Vanilla & Forestry mechanics setup
|
||||||
ItemManager.setupCrafting();
|
ItemManager.setupCrafting();
|
||||||
// Thaumcraft-specific crafting (Infusions, & Vis-needing)
|
// Thaumcraft-specific crafting (Infusions, & Vis-needing)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package thaumicbees.main;
|
|||||||
public class VersionInfo
|
public class VersionInfo
|
||||||
{
|
{
|
||||||
|
|
||||||
public static final String Version = "@VERSION@";
|
public static final String Version = "@MODVERSION@";
|
||||||
public static final String MCVersion = "@MCVERSION@";
|
public static final String MCVersion = "@MCVERSION@";
|
||||||
public static final String Build = "@BUILD_NUMBER@";
|
public static final String Build = "@BUILD_NUMBER@";
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user