Finished up the Assembly Halo.

This commit is contained in:
Lizbeth Rika committed 2014-12-16 15:22:59 +00:00
1 parent a4277df7fa
commit c8a934cba8
5 files changed
+30

No files matched your search

@@ -212,6 +212,7 @@ public final class ModCraftingRecipes {
public static IRecipe recipeMissileRod;
public static IRecipe recipeHolyCloak;
public static IRecipe recipeUnholyCloak;
public static IRecipe recipeCraftingHalo;
public static void init() {
// Lexicon Recipe
@@ -1367,6 +1368,14 @@ public final class ModCraftingRecipes {
'S', LibOreDict.LIFE_ESSENCE);
recipeUnholyCloak = BotaniaAPI.getLatestAddedRecipe();
// Assembly Halo Recipe
addOreDictRecipe(new ItemStack(ModItems.craftingHalo),
" P ", "ICI", " I ",
'P', LibOreDict.MANA_PEARL,
'I', LibOreDict.MANA_STEEL,
'C', new ItemStack(Blocks.crafting_table));
recipeCraftingHalo = BotaniaAPI.getLatestAddedRecipe();
// Mana and Terrasteel Block Recipes
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
"III", "III", "III",
@@ -37,6 +37,7 @@ import net.minecraft.util.IIcon;
import net.minecraft.util.MathHelper;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import net.minecraftforge.client.event.RenderWorldLastEvent;
import net.minecraftforge.common.MinecraftForge;
@@ -49,6 +50,7 @@ import vazkii.botania.client.core.helper.RenderHelper;
import vazkii.botania.client.lib.LibResources;
import vazkii.botania.common.Botania;
import vazkii.botania.common.core.helper.InventoryHelper;
import vazkii.botania.common.core.helper.Vector3;
import vazkii.botania.common.core.helper.InventoryHelper.GenericInventory;
import vazkii.botania.common.core.helper.ItemNBTHelper;
import vazkii.botania.common.lib.LibGuiIDs;
@@ -110,6 +112,12 @@ public class ItemCraftingHalo extends ItemMod {
consumeRecipeIngredients(recipe, player.inventory, player);
if(!player.inventory.addItemStackToInventory(recipe[9]))
player.dropPlayerItemWithRandomChoice(recipe[9], false);
Vec3 lookVec3 = player.getLookVec();
Vector3 centerVector = Vector3.fromEntityCenter(player).add(lookVec3.xCoord * 3, 1.3, lookVec3.zCoord * 3);
float m = 0.1F;
for(int i = 0; i < 4; i++)
Botania.proxy.wispFX(player.worldObj, centerVector.x, centerVector.y, centerVector.z, 1F, 0F, 1F, 0.2F + 0.2F * (float) Math.random(), ((float) Math.random() - 0.5F) * m, ((float) Math.random() - 0.5F) * m, ((float) Math.random() - 0.5F) * m);
}
private static boolean consumeRecipeIngredients(ItemStack[] recipe, IInventory inv, EntityPlayer player) {
@@ -461,6 +469,8 @@ public class ItemCraftingHalo extends ItemMod {
}
RenderItem.getInstance().renderItemAndEffectIntoGUI(mc.fontRenderer, mc.renderEngine, recipe[9], x + 72, y + 18);
RenderItem.getInstance().renderItemOverlayIntoGUI(mc.fontRenderer, mc.renderEngine, recipe[9], x + 72, y + 18);
net.minecraft.client.renderer.RenderHelper.disableStandardItemLighting();
}
@@ -149,6 +149,7 @@ public final class LexiconData {
public static LexiconEntry gravityRod;
public static LexiconEntry regenIvy;
public static LexiconEntry missileRod;
public static LexiconEntry craftingHalo;
public static LexiconEntry baublesIntro;
public static LexiconEntry tinyPlanet;
@@ -568,6 +569,9 @@ public final class LexiconData {
missileRod = new ALexiconEntry(LibLexicon.TOOL_MISSILE_ROD, categoryTools);
missileRod.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeMissileRod));
craftingHalo = new BLexiconEntry(LibLexicon.TOOL_CRAFTING_HALO, categoryTools);
craftingHalo.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeCraftingHalo));
// BAUBLES ENTRIES
baublesIntro = new BLexiconEntry(LibLexicon.BAUBLE_INTRO, categoryBaubles);
baublesIntro.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_BAUBLES), new PageText("2"));
@@ -130,6 +130,7 @@ public final class LibLexicon {
public static final String TOOL_GRAVITY_ROD = "gravityRod";
public static final String TOOL_REGEN_IVY = "regenIvy";
public static final String TOOL_MISSILE_ROD = "missileRod";
public static final String TOOL_CRAFTING_HALO = "craftingHalo";
public static final String BAUBLE_INTRO = "bIntro";
public static final String BAUBLE_TINY_PLANET = "tinyPlanet";