Added Hive blocks
This commit is contained in:
parent
69cd689352
commit
af7f5be853
8 changed files with 48 additions and 0 deletions
|
@ -123,6 +123,7 @@ public class BlockReferences {
|
||||||
cragRock (Blocks.cragRock, 0),
|
cragRock (Blocks.cragRock, 0),
|
||||||
quicksand (Blocks.mud, 1),
|
quicksand (Blocks.mud, 1),
|
||||||
cloud (Blocks.cloud, 0),
|
cloud (Blocks.cloud, 0),
|
||||||
|
hive (Blocks.hive, 0),
|
||||||
smolderingGrass (Blocks.holyGrass, 1),
|
smolderingGrass (Blocks.holyGrass, 1),
|
||||||
redRockCobble (Blocks.redRock, 1),
|
redRockCobble (Blocks.redRock, 1),
|
||||||
giantFlowerRed (Blocks.petals, 0),
|
giantFlowerRed (Blocks.petals, 0),
|
||||||
|
|
|
@ -85,6 +85,7 @@ public class Blocks
|
||||||
public static Optional<? extends Block> petals = Optional.absent();
|
public static Optional<? extends Block> petals = Optional.absent();
|
||||||
public static Optional<? extends Block> bamboo = Optional.absent();
|
public static Optional<? extends Block> bamboo = Optional.absent();
|
||||||
public static Optional<? extends Block> cloud = Optional.absent();
|
public static Optional<? extends Block> cloud = Optional.absent();
|
||||||
|
public static Optional<? extends Block> hive = Optional.absent();
|
||||||
|
|
||||||
//Nether
|
//Nether
|
||||||
public static Optional<? extends Block> bones = Optional.absent();
|
public static Optional<? extends Block> bones = Optional.absent();
|
||||||
|
|
30
common/biomesoplenty/blocks/BlockHive.java
Normal file
30
common/biomesoplenty/blocks/BlockHive.java
Normal 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");
|
||||||
|
}
|
||||||
|
}
|
|
@ -40,6 +40,7 @@ import biomesoplenty.blocks.BlockBones;
|
||||||
import biomesoplenty.blocks.BlockCloud;
|
import biomesoplenty.blocks.BlockCloud;
|
||||||
import biomesoplenty.blocks.BlockFlesh;
|
import biomesoplenty.blocks.BlockFlesh;
|
||||||
import biomesoplenty.blocks.BlockGrave;
|
import biomesoplenty.blocks.BlockGrave;
|
||||||
|
import biomesoplenty.blocks.BlockHive;
|
||||||
import biomesoplenty.blocks.BlockIvy;
|
import biomesoplenty.blocks.BlockIvy;
|
||||||
import biomesoplenty.blocks.BlockLongGrass;
|
import biomesoplenty.blocks.BlockLongGrass;
|
||||||
import biomesoplenty.blocks.BlockMoss;
|
import biomesoplenty.blocks.BlockMoss;
|
||||||
|
@ -179,6 +180,8 @@ public class BOPBlocks
|
||||||
|
|
||||||
Blocks.cloud = Optional.of((new BlockCloud(BOPConfigurationIDs.cloudID)).setHardness(0.1F).setLightOpacity(3).setStepSound(Block.soundClothFootstep).setUnlocalizedName("bop.cloud"));
|
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"));
|
Blocks.bones = Optional.of((new BlockBones(BOPConfigurationIDs.bonesID)).setStepSound(Block.soundStoneFootstep).setUnlocalizedName("bop.bones"));
|
||||||
|
|
||||||
Blocks.glass = Optional.of((new BlockBOPGlass(BOPConfigurationIDs.glassID)).setStepSound(Block.soundGlassFootstep).setUnlocalizedName("bop.glass"));
|
Blocks.glass = Optional.of((new BlockBOPGlass(BOPConfigurationIDs.glassID)).setStepSound(Block.soundGlassFootstep).setUnlocalizedName("bop.glass"));
|
||||||
|
@ -261,6 +264,7 @@ public class BOPBlocks
|
||||||
GameRegistry.registerBlock(Blocks.moss.get(), ItemBlockMoss.class, "bop.moss");
|
GameRegistry.registerBlock(Blocks.moss.get(), ItemBlockMoss.class, "bop.moss");
|
||||||
GameRegistry.registerBlock(Blocks.cragRock.get(), "bop.cragRock");
|
GameRegistry.registerBlock(Blocks.cragRock.get(), "bop.cragRock");
|
||||||
GameRegistry.registerBlock(Blocks.cloud.get(), "bop.cloud");
|
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.bones.get(), ItemBlockBones.class, "bop.bones");
|
||||||
GameRegistry.registerBlock(Blocks.glass.get(), ItemBlockGlass.class, "bop.glass");
|
GameRegistry.registerBlock(Blocks.glass.get(), ItemBlockGlass.class, "bop.glass");
|
||||||
|
|
|
@ -96,6 +96,7 @@ public class BOPConfigurationIDs
|
||||||
|
|
||||||
public static int crystalID;
|
public static int crystalID;
|
||||||
public static int cloudID;
|
public static int cloudID;
|
||||||
|
public static int hiveID;
|
||||||
|
|
||||||
public static int bonesID;
|
public static int bonesID;
|
||||||
public static int glassID;
|
public static int glassID;
|
||||||
|
@ -405,6 +406,8 @@ public class BOPConfigurationIDs
|
||||||
|
|
||||||
flowers2ID = config.getBlock("Flower 2 ID", 1983, null).getInt();
|
flowers2ID = config.getBlock("Flower 2 ID", 1983, null).getInt();
|
||||||
|
|
||||||
|
hiveID = config.getBlock("Hive ID", 1984, null).getInt();
|
||||||
|
|
||||||
// Get Item ID's
|
// Get Item ID's
|
||||||
foodID = config.getItem("Food ID", 21003, null).getInt();
|
foodID = config.getItem("Food ID", 21003, null).getInt();
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,13 @@ public class BiomeLayerBiomes extends BiomeLayer
|
||||||
netherBiomes.add(Biomes.netherBone.get());
|
netherBiomes.add(Biomes.netherBone.get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (Biomes.netherBlood.isPresent())
|
||||||
|
{
|
||||||
|
if (BOPConfigurationBiomeGen.bloodyHeapGen)
|
||||||
|
{
|
||||||
|
netherBiomes.add(Biomes.netherBlood.get());
|
||||||
|
}
|
||||||
|
}
|
||||||
if (Biomes.netherBiomes.size() > 0)
|
if (Biomes.netherBiomes.size() > 0)
|
||||||
{
|
{
|
||||||
netherBiomes.addAll(Biomes.netherBiomes);
|
netherBiomes.addAll(Biomes.netherBiomes);
|
||||||
|
|
|
@ -157,6 +157,8 @@ tile.bop.moss.name=Moss
|
||||||
|
|
||||||
tile.bop.cloud.name=Cloud Block
|
tile.bop.cloud.name=Cloud Block
|
||||||
|
|
||||||
|
tile.bop.hive.name=Hive
|
||||||
|
|
||||||
tile.bop.bones.bones_small.name=Small Bone Segment
|
tile.bop.bones.bones_small.name=Small Bone Segment
|
||||||
tile.bop.bones.bones_medium.name=Medium Bone Segment
|
tile.bop.bones.bones_medium.name=Medium Bone Segment
|
||||||
tile.bop.bones.bones_large.name=Large Bone Segment
|
tile.bop.bones.bones_large.name=Large Bone Segment
|
||||||
|
|
BIN
resources/assets/biomesoplenty/textures/blocks/hive.png
Normal file
BIN
resources/assets/biomesoplenty/textures/blocks/hive.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 663 B |
Loading…
Reference in a new issue