Added Hive blocks

This commit is contained in:
Matt Caughey 2013-10-26 16:42:11 -04:00
parent 69cd689352
commit af7f5be853
8 changed files with 48 additions and 0 deletions

View File

@ -123,6 +123,7 @@ public class BlockReferences {
cragRock (Blocks.cragRock, 0),
quicksand (Blocks.mud, 1),
cloud (Blocks.cloud, 0),
hive (Blocks.hive, 0),
smolderingGrass (Blocks.holyGrass, 1),
redRockCobble (Blocks.redRock, 1),
giantFlowerRed (Blocks.petals, 0),

View File

@ -85,6 +85,7 @@ public class Blocks
public static Optional<? extends Block> petals = Optional.absent();
public static Optional<? extends Block> bamboo = Optional.absent();
public static Optional<? extends Block> cloud = Optional.absent();
public static Optional<? extends Block> hive = Optional.absent();
//Nether
public static Optional<? extends Block> bones = Optional.absent();

View File

@ -0,0 +1,30 @@
package biomesoplenty.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import biomesoplenty.BiomesOPlenty;
import biomesoplenty.api.Items;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class BlockHive extends Block
{
public BlockHive(int par1)
{
super(par1, Material.wood);
this.setCreativeTab(BiomesOPlenty.tabBiomesOPlenty);
}
@Override
public void registerIcons(IconRegister par1IconRegister)
{
blockIcon = par1IconRegister.registerIcon("biomesoplenty:hive");
}
}

View File

@ -40,6 +40,7 @@ import biomesoplenty.blocks.BlockBones;
import biomesoplenty.blocks.BlockCloud;
import biomesoplenty.blocks.BlockFlesh;
import biomesoplenty.blocks.BlockGrave;
import biomesoplenty.blocks.BlockHive;
import biomesoplenty.blocks.BlockIvy;
import biomesoplenty.blocks.BlockLongGrass;
import biomesoplenty.blocks.BlockMoss;
@ -178,6 +179,8 @@ public class BOPBlocks
Blocks.cragRock = Optional.of(new BlockBOPGeneric(BOPConfigurationIDs.cragRockID, Material.rock, BlockType.CRAG_ROCK));
Blocks.cloud = Optional.of((new BlockCloud(BOPConfigurationIDs.cloudID)).setHardness(0.1F).setLightOpacity(3).setStepSound(Block.soundClothFootstep).setUnlocalizedName("bop.cloud"));
Blocks.hive = Optional.of((new BlockHive(BOPConfigurationIDs.hiveID)).setHardness(0.5F).setStepSound(Block.soundGrassFootstep).setUnlocalizedName("bop.hive"));
Blocks.bones = Optional.of((new BlockBones(BOPConfigurationIDs.bonesID)).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("bop.bones"));
@ -261,6 +264,7 @@ public class BOPBlocks
GameRegistry.registerBlock(Blocks.moss.get(), ItemBlockMoss.class, "bop.moss");
GameRegistry.registerBlock(Blocks.cragRock.get(), "bop.cragRock");
GameRegistry.registerBlock(Blocks.cloud.get(), "bop.cloud");
GameRegistry.registerBlock(Blocks.hive.get(), "bop.hive");
GameRegistry.registerBlock(Blocks.bones.get(), ItemBlockBones.class, "bop.bones");
GameRegistry.registerBlock(Blocks.glass.get(), ItemBlockGlass.class, "bop.glass");

View File

@ -96,6 +96,7 @@ public class BOPConfigurationIDs
public static int crystalID;
public static int cloudID;
public static int hiveID;
public static int bonesID;
public static int glassID;
@ -404,6 +405,8 @@ public class BOPConfigurationIDs
leavesFruit2ID = config.getBlock("Fruit Leaf Block 2 ID", 1982, null).getInt();
flowers2ID = config.getBlock("Flower 2 ID", 1983, null).getInt();
hiveID = config.getBlock("Hive ID", 1984, null).getInt();
// Get Item ID's
foodID = config.getItem("Food ID", 21003, null).getInt();

View File

@ -83,6 +83,13 @@ public class BiomeLayerBiomes extends BiomeLayer
netherBiomes.add(Biomes.netherBone.get());
}
}
if (Biomes.netherBlood.isPresent())
{
if (BOPConfigurationBiomeGen.bloodyHeapGen)
{
netherBiomes.add(Biomes.netherBlood.get());
}
}
if (Biomes.netherBiomes.size() > 0)
{
netherBiomes.addAll(Biomes.netherBiomes);

View File

@ -157,6 +157,8 @@ tile.bop.moss.name=Moss
tile.bop.cloud.name=Cloud Block
tile.bop.hive.name=Hive
tile.bop.bones.bones_small.name=Small Bone Segment
tile.bop.bones.bones_medium.name=Medium Bone Segment
tile.bop.bones.bones_large.name=Large Bone Segment

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B