mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Recipe/docs for the Livingwood Avatar.
This commit is contained in:
1 parent
274c7e346b
commit
73377e311d
8 files changed
+45
-11
No files matched your search
@@ -29,12 +29,16 @@ import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.common.util.RotationHelper;
|
||||
import vazkii.botania.api.item.IAvatarWieldable;
|
||||
import vazkii.botania.api.lexicon.ILexicon;
|
||||
import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import vazkii.botania.common.block.tile.TileAvatar;
|
||||
import vazkii.botania.common.block.tile.TileSimpleInventory;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
|
||||
public class BlockAvatar extends BlockModContainer {
|
||||
public class BlockAvatar extends BlockModContainer implements ILexiconable {
|
||||
|
||||
private static final int[] META_ROTATIONS = new int[] { 2, 5, 3, 4 };
|
||||
|
||||
@@ -167,4 +171,9 @@ public class BlockAvatar extends BlockModContainer {
|
||||
return new TileAvatar();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.avatar;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -116,7 +116,7 @@ public class TileAvatar extends TileSimpleInventory implements IAvatarTile, ISid
|
||||
|
||||
@Override
|
||||
public boolean canRecieveManaFromBursts() {
|
||||
return true;
|
||||
return getStackInSlot(0) != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -300,7 +300,8 @@ public final class ModCraftingRecipes {
|
||||
public static IRecipe recipeCellBlock;
|
||||
public static IRecipe recipeCorporeaRetainer;
|
||||
public static IRecipe recipeTeruTeruBozu;
|
||||
|
||||
public static IRecipe recipeAvatar;
|
||||
|
||||
// Garden of Glass
|
||||
public static IRecipe recipeRootToSapling;
|
||||
public static IRecipe recipeRootToFertilizer;
|
||||
@@ -2022,6 +2023,13 @@ public final class ModCraftingRecipes {
|
||||
'S', new ItemStack(Blocks.double_plant));
|
||||
recipeTeruTeruBozu = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Livingwood Avatar Recipe
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.avatar),
|
||||
" W ", "WDW", "W W",
|
||||
'W', LibOreDict.LIVING_WOOD,
|
||||
'D', LibOreDict.MANA_DIAMOND);
|
||||
recipeAvatar = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Storage Block/Nugget Recipes
|
||||
|
||||
@@ -140,7 +140,7 @@ public class ItemRainbowRod extends ItemMod implements IManaUsingItem, IAvatarWi
|
||||
TileEntity te = (TileEntity) tile;
|
||||
World world = te.getWorldObj();
|
||||
|
||||
if(world.isRemote || tile.getCurrentMana() < MANA_COST_AVATAR * 25)
|
||||
if(world.isRemote || tile.getCurrentMana() < MANA_COST_AVATAR * 25 || !tile.isEnabled())
|
||||
return;
|
||||
|
||||
int x = te.xCoord;
|
||||
|
||||
@@ -156,7 +156,7 @@ public class ItemTornadoRod extends ItemMod implements IManaUsingItem, IAvatarWi
|
||||
public void onAvatarUpdate(IAvatarTile tile, ItemStack stack) {
|
||||
TileEntity te = (TileEntity) tile;
|
||||
World world = te.getWorldObj();
|
||||
if(tile.getCurrentMana() >= COST) {
|
||||
if(tile.getCurrentMana() >= COST && tile.isEnabled()) {
|
||||
int range = 5;
|
||||
int rangeY = 3;
|
||||
List<EntityPlayer> players = world.getEntitiesWithinAABB(EntityPlayer.class, AxisAlignedBB.getBoundingBox(te.xCoord + 0.5 - range, te.yCoord + 0.5 - rangeY, te.zCoord + 0.5 - range, te.xCoord + 0.5 + range, te.yCoord + 0.5 + rangeY, te.zCoord + 0.5 + range));
|
||||
|
||||
@@ -161,6 +161,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry cocoon;
|
||||
public static LexiconEntry manaBomb;
|
||||
public static LexiconEntry teruTeruBozu;
|
||||
public static LexiconEntry avatar;
|
||||
|
||||
public static LexiconEntry manaBlaster;
|
||||
public static LexiconEntry grassSeeds;
|
||||
@@ -666,6 +667,9 @@ public final class LexiconData {
|
||||
teruTeruBozu = new BLexiconEntry(LibLexicon.DEVICE_TERU_TERU_BOZU, categoryDevices);
|
||||
teruTeruBozu.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeTeruTeruBozu));
|
||||
|
||||
avatar = new BLexiconEntry(LibLexicon.DEVICE_AVATAR, categoryDevices);
|
||||
avatar.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeAvatar));
|
||||
|
||||
// TOOLS ENTRIES
|
||||
manaBlaster = new BLexiconEntry(LibLexicon.TOOL_MANA_BLASTER, categoryTools);
|
||||
manaBlaster.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipeManaBlaster));
|
||||
@@ -708,13 +712,13 @@ 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 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));
|
||||
|
||||
tornadoRod = new BLexiconEntry(LibLexicon.TOOL_TORNADO_ROD, categoryTools);
|
||||
tornadoRod.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeTornadoRod));
|
||||
tornadoRod.setLexiconPages(new PageText("0"), new PageText("2"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeTornadoRod));
|
||||
|
||||
fireRod = new BLexiconEntry(LibLexicon.TOOL_FIRE_ROD, categoryTools);
|
||||
fireRod.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeFireRod));
|
||||
fireRod.setLexiconPages(new PageText("0"), new PageText("2"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeFireRod));
|
||||
|
||||
vineBall = new BLexiconEntry(LibLexicon.TOOL_VINE_BALL, categoryTools);
|
||||
vineBall.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeVineBall), new PageCraftingRecipe("3", ModCraftingRecipes.recipeSlingshot), new PageCraftingRecipe("4", ModCraftingRecipes.recipeMossStone));
|
||||
@@ -732,7 +736,7 @@ public final class LexiconData {
|
||||
glassPick.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeGlassPick));
|
||||
|
||||
diviningRod = new BLexiconEntry(LibLexicon.TOOL_DIVINING_ROD, categoryTools);
|
||||
diviningRod.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeDiviningRod));
|
||||
diviningRod.setLexiconPages(new PageText("0"), new PageText("2"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeDiviningRod));
|
||||
|
||||
gravityRod = new ALexiconEntry(LibLexicon.TOOL_GRAVITY_ROD, categoryTools);
|
||||
gravityRod.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeGravityRod));
|
||||
@@ -741,7 +745,7 @@ public final class LexiconData {
|
||||
regenIvy.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeRegenIvy));
|
||||
|
||||
missileRod = new ALexiconEntry(LibLexicon.TOOL_MISSILE_ROD, categoryTools);
|
||||
missileRod.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeMissileRod));
|
||||
missileRod.setLexiconPages(new PageText("0"), new PageText("2"), 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));
|
||||
|
||||
@@ -131,6 +131,7 @@ public final class LibLexicon {
|
||||
public static final String DEVICE_COCOON = "cocoon";
|
||||
public static final String DEVICE_MANA_BOMB = "manaBomb";
|
||||
public static final String DEVICE_TERU_TERU_BOZU = "teruTeruBozu";
|
||||
public static final String DEVICE_AVATAR = "avatar";
|
||||
|
||||
public static final String TOOL_MANA_BLASTER = "manaBlaster";
|
||||
public static final String TOOL_GRASS_SEEDS = "grassSeeds";
|
||||
|
||||
Reference in new issue
Block a user