mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 15:03:03 +00:00
Added the Fabulous Mana Pool. Yes that is its name.
This commit is contained in:
1 parent
ae00af18dd
commit
57ac50a364
5 files changed
+31
-7
No files matched your search
@@ -10,6 +10,9 @@
|
||||
*/
|
||||
package vazkii.botania.client.render.tile;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
@@ -59,14 +62,25 @@ public class RenderTilePool extends TileEntitySpecialRenderer {
|
||||
GL11.glTranslated(d0, d1, d2);
|
||||
boolean inf = tileentity.getWorldObj() == null ? forceMeta == 1 : tileentity.getBlockMetadata() == 1;
|
||||
boolean dil = tileentity.getWorldObj() == null ? forceMeta == 2 : tileentity.getBlockMetadata() == 2;
|
||||
|
||||
boolean fab = tileentity.getWorldObj() == null ? forceMeta == 3 : tileentity.getBlockMetadata() == 3;
|
||||
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(inf ? textureInf : dil ? textureDil : texture);
|
||||
|
||||
GL11.glTranslatef(0.5F, 1.5F, 0.5F);
|
||||
GL11.glScalef(1F, -1F, -1F);
|
||||
int color = pool.color;
|
||||
float[] acolor = EntitySheep.fleeceColorTable[color];
|
||||
GL11.glColor4f(acolor[0], acolor[1], acolor[2], a);
|
||||
if(fab) {
|
||||
float time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
|
||||
if(tileentity != null)
|
||||
time += new Random(tileentity.xCoord ^ tileentity.yCoord ^ tileentity.zCoord).nextInt(100000);
|
||||
|
||||
Color color = Color.getHSBColor(time * 0.005F, 0.6F, 1F);
|
||||
GL11.glColor4ub((byte) color.getRed(), (byte) color.getGreen(), (byte) color.getBlue(), (byte) 255);
|
||||
} else {
|
||||
int color = pool.color;
|
||||
float[] acolor = EntitySheep.fleeceColorTable[color];
|
||||
GL11.glColor4f(acolor[0], acolor[1], acolor[2], a);
|
||||
}
|
||||
|
||||
model.render();
|
||||
GL11.glColor4f(1F, 1F, 1F, a);
|
||||
GL11.glScalef(1F, -1F, -1F);
|
||||
|
||||
@@ -106,8 +106,9 @@ public class BlockPool extends BlockModContainer implements IWandHUD, IWandable,
|
||||
|
||||
@Override
|
||||
public void getSubBlocks(Item par1, CreativeTabs par2, List par3) {
|
||||
par3.add(new ItemStack(par1, 1, 2));
|
||||
par3.add(new ItemStack(par1, 1, 0));
|
||||
par3.add(new ItemStack(par1, 1, 2));
|
||||
par3.add(new ItemStack(par1, 1, 3));
|
||||
par3.add(new ItemStack(par1, 1, 1));
|
||||
}
|
||||
|
||||
@@ -194,7 +195,7 @@ public class BlockPool extends BlockModContainer implements IWandHUD, IWandable,
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.pool;
|
||||
return world.getBlockMetadata(x, y, z) == 3 ? LexiconData.rainbowRod : LexiconData.pool;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -53,6 +53,7 @@ public final class ModCraftingRecipes {
|
||||
public static List<IRecipe> recipesManaLens;
|
||||
public static IRecipe recipePool;
|
||||
public static IRecipe recipePoolDiluted;
|
||||
public static IRecipe recipePoolFabulous;
|
||||
public static List<IRecipe> recipesRuneAltar;
|
||||
public static IRecipe recipeLensVelocity;
|
||||
public static IRecipe recipeLensPotency;
|
||||
@@ -401,6 +402,12 @@ public final class ModCraftingRecipes {
|
||||
'R', new ItemStack(ModFluffBlocks.livingrockSlab));
|
||||
recipePoolDiluted = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Fabulous Mana Pool Recipe
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.pool, 1, 3),
|
||||
"R R", "RRR",
|
||||
'R', new ItemStack(ModBlocks.shimmerrock));
|
||||
recipePoolFabulous = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Runic Altar Recipe
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.runeAltar),
|
||||
"SSS", "SPS",
|
||||
|
||||
@@ -715,7 +715,7 @@ public final class LexiconData {
|
||||
openBucket.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeOpenBucket));
|
||||
|
||||
rainbowRod = new ALexiconEntry(LibLexicon.TOOL_RAINBOW_ROD, categoryTools);
|
||||
rainbowRod.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("6"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeRainbowRod), new PageCraftingRecipe("3", ModCraftingRecipes.recipeBifrost), new PageCraftingRecipe("4", ModCraftingRecipes.recipeShimmerrock), new PageCraftingRecipe("5", ModCraftingRecipes.recipeShimmerwoodPlanks));
|
||||
rainbowRod.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("6"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeRainbowRod), new PageCraftingRecipe("3", ModCraftingRecipes.recipeBifrost), new PageCraftingRecipe("4", ModCraftingRecipes.recipeShimmerrock), new PageCraftingRecipe("5", ModCraftingRecipes.recipeShimmerwoodPlanks), new PageCraftingRecipe("7", ModCraftingRecipes.recipePoolFabulous));
|
||||
|
||||
tornadoRod = new BLexiconEntry(LibLexicon.TOOL_TORNADO_ROD, categoryTools);
|
||||
tornadoRod.setLexiconPages(new PageText("0"), new PageText("2"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeTornadoRod));
|
||||
|
||||
Reference in new issue
Block a user