mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 05:02:30 +00:00
Recipe/docs for the Corporea Crystal Cube.
This commit is contained in:
1 parent
dd1322b932
commit
2a34893c71
5 files changed
+33
-2
No files matched your search
@@ -16,18 +16,23 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.lexicon.ILexiconable;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
import vazkii.botania.client.lib.LibRenderIDs;
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
import vazkii.botania.common.block.tile.corporea.TileCorporeaBase;
|
||||
import vazkii.botania.common.block.tile.corporea.TileCorporeaCrystalCube;
|
||||
import vazkii.botania.common.lexicon.LexiconData;
|
||||
import vazkii.botania.common.lib.LibBlockNames;
|
||||
|
||||
public class BlockCorporeaCrystalCube extends BlockCorporeaBase {
|
||||
public class BlockCorporeaCrystalCube extends BlockCorporeaBase implements ILexiconable {
|
||||
|
||||
public BlockCorporeaCrystalCube() {
|
||||
super(Material.iron, LibBlockNames.CORPOREA_CRYSTAL_CUBE);
|
||||
setHardness(5.5F);
|
||||
setStepSound(soundTypeMetal);
|
||||
setStepSound(soundTypeMetal);
|
||||
float f = (1F - 10F / 16F) / 2F;
|
||||
setBlockBounds(f, 0F, f, 1F - f, 1F, 1F - f);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -41,6 +46,7 @@ public class BlockCorporeaCrystalCube extends BlockCorporeaBase {
|
||||
@Override
|
||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int s, float xs, float ys, float zs) {
|
||||
ItemStack stack = player.getCurrentEquippedItem();
|
||||
|
||||
if(stack != null) {
|
||||
TileCorporeaCrystalCube cube = (TileCorporeaCrystalCube) world.getTileEntity(x, y, z);
|
||||
cube.setRequestTarget(stack);
|
||||
@@ -79,4 +85,9 @@ public class BlockCorporeaCrystalCube extends BlockCorporeaBase {
|
||||
return new TileCorporeaCrystalCube();
|
||||
}
|
||||
|
||||
@Override
|
||||
public LexiconEntry getEntry(World world, int x, int y, int z, EntityPlayer player, ItemStack lexicon) {
|
||||
return LexiconData.corporeaCrystalCube;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -255,6 +255,7 @@ public final class ModCraftingRecipes {
|
||||
public static List<IRecipe> recipe18StoneChisel;
|
||||
public static IRecipe recipeBlazeBlock;
|
||||
public static List<IRecipe> recipesAltarMeta;
|
||||
public static IRecipe recipeCorporeaCrystalCube;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -1694,6 +1695,14 @@ public final class ModCraftingRecipes {
|
||||
'A', new ItemStack(ModBlocks.altar));
|
||||
recipesAltarMeta = BotaniaAPI.getLatestAddedRecipes(8);
|
||||
|
||||
// Corporea Crystal Cube Recipe
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.corporeaCrystalCube),
|
||||
"C", "G", "W",
|
||||
'C', new ItemStack(ModItems.corporeaSpark),
|
||||
'G', new ItemStack(ModBlocks.elfGlass),
|
||||
'W', LibOreDict.DREAM_WOOD);
|
||||
recipeCorporeaCrystalCube = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Storage Block Recipes
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
|
||||
"III", "III", "III",
|
||||
|
||||
@@ -196,6 +196,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry spawnerMover;
|
||||
public static LexiconEntry keepIvy;
|
||||
public static LexiconEntry blackHoleTalisman;
|
||||
public static LexiconEntry corporeaCrystalCube;
|
||||
|
||||
public static LexiconEntry baublesIntro;
|
||||
public static LexiconEntry cosmeticBaubles;
|
||||
@@ -740,6 +741,9 @@ public final class LexiconData {
|
||||
blackHoleTalisman = new ALexiconEntry(LibLexicon.ENDER_BLACK_HOLE_TALISMAN, categoryEnder);
|
||||
blackHoleTalisman.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipeBlackHoleTalisman));
|
||||
|
||||
corporeaCrystalCube = new ALexiconEntry(LibLexicon.ENDER_CORPOREA_CRYSTAL_CUBE, categoryEnder);
|
||||
corporeaCrystalCube.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeCorporeaCrystalCube));
|
||||
|
||||
// BAUBLES ENTRIES
|
||||
baublesIntro = new BLexiconEntry(LibLexicon.BAUBLE_INTRO, categoryBaubles);
|
||||
baublesIntro.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_BAUBLES), new PageText("2"));
|
||||
|
||||
@@ -168,6 +168,7 @@ public final class LibLexicon {
|
||||
public static final String ENDER_SPAWNER_MOVER = "spawnerMover";
|
||||
public static final String ENDER_KEEP_IVY = "keepIvy";
|
||||
public static final String ENDER_BLACK_HOLE_TALISMAN = "blackHoleTalisman";
|
||||
public static final String ENDER_CORPOREA_CRYSTAL_CUBE = "corporeaCrystalCube";
|
||||
|
||||
public static final String BAUBLE_INTRO = "bIntro";
|
||||
public static final String BAUBLE_COSMETIC = "cosmeticBaubles";
|
||||
|
||||
Reference in new issue
Block a user