Im not sure why, but my custom swamp as well as my custom mountain biomes spawn without a filler block and a top block. Instead they're both just stone wastelands. The custom water and trees spawn, just not the grass/dirt blocks. I would really apreciate the help. -killerjdog51
Chocolate Swamp
package com.chocolatemod.worldgen;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenAbstractTree;
import com.chocolatemod.block.BlockRegistry;
import com.chocolatemod.liquids.LiquidRegistry;
import com.chocolatemod.mobs.Entitychocolateglob;
import com.chocolatemod.mobs.Entitydarkchocolateglob;
import com.chocolatemod.mobs.Entitylightchocolateglob;
import com.chocolatemod.mobs.Entitywhitechocolateglob;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class BiomeGenChocolateSwamp extends BiomeGenChocolateBase {
protected BiomeGenChocolateSwamp(int par1) {
super(par1);
this.topBlock = BlockRegistry.chocoGrass;
this.fillerBlock = BlockRegistry.chocoDirt;
this.theChocolateBiomeDecorator.treesPerChunk = 2;
this.theChocolateBiomeDecorator.flowersPerChunk = 1;
this.theChocolateBiomeDecorator.deadBushPerChunk = 1;
this.theChocolateBiomeDecorator.mushroomsPerChunk = 8;
this.theChocolateBiomeDecorator.reedsPerChunk = 10;
this.theChocolateBiomeDecorator.clayPerChunk = 1;
this.theChocolateBiomeDecorator.waterlilyPerChunk = 4;
this.theChocolateBiomeDecorator.sandPerChunk2 = 0;
this.theChocolateBiomeDecorator.sandPerChunk = 0;
this.theChocolateBiomeDecorator.grassPerChunk = 5;
this.waterColorMultiplier = 14745518;
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(Entitychocolateglob.class, 1, 1, 1)); this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(Entitychocolateglob.class, 1, 1, 1));
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(Entitydarkchocolateglob.class, 1, 1, 1));
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(Entitylightchocolateglob.class, 1, 1, 1));
this.spawnableMonsterList.add(new BiomeGenBase.SpawnListEntry(Entitywhitechocolateglob.class, 1, 1, 1));
this.flowers.clear();
}
@Override
public WorldGenAbstractTree func_150567_a(Random p_150567_1_) {
return this.worldGeneratorChocolateSwamp;
}
public void genTerrainBlocks(World p_150573_1_, Random p_150573_2_, Block[] p_150573_3_, byte[] p_150573_4_, int p_150573_5_, int p_150573_6_, double p_150573_7_) {
double d1 = plantNoise.func_151601_a((double) p_150573_5_ * 0.25D, (double) p_150573_6_ * 0.25D);
if (d1 > 0.0D) {
int k = p_150573_5_ & 15;
int l = p_150573_6_ & 15;
int i1 = p_150573_3_.length / 256;
for (int j1 = 255; j1 >= 0; --j1) {
int k1 = (l * 16 + k) * i1 + j1;
if (p_150573_3_[k1] == null || p_150573_3_[k1].getMaterial() != Material.air) {
if (j1 == 62 && p_150573_3_[k1] != LiquidRegistry.chocolateMilkBlock) {
p_150573_3_[k1] = LiquidRegistry.chocolateMilkBlock;
if (d1 < 0.12D) {
p_150573_3_[k1 + 1] = Blocks.waterlily;
}
}
break;
}
}
}
this.genBiomeTerrain(p_150573_1_, p_150573_2_, p_150573_3_, p_150573_4_, p_150573_5_, p_150573_6_, p_150573_7_);
}
/**
* Provides the basic grass color based on the biome temperature and rainfall
*/
@SideOnly(Side.CLIENT)
public int getBiomeGrassColor(int p_150558_1_, int p_150558_2_, int p_150558_3_) {
double d0 = plantNoise.func_151601_a((double) p_150558_1_ * 0.0225D, (double) p_150558_3_ * 0.0225D);
return d0 < -0.1D ? 5011004 : 6975545;
}
/**
* Provides the basic foliage color based on the biome temperature and rainfall
*/
@SideOnly(Side.CLIENT)
public int getBiomeFoliageColor(int p_150571_1_, int p_150571_2_, int p_150571_3_) {
return 6975545;
}
}
Heres my plains and forest biomes. Both of which spawn normally, except for the extra little stuff like strawberries, mint, and flowers, im still trying to figure out a way for those to work. But otherwise both should be fine examples of biomes that work the way they're supposed to.
Chocolate plains
package com.chocolatemod.worldgen;
import com.chocolatemod.crops.crops;
import com.chocolatemod.mobs.*;
import com.chocolatemod.plants.BlockChocolateFlower;
import com.chocolatemod.plants.PlantRegistry;
import net.minecraft.block.BlockFlower;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeDecorator;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenFlowers;
import net.minecraft.world.gen.feature.WorldGenTallGrass;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.minecraftforge.common.BiomeDictionary;
import java.util.Random;
import static net.minecraftforge.common.BiomeDictionary.Type;
public class BiomeGenChocolatePlains extends BiomeGenChocolateBase {
private WorldGenerator theWorldGenerator;
private BiomeDecoratorChocolate customBiomeDecorator;
@Override
public BiomeDecorator createBiomeDecorator(){
return getModdedBiomeDecorator(new BiomeDecoratorChocolate(this));
}
protected BiomeGenChocolatePlains(int par1) {
super(par1);
this.theBiomeDecorator = new BiomeDecoratorChocolate(this);
this.customBiomeDecorator = (BiomeDecoratorChocolate)theBiomeDecorator;
this.spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear();
this.spawnableCreatureList.add(new SpawnListEntry(Entitycocoacow.class, 6, 4, 6));
this.spawnableCreatureList.add(new SpawnListEntry(Entitydarkcocoacow.class, 6, 4, 6));
this.spawnableCreatureList.add(new SpawnListEntry(Entitylightcocoacow.class, 6, 4, 6));
this.spawnableCreatureList.add(new SpawnListEntry(Entitywhitecocoacow.class, 6, 4, 6));
this.spawnableCreatureList.add(new SpawnListEntry(Entitychocolatechicken.class, 6, 5, 7));
this.theChocolateBiomeDecorator.treesPerChunk = -999;
this.theChocolateBiomeDecorator.grassPerChunk = 10;
this.theWorldGenerator = new WorldGenFlowers(crops.Mint);
new WorldGenFlowers(crops.Mint);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower1, 0);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 0);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 1);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 2);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 3);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 4);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 5);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 6);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 7);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 8);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 9);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 10);
new WorldGenChocolateFlowers(PlantRegistry.chocolateflower2, 11);
}
}
Chocolate Forest
package com.chocolatemod.worldgen;
import com.chocolatemod.block.BlockRegistry;
import com.chocolatemod.mobs.Entitychocolatechicken;
import net.minecraft.world.biome.BiomeDecorator;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenAbstractTree;
import net.minecraft.world.gen.feature.WorldGenerator;
import java.util.Random;
public class BiomeGenChocolateForest extends BiomeGenChocolateBase {
private int field_150632_aF;
private static final String __OBFID = "CL_00000170";
private WorldGenerator WorldGenChocolateTree;
private WorldGenerator WorldGenLightChocolateTree;
private WorldGenerator WorldGenDarkChocolateTree;
private WorldGenerator WorldGenWhiteChocolateTree;
private BiomeDecoratorChocolate customBiomeDecorator;
private WorldGenerator theWorldGenerator;
@Override
public BiomeDecorator createBiomeDecorator(){
return getModdedBiomeDecorator(new BiomeDecoratorChocolate(this));
}
public BiomeGenChocolateForest(int p_i45377_1_, int p_i45377_2_) {
super(p_i45377_1_);
this.theBiomeDecorator = new BiomeDecoratorChocolate(this);
this.customBiomeDecorator = (BiomeDecoratorChocolate)theBiomeDecorator;
this.field_150632_aF = p_i45377_2_;
this.theChocolateBiomeDecorator.treesPerChunk = 10;
this.theChocolateBiomeDecorator.grassPerChunk = 2;
this.topBlock = BlockRegistry.chocoGrass;
this.fillerBlock = BlockRegistry.chocoDirt;
this.WorldGenChocolateTree = new WorldGenChocolateTree(true, false);
this.WorldGenLightChocolateTree = new WorldGenLightChocolateTree(true, false);
this.WorldGenDarkChocolateTree = new WorldGenDarkChocolateTree(true);
this.WorldGenWhiteChocolateTree = new WorldGenWhiteChocolateTree(true);
this.spawnableCreatureList.clear();
this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(Entitychocolatechicken.class, 6, 5, 7));
this.customBiomeDecorator.strawberryPerChunk = 1;
this.theWorldGenerator = this.customBiomeDecorator.strawberryGen;
}
/**
* Gets a WorldGen appropriate for this biome.
*/
@Override
public WorldGenAbstractTree func_150567_a(Random par1Random) {
return (WorldGenAbstractTree) (par1Random.nextInt(5) == 0 ? this.WorldGenWhiteChocolateTree : par1Random.nextInt(5) == 0 ? this.WorldGenLightChocolateTree : (par1Random.nextInt(10) == 0 ? this.WorldGenDarkChocolateTree : this.WorldGenChocolateTree));
}
}
To check the value of the blocks, just write System.out.println("grass = " + BlockRegistry.chocoGrass + ", dirt = " + BlockRegistry.chocoDirt); in the broken biome's ctor and post the results.
And if your blocks are initialised outside of a function, afaik it's pretty difficult to know when they will be initialised in what order alongside the biomes' initialisation since they are also outside of an explicit call, especially since they're initialised in separate classes? This is probs untrue, but it helps explain why some biomes work and others don't, idk. My knowledge's pretty limited with how java works with globals, I never use them.
What about the other biomes? What grass and dirt do they have? Do the others have the same grass and dirt as each other? The two biomes you posted have different varieties of chocolate grass and chocolate dirt to each other, which is unusual.
Also post the contents for BlockRegistry.java. It may be useful.
Well the entire dimension and every biome in it should be using the exact same dirt and grass. And my dirt does spawn in these two biomes, but not as the filler block, just like little patches of random dirt, similar to finding dirt deep underground in the surface world. But anyways here's my block registry.
Block Registry
package com.chocolatemod.block;
import com.chocolatemod.main.MainRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFence;
import net.minecraft.block.BlockRedstoneOre;
import net.minecraft.block.BlockSlab;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class BlockRegistry {
public static void mainRegistry() {
initialiseBlock();
registerBlock();
}
//Blocks
public static Block chocolateblock;
public static Block fruitychocolateblock;
public static Block mintychocolateblock;
public static Block cookiesandcreamblock;
public static Block ChocolateMould;
public static Block ChocolateBallMould;
public static Block chocolatebrick;
public static Block chocolatepiller;
public static Block chocolatechiseled;
public static Block chocolatebrickstairs;
public static Block darkchocolatebrickstairs;
public static Block lightchocolatebrickstairs;
public static Block whitechocolatebrickstairs;
public static Block chocolatefence;
public static Block darkchocolatefence;
public static Block lightchocolatefence;
public static Block whitechocolatefence;
public static Block chocolatebrickfence;
public static Block darkchocolatebrickfence;
public static Block lightchocolatebrickfence;
public static Block whitechocolatebrickfence;
public static Block chocolatestairs;
public static Block darkchocolatestairs;
public static Block lightchocolatestairs;
public static Block whitechocolatestairs;
public static Block BlockChocolatePortal;
public static Block smallchocolatebrickstairs;
public static Block smalldarkchocolatebrickstairs;
public static Block smalllightchocolatebrickstairs;
public static Block smallwhitechocolatebrickstairs;
public static Block chocolatepane;
public static Block darkchocolatepane;
public static Block lightchocolatepane;
public static Block whitechocolatepane;
public static Block chocolateOres;
public static Block goldchocolateblock;
public static Block CocoaPlanks;
public static Block CocoaStairs;
public static Block chocoGrass;
public static Block chocoStone;
public static Block chocoCobbleStone;
public static Block chocoDiamond;
public static Block chocoGold;
public static Block chocoIron;
public static Block chocoCoal;
public static Block chocoRedstone;
public static Block litChocoRedstone;
public static Block chocoLapis;
public static Block chocoCobbleStoneStairs;
public static Block darkchocoCobbleStoneStairs;
public static Block lightchocoCobbleStoneStairs;
public static Block whitechocoCobbleStoneStairs;
public static Block cocoaDoor;
public static Block ChocolateDoor;
public static Block DarkChocolateDoor;
public static Block LightChocolateDoor;
public static Block WhiteChocolateDoor;
public static Block chocoDirt;
public static Block chocoSand;
public static Block chocoCobbleStoneWall;
public static Block chocolateBrickWall;
public static Block chocolateSmallBrickWall;
public static Block chocoGlass;
public static Block chocoGlassPane;
public static Block darkChocoGlassPane;
public static Block lightChocoGlassPane;
public static Block whiteChocoGlassPane;
public static Block chocoSandstone;
public static Block whiteChocoSandstonestairs;
public static Block whiteChocoSmoothSandstoneStairs;
public static Block ChocoSandstonestairs;
public static Block ChocoSmoothSandstoneStairs;
public static Block darkChocoSandstonestairs;
public static Block darkChocoSmoothSandstoneStairs;
public static Block lightChocoSandstonestairs;
public static Block lightChocoSmoothSandstoneStairs;
public static Block caramelBlock;
//Slabs
public static BlockSlab chocolatebricksingle;
public static BlockSlab chocolatebrickdouble;
public static BlockSlab darkchocolatebricksingle;
public static BlockSlab darkchocolatebrickdouble;
public static BlockSlab lightchocolatebricksingle;
public static BlockSlab lightchocolatebrickdouble;
public static BlockSlab whitechocolatebricksingle;
public static BlockSlab whitechocolatebrickdouble;
public static BlockSlab smallchocolatebricksingle;
public static BlockSlab smallchocolatebrickdouble;
public static BlockSlab smalldarkchocolatebricksingle;
public static BlockSlab smalldarkchocolatebrickdouble;
public static BlockSlab smalllightchocolatebricksingle;
public static BlockSlab smalllightchocolatebrickdouble;
public static BlockSlab smallwhitechocolatebricksingle;
public static BlockSlab smallwhitechocolatebrickdouble;
public static BlockSlab chocolatesingle;
public static BlockSlab chocolatedouble;
public static BlockSlab darkchocolatesingle;
public static BlockSlab darkchocolatedouble;
public static BlockSlab lightchocolatesingle;
public static BlockSlab lightchocolatedouble;
public static BlockSlab whitechocolatesingle;
public static BlockSlab whitechocolatedouble;
public static BlockSlab CocoaSlabsingle;
public static BlockSlab CocoaSlabdouble;
public static BlockSlab chocoCobbleStoneSlabsingle;
public static BlockSlab chocoCobbleStoneSlabdouble;
public static BlockSlab darkchocoCobbleStoneSlabsingle;
public static BlockSlab darkchocoCobbleStoneSlabdouble;
public static BlockSlab lightchocoCobbleStoneSlabsingle;
public static BlockSlab lightchocoCobbleStoneSlabdouble;
public static BlockSlab whitechocoCobbleStoneSlabsingle;
public static BlockSlab whitechocoCobbleStoneSlabdouble;
public static BlockSlab whitechocoSandStoneSlabsingle;
public static BlockSlab whitechocoSandStoneSlabdouble;
public static BlockSlab whitechocoSmoothSandStoneSlabsingle;
public static BlockSlab whitechocoSmoothSandStoneSlabdouble;
public static BlockSlab chocoSandStoneSlabsingle;
public static BlockSlab chocoSandStoneSlabdouble;
public static BlockSlab chocoSmoothSandStoneSlabsingle;
public static BlockSlab chocoSmoothSandStoneSlabdouble;
public static BlockSlab darkchocoSandStoneSlabsingle;
public static BlockSlab darkchocoSandStoneSlabdouble;
public static BlockSlab darkchocoSmoothSandStoneSlabsingle;
public static BlockSlab darkchocoSmoothSandStoneSlabdouble;
public static BlockSlab lightchocoSandStoneSlabsingle;
public static BlockSlab lightchocoSandStoneSlabdouble;
public static BlockSlab lightchocoSmoothSandStoneSlabsingle;
public static BlockSlab lightchocoSmoothSandStoneSlabdouble;
//Cake
public static Block ChocolateCake;
public static Block DarkChocolateCake;
public static Block LightChocolateCake;
public static Block WhiteChocolateCake;
public static void initialiseBlock() {
//Cake
ChocolateCake = (new BlockChocolateCake()).setBlockName("chocolatecake").setStepSound(Block.soundTypeCloth);
DarkChocolateCake = (new BlockDarkChocolateCake()).setBlockName("darkchocolatecake").setStepSound(Block.soundTypeCloth);
LightChocolateCake = (new BlockLightChocolateCake()).setBlockName("lightchocolatecake").setStepSound(Block.soundTypeCloth);
WhiteChocolateCake = (new BlockWhiteChocolateCake()).setBlockName("whitechocolatecake").setStepSound(Block.soundTypeCloth);
//Blocks
chocolateblock = new BlockChocolateBlock().setBlockName("chocolateblock").setHardness(3).setResistance(10).setBlockTextureName("killerjdog51:chocolateblock").setCreativeTab(MainRegistry.tabChocolateBlocks);
fruitychocolateblock = new BlockFruityChocolateBlock().setBlockName("fruitychocolateblock").setHardness(3).setResistance(10).setBlockTextureName("killerjdog51:fruitychocolateblock").setCreativeTab(MainRegistry.tabChocolateBlocks);
mintychocolateblock = new BlockMintyChocolateBlock().setBlockName("mintychocolateblock").setHardness(3).setResistance(10).setBlockTextureName("killerjdog51:mintychocolateblock").setCreativeTab(MainRegistry.tabChocolateBlocks);
cookiesandcreamblock = new chocolateBlocks().setHardness(3).setResistance(10).setBlockName("cookiesandcreamblock").setBlockTextureName("killerjdog51:cookiesandcreamblock");
goldchocolateblock = new chocolateBlocks().setHardness(3).setResistance(10).setBlockName("goldchocolateblock").setBlockTextureName("killerjdog51:goldchocolateblock");
ChocolateMould = (new BlockBarMould()).setHardness(2.0F).setBlockName("barmould").setCreativeTab(CreativeTabs.tabBlock);
ChocolateBallMould = (new BlockBallMould()).setHardness(2.0F).setBlockName("ballmould").setCreativeTab(CreativeTabs.tabBlock);
chocolatebrick = (new BlockChocolateBrick()).setHardness(1.5F).setResistance(10.0F).setStepSound(Block.soundTypeStone).setBlockName("ChocolateBrick").setBlockTextureName("killerjdog51:chocolatebrick").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocolatepiller = new BlockChocolatePiller().setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("chocolatepillerblock").setBlockTextureName("killerjdog51:chocolateblock").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocolatechiseled = new BlockChocolateChiseled().setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("chocolatechiseledblock").setBlockTextureName("killerjdog51:chocolateblock").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocolatebrickstairs = new chocolatebrickstairs(chocolatebrickstairs, 0).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("chocolatebrickstairs").setBlockTextureName("killerjdog51:chocolateblock");
darkchocolatebrickstairs = new darkchocolatebrickstairs(darkchocolatebrickstairs, 1).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("darkchocolatebrickstairs");
lightchocolatebrickstairs = new lightChocolateBrickStairs(lightchocolatebrickstairs, 2).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("lightchocolatebrickstairs");
whitechocolatebrickstairs = new whiteChocolateBrickStairs(whitechocolatebrickstairs, 3).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("whitechocolatebrickstairs");
smallchocolatebrickstairs = new smallChocolateBrickStairs(smallchocolatebrickstairs, 0).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("smallchocolatebrickstairs").setBlockTextureName("killerjdog51:chocolateblock");
smalldarkchocolatebrickstairs = new smallDarkChocolateBrickStairs(smalldarkchocolatebrickstairs, 1).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("smalldarkchocolatebrickstairs");
smalllightchocolatebrickstairs = new smallLightChocolateBrickStairs(smalllightchocolatebrickstairs, 2).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("smalllightchocolatebrickstairs");
smallwhitechocolatebrickstairs = new smallWhiteChocolateBrickStairs(smallwhitechocolatebrickstairs, 3).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("smallwhitechocolatebrickstairs");
chocolatestairs = new chocolatestairs(chocolatestairs, 4).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Chocolate Stairs");
darkchocolatestairs = new darkChocolateStairs(darkchocolatestairs, 5).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Dark Chocolate Stairs");
lightchocolatestairs = new lightChocolateStairs(lightchocolatestairs, 6).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Light Chocolate Stairs");
whitechocolatestairs = new whiteChocolateStairs(whitechocolatestairs, 7).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("White Chocolate Stairs");
chocolatebrickfence = new BlockFence("killerjdog51:chocolatebrick", Material.rock).setStepSound(Block.soundTypeStone).setBlockName("chocolatebrickfence").setCreativeTab(MainRegistry.tabChocolateBlocks);
darkchocolatebrickfence = new BlockFence("killerjdog51:chocolatebrick_dark", Material.rock).setStepSound(Block.soundTypeStone).setBlockName("darkchocolatebrickfence").setCreativeTab(MainRegistry.tabChocolateBlocks);
lightchocolatebrickfence = new BlockFence("killerjdog51:chocolatebrick_light", Material.rock).setStepSound(Block.soundTypeStone).setBlockName("lightchocolatebrickfence").setCreativeTab(MainRegistry.tabChocolateBlocks);
whitechocolatebrickfence = new BlockFence("killerjdog51:chocolatebrick_white", Material.rock).setStepSound(Block.soundTypeStone).setBlockName("whitechocolatebrickfence").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocolatefence = new BlockFence("killerjdog51:chocolateblock_hard", Material.rock).setStepSound(Block.soundTypeStone).setBlockName("hardchocolateblockfence").setCreativeTab(MainRegistry.tabChocolateBlocks);
darkchocolatefence = new BlockFence("killerjdog51:chocolateblock_dark_hard", Material.rock).setStepSound(Block.soundTypeStone).setBlockName("harddarkblockofchocolatefence").setCreativeTab(MainRegistry.tabChocolateBlocks);
lightchocolatefence = new BlockFence("killerjdog51:chocolateblock_light_hard", Material.rock).setStepSound(Block.soundTypeStone).setBlockName("hardlightblockofchocolatefence").setCreativeTab(MainRegistry.tabChocolateBlocks);
whitechocolatefence = new BlockFence("killerjdog51:chocolateblock_white_hard", Material.rock).setStepSound(Block.soundTypeStone).setBlockName("hardwhiteblockofchocolatefence").setCreativeTab(MainRegistry.tabChocolateBlocks);
CocoaPlanks = new BlockCocoaPlanks().setBlockName("Planks").setBlockTextureName("killerjdog51:planks").setStepSound(Block.soundTypeWood).setCreativeTab(MainRegistry.tabChocolateBlocks);
CocoaStairs = new CocoaStairs(CocoaPlanks, 0).setHardness(2.0F).setStepSound(Block.soundTypeWood).setBlockName("Cocoa_Stairs").setBlockTextureName("killerjdog51:planks_cocoa").setCreativeTab(MainRegistry.tabChocolateBlocks);
cocoaDoor = new BlockCocoaDoor(Material.wood).setHardness(3.0F).setStepSound(Block.soundTypeWood).setBlockName("doorCocoaWood").setBlockTextureName("killerjdog51:door_cocoa");
ChocolateDoor = new BlockCocoaDoor(Material.wood).setHardness(3.0F).setStepSound(Block.soundTypeWood).setBlockName("doorChocolate").setBlockTextureName("killerjdog51:door_chocolate");
DarkChocolateDoor = new BlockCocoaDoor(Material.wood).setHardness(3.0F).setStepSound(Block.soundTypeWood).setBlockName("doorDarkChocolate").setBlockTextureName("killerjdog51:door_dark");
LightChocolateDoor = new BlockCocoaDoor(Material.wood).setHardness(3.0F).setStepSound(Block.soundTypeWood).setBlockName("doorLightChocolate").setBlockTextureName("killerjdog51:door_light");
WhiteChocolateDoor = new BlockCocoaDoor(Material.wood).setHardness(3.0F).setStepSound(Block.soundTypeWood).setBlockName("doorWhiteChocolate").setBlockTextureName("killerjdog51:door_white");
BlockChocolatePortal = (BlockChocolatePortal) new BlockChocolatePortal().setLightLevel(0.75F).setBlockName("ChocolatePortal").setBlockTextureName("killerjdog51:ChocolatePortal");
chocolatepane = (new BlockChocolatePane("killerjdog51:chocolateblock", "killerjdog51:chocolateblock_top", Material.rock, false)).setHardness(0.3F).setStepSound(Block.soundTypeStone).setBlockName("chocolatepanes").setBlockTextureName("killerjdog51:chocolateblock");
darkchocolatepane = (new BlockDarkChocolatePane("killerjdog51:chocolateblock_dark", "killerjdog51:chocolateblock_dark_top", Material.rock, false)).setHardness(0.3F).setStepSound(Block.soundTypeStone).setBlockName("darkchocolatepanes").setBlockTextureName("killerjdog51:chocolateblock_dark");
lightchocolatepane = (new BlockLightChocolatePane("killerjdog51:chocolateblock_light", "killerjdog51:chocolateblock_light_top", Material.rock, false)).setHardness(0.3F).setStepSound(Block.soundTypeStone).setBlockName("lightchocolatepanes").setBlockTextureName("killerjdog51:chocolateblock_light");
whitechocolatepane = (new BlockWhiteChocolatePane("killerjdog51:chocolateblock_white", "killerjdog51:chocolateblock_white_top", Material.rock, false)).setHardness(0.3F).setStepSound(Block.soundTypeStone).setBlockName("whitechocolatepanes").setBlockTextureName("killerjdog51:chocolateblock_white");
chocoGlassPane = (new BlockChocolateGlassPane("killerjdog51:chocolateglass", "killerjdog51:chocolateglass_top", Material.glass, false)).setHardness(0.3F).setStepSound(Block.soundTypeGlass).setBlockName("chocolateglasspanes").setBlockTextureName("killerjdog51:chocolateglass");
darkChocoGlassPane = (new BlockDarkChocolateGlassPane("killerjdog51:chocolateglass_dark", "killerjdog51:chocolateglass_dark_top", Material.glass, false)).setHardness(0.3F).setStepSound(Block.soundTypeGlass).setBlockName("darkchocolateglasspanes").setBlockTextureName("killerjdog51:chocolateglass_dark");
lightChocoGlassPane = (new BlockLightChocolateGlassPane("killerjdog51:chocolateglass_light", "killerjdog51:chocolateglass_light_top", Material.glass, false)).setHardness(0.3F).setStepSound(Block.soundTypeGlass).setBlockName("lightchocolateglasspanes").setBlockTextureName("killerjdog51:chocolateglass_light");
whiteChocoGlassPane = (new BlockWhiteChocolateGlassPane("killerjdog51:chocolateglass_white", "killerjdog51:chocolateglass_white_top", Material.glass, false)).setHardness(0.3F).setStepSound(Block.soundTypeGlass).setBlockName("whitechocolateglasspanes").setBlockTextureName("killerjdog51:chocolateglass_white");
chocolateOres = new BlockChocolateOres().setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypeStone).setBlockName("oreChocolate").setBlockTextureName("killerjdog51:chocolateOre");
chocoGrass = new BlockChocoGrass().setHardness(0.6F).setStepSound(Block.soundTypeGrass).setBlockName("chocograss").setBlockTextureName("killerjdog51:chocograss");
chocoDirt = new BlockChocoDirt().setHardness(0.5F).setStepSound(Block.soundTypeGravel).setBlockName("chocodirt").setBlockTextureName("killerjdog51:chocolatedirt");
chocoSand = new BlockChocoSand().setHardness(0.5F).setStepSound(Block.soundTypeSand).setBlockName("chocosand").setCreativeTab(MainRegistry.tabChocolateBlocks).setBlockTextureName("killerjdog51:chocolatesand");
chocoStone = new BlockChocoStone().setCreativeTab(MainRegistry.tabChocolateBlocks).setHardness(1.5F).setResistance(10.0F).setStepSound(Block.soundTypePiston).setBlockName("chocostone").setBlockTextureName("killerjdog51:chocostone");
darkchocoCobbleStoneStairs = new darkchocoCobbleStoneStairs(darkchocoCobbleStoneStairs, 0).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Dark Chocolate Cobblestone Stairs");
chocoCobbleStoneStairs = new chocoCobbleStoneStairs(chocoCobbleStoneStairs, 1).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Chocolate Cobblestone Stairs");
lightchocoCobbleStoneStairs = new lightchocoCobbleStoneStairs(lightchocoCobbleStoneStairs, 2).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Light Chocolate Cobblestone Stairs");
whitechocoCobbleStoneStairs = new whitechocoCobbleStoneStairs(whitechocoCobbleStoneStairs, 3).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("White Chocolate Cobblestone Stairs");
chocoDiamond = new BlockChocoOre().setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston).setBlockName("oreChocoDiamond").setBlockTextureName("killerjdog51:chocodiamond").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocoGold = new BlockChocoOre().setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston).setBlockName("oreChocoGold").setBlockTextureName("killerjdog51:chocogold").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocoIron = new BlockChocoOre().setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston).setBlockName("oreChocoIron").setBlockTextureName("killerjdog51:chocoiron").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocoLapis = new BlockChocoOre().setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston).setBlockName("oreChocoLapis").setBlockTextureName("killerjdog51:chocolapis").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocoCoal = new BlockChocoOre().setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston).setBlockName("oreChocoCoal").setBlockTextureName("killerjdog51:chococoal").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocoRedstone = new BlockRedstoneOre(false).setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston).setBlockName("oreChocoRedstone").setCreativeTab(MainRegistry.tabChocolateBlocks).setBlockTextureName("killerjdog51:chocoredstone");
litChocoRedstone = new BlockRedstoneOre(true).setHardness(3.0F).setResistance(5.0F).setStepSound(Block.soundTypePiston).setBlockName("oreLitChocoRedstone").setBlockTextureName("killerjdog51:chocoredstone");
chocoCobbleStoneWall = new BlockChocolateWall(chocoStone).setBlockName("chocoCobbleWall").setCreativeTab(MainRegistry.tabChocolateBlocks).setBlockTextureName("killerjdog51:chocostone");
chocolateBrickWall = new BlockChocolateBrickWall(chocolatebrick).setBlockName("chocolateBrickWall").setCreativeTab(MainRegistry.tabChocolateBlocks).setBlockTextureName("killerjdog51:chocolatebrick");
chocolateSmallBrickWall = new BlockSmallChocolateBrickWall(chocolatebrick).setBlockName("chocolateSmallBrickWall").setCreativeTab(MainRegistry.tabChocolateBlocks).setBlockTextureName("killerjdog51:chocolatebrick");
chocoGlass = new BlockChocolateGlass().setStepSound(Block.soundTypeGlass).setBlockName("chocolateglass").setHardness(3).setResistance(10).setBlockTextureName("killerjdog51:chocolateglass").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocoSandstone = new BlockChocolateSandStone().setStepSound(Block.soundTypePiston).setHardness(0.8F).setBlockName("chocolatesandStone").setBlockTextureName("killerjdog51:chocolatesandstone");
whiteChocoSandstonestairs = new whitechocoSandStoneStairs(whiteChocoSandstonestairs, 3).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("White Chocolate Sandstone Stairs");
whiteChocoSmoothSandstoneStairs = new whitechocoSmoothSandStoneStairs(whiteChocoSmoothSandstoneStairs, 3).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("White Chocolate Smooth Sandstone Stairs");
ChocoSandstonestairs = new chocoSandStoneStairs(ChocoSandstonestairs, 0).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Chocolate Sandstone Stairs");
ChocoSmoothSandstoneStairs = new chocoSmoothSandStoneStairs(ChocoSmoothSandstoneStairs, 0).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Chocolate Smooth Sandstone Stairs");
darkChocoSandstonestairs = new darkchocoSandStoneStairs(darkChocoSandstonestairs, 1).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Dark Chocolate Sandstone Stairs");
darkChocoSmoothSandstoneStairs = new darkchocoSmoothSandStoneStairs(darkChocoSmoothSandstoneStairs, 1).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Dark Chocolate Smooth Sandstone Stairs");
lightChocoSandstonestairs = new lightchocoSandStoneStairs(lightChocoSandstonestairs, 2).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Light Chocolate Sandstone Stairs");
lightChocoSmoothSandstoneStairs = new lightchocoSmoothSandStoneStairs(lightChocoSmoothSandstoneStairs, 2).setHardness(2.0F).setStepSound(Block.soundTypeStone).setBlockName("Light Chocolate Smooth Sandstone Stairs");
caramelBlock = new BlockCaramel().setBlockName("caramelblock").setHardness(3).setResistance(10).setBlockTextureName("killerjdog51:caramelblock").setCreativeTab(MainRegistry.tabChocolateBlocks);
//Slabs
chocolatebrickdouble = (BlockSlab) (new BlockChocolateBrickSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocolatebrickSlabDouble").setBlockTextureName("killerjdog51:chocolatebrick");
chocolatebricksingle = (BlockSlab) (new BlockChocolateBrickSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocolatebrickSlab").setBlockTextureName("killerjdog51:chocolatebrick").setCreativeTab(MainRegistry.tabChocolateBlocks);
darkchocolatebrickdouble = (BlockSlab) (new BlockDarkChocolateBrickSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocolatebrickSlabDouble").setBlockTextureName("killerjdog51:chocolatebrick_dark");
darkchocolatebricksingle = (BlockSlab) (new BlockDarkChocolateBrickSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocolatebrickSlab").setBlockTextureName("killerjdog51:chocolatebrick_dark").setCreativeTab(MainRegistry.tabChocolateBlocks);
lightchocolatebrickdouble = (BlockSlab) (new BlockLightChocolateBrickSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocolatebrickSlabDouble").setBlockTextureName("killerjdog51:chocolatebrick_light");
lightchocolatebricksingle = (BlockSlab) (new BlockLightChocolateBrickSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocolatebrickSlab").setBlockTextureName("killerjdog51:chocolatebrick_light").setCreativeTab(MainRegistry.tabChocolateBlocks);
whitechocolatebrickdouble = (BlockSlab) (new BlockWhiteChocolateBrickSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocolatebrickSlabDouble").setBlockTextureName("killerjdog51:chocolatebrick_white");
whitechocolatebricksingle = (BlockSlab) (new BlockWhiteChocolateBrickSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocolatebrickSlab").setBlockTextureName("killerjdog51:chocolatebrick_white").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocolatedouble = (BlockSlab) (new BlockChocolateSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocolateslab_side");
chocolatesingle = (BlockSlab) (new BlockChocolateSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocolateslab_top").setCreativeTab(MainRegistry.tabChocolateBlocks);
darkchocolatedouble = (BlockSlab) (new BlockDarkChocolateSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocolateslab_side");
darkchocolatesingle = (BlockSlab) (new BlockDarkChocolateSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocolateslab_top").setCreativeTab(MainRegistry.tabChocolateBlocks);
lightchocolatedouble = (BlockSlab) (new BlockLightChocolateSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocolateslab_side");
lightchocolatesingle = (BlockSlab) (new BlockLightChocolateSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocolateslab_top").setCreativeTab(MainRegistry.tabChocolateBlocks);
whitechocolatedouble = (BlockSlab) (new BlockWhiteChocolateSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocolateslab_side");
whitechocolatesingle = (BlockSlab) (new BlockWhiteChocolateSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocolateslab_top").setCreativeTab(MainRegistry.tabChocolateBlocks);
smallchocolatebrickdouble = (BlockSlab) (new BlockChocolateSmallBrickSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("smallchocolatebrickSlabDouble").setBlockTextureName("killerjdog51:chocolatebrick_small");
smallchocolatebricksingle = (BlockSlab) (new BlockChocolateSmallBrickSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("smallchocolatebrickSlab").setBlockTextureName("killerjdog51:chocolatebrick_small").setCreativeTab(MainRegistry.tabChocolateBlocks);
smalldarkchocolatebrickdouble = (BlockSlab) (new BlockDarkChocolateSmallBrickSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("smalldarkchocolatebrickSlabDouble").setBlockTextureName("killerjdog51:chocolatebrick_dark_small");
smalldarkchocolatebricksingle = (BlockSlab) (new BlockDarkChocolateSmallBrickSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("smalldarkchocolatebrickSlab").setBlockTextureName("killerjdog51:chocolatebrick_dark_small").setCreativeTab(MainRegistry.tabChocolateBlocks);
smalllightchocolatebrickdouble = (BlockSlab) (new BlockLightChocolateSmallBrickSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("smalllightchocolatebrickSlabDouble").setBlockTextureName("killerjdog51:chocolatebrick_light_small");
smalllightchocolatebricksingle = (BlockSlab) (new BlockLightChocolateSmallBrickSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("smalllightchocolatebrickSlab").setBlockTextureName("killerjdog51:chocolatebrick_light_small").setCreativeTab(MainRegistry.tabChocolateBlocks);
smallwhitechocolatebrickdouble = (BlockSlab) (new BlockWhiteChocolateSmallBrickSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("smallwhitechocolatebrickSlabDouble").setBlockTextureName("killerjdog51:chocolatebrick_white_small");
smallwhitechocolatebricksingle = (BlockSlab) (new BlockWhiteChocolateSmallBrickSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("smallwhitechocolatebrickSlab").setBlockTextureName("killerjdog51:chocolatebrick_white_small").setCreativeTab(MainRegistry.tabChocolateBlocks);
CocoaSlabdouble = (BlockSlab) (new BlockCocoaSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeWood).setBlockName("CocoaSlabdouble").setBlockTextureName("killerjdog51:planks_cocoa");
CocoaSlabsingle = (BlockSlab) (new BlockCocoaSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeWood).setBlockName("CocoaSlabsingle").setBlockTextureName("killerjdog51:planks_cocoa").setCreativeTab(MainRegistry.tabChocolateBlocks);
darkchocoCobbleStoneSlabdouble = (BlockSlab) (new BlockdarkchocoCobbleStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocoCobbleStoneSlabdouble").setBlockTextureName("killerjdog51:chocostone_dark_cobble");
darkchocoCobbleStoneSlabsingle = (BlockSlab) (new BlockdarkchocoCobbleStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocoCobbleStoneSlabsingle").setBlockTextureName("killerjdog51:chocostone_dark_cobble").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocoCobbleStoneSlabdouble = (BlockSlab) (new BlockchocoCobbleStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocoCobbleStoneSlabdouble").setBlockTextureName("killerjdog51:chocostone_cobble");
chocoCobbleStoneSlabsingle = (BlockSlab) (new BlockchocoCobbleStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocoCobbleStoneSlabsingle").setBlockTextureName("killerjdog51:chocostone_cobble").setCreativeTab(MainRegistry.tabChocolateBlocks);
lightchocoCobbleStoneSlabdouble = (BlockSlab) (new BlocklightchocoCobbleStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocoCobbleStoneSlabdouble").setBlockTextureName("killerjdog51:chocostone_light_cobble");
lightchocoCobbleStoneSlabsingle = (BlockSlab) (new BlocklightchocoCobbleStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocoCobbleStoneSlabsingle").setBlockTextureName("killerjdog51:chocostone_light_cobble").setCreativeTab(MainRegistry.tabChocolateBlocks);
whitechocoCobbleStoneSlabdouble = (BlockSlab) (new BlockwhitechocoCobbleStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocoCobbleStoneSlabdouble").setBlockTextureName("killerjdog51:chocostone_white_cobble");
whitechocoCobbleStoneSlabsingle = (BlockSlab) (new BlockwhitechocoCobbleStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocoCobbleStoneSlabsingle").setBlockTextureName("killerjdog51:chocostone_white_cobble").setCreativeTab(MainRegistry.tabChocolateBlocks);
whitechocoSandStoneSlabdouble = (BlockSlab) (new BlockwhitechocoSandStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocoSandStoneSlabdouble").setBlockTextureName("killerjdog51:chocolatesandstone_white_normal");
whitechocoSandStoneSlabsingle = (BlockSlab) (new BlockwhitechocoSandStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocoSandStoneSlabsingle").setBlockTextureName("killerjdog51:chocolatesandstone_white_normal").setCreativeTab(MainRegistry.tabChocolateBlocks);
whitechocoSmoothSandStoneSlabdouble = (BlockSlab) (new BlockwhitechocoSmoothSandStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocoSmoothSandStoneSlabdouble").setBlockTextureName("killerjdog51:chocolatesandstone_white_smooth");
whitechocoSmoothSandStoneSlabsingle = (BlockSlab) (new BlockwhitechocoSmoothSandStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("whitechocoSmoothSandStoneSlabsingle").setBlockTextureName("killerjdog51:chocolatesandstone_white_smooth").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocoSandStoneSlabdouble = (BlockSlab) (new BlockchocoSandStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocoSandStoneSlabdouble").setBlockTextureName("killerjdog51:chocolatesandstone_default_normal");
chocoSandStoneSlabsingle = (BlockSlab) (new BlockchocoSandStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocoSandStoneSlabsingle").setBlockTextureName("killerjdog51:chocolatesandstone_default_normal").setCreativeTab(MainRegistry.tabChocolateBlocks);
chocoSmoothSandStoneSlabdouble = (BlockSlab) (new BlockchocoSmoothSandStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocoSmoothSandStoneSlabdouble").setBlockTextureName("killerjdog51:chocolatesandstone_default_smooth");
chocoSmoothSandStoneSlabsingle = (BlockSlab) (new BlockchocoSmoothSandStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("chocoSmoothSandStoneSlabsingle").setBlockTextureName("killerjdog51:chocolatesandstone_default_smooth").setCreativeTab(MainRegistry.tabChocolateBlocks);
darkchocoSandStoneSlabdouble = (BlockSlab) (new BlockdarkchocoSandStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocoSandStoneSlabdouble").setBlockTextureName("killerjdog51:chocolatesandstone_dark_normal");
darkchocoSandStoneSlabsingle = (BlockSlab) (new BlockdarkchocoSandStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocoSandStoneSlabsingle").setBlockTextureName("killerjdog51:chocolatesandstone_dark_normal").setCreativeTab(MainRegistry.tabChocolateBlocks);
darkchocoSmoothSandStoneSlabdouble = (BlockSlab) (new BlockdarkchocoSmoothSandStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocoSmoothSandStoneSlabdouble").setBlockTextureName("killerjdog51:chocolatesandstone_dark_smooth");
darkchocoSmoothSandStoneSlabsingle = (BlockSlab) (new BlockdarkchocoSmoothSandStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("darkchocoSmoothSandStoneSlabsingle").setBlockTextureName("killerjdog51:chocolatesandstone_dark_smooth").setCreativeTab(MainRegistry.tabChocolateBlocks);
lightchocoSandStoneSlabdouble = (BlockSlab) (new BlocklightchocoSandStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocoSandStoneSlabdouble").setBlockTextureName("killerjdog51:chocolatesandstone_light_normal");
lightchocoSandStoneSlabsingle = (BlockSlab) (new BlocklightchocoSandStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocoSandStoneSlabsingle").setBlockTextureName("killerjdog51:chocolatesandstone_light_normal").setCreativeTab(MainRegistry.tabChocolateBlocks);
lightchocoSmoothSandStoneSlabdouble = (BlockSlab) (new BlocklightchocoSmoothSandStoneSlab(true)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocoSmoothSandStoneSlabdouble").setBlockTextureName("killerjdog51:chocolatesandstone_light_smooth");
lightchocoSmoothSandStoneSlabsingle = (BlockSlab) (new BlocklightchocoSmoothSandStoneSlab(false)).setHardness(1.6F).setResistance(7.5F).setStepSound(Block.soundTypeStone).setBlockName("lightchocoSmoothSandStoneSlabsingle").setBlockTextureName("killerjdog51:chocolatesandstone_light_smooth").setCreativeTab(MainRegistry.tabChocolateBlocks);
}
public static void registerBlock() {
GameRegistry.registerBlock(chocolateblock, ItemChocolateBlocks.class, chocolateblock.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(fruitychocolateblock, ItemFruityChocolateBlocks.class, fruitychocolateblock.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(mintychocolateblock, ItemMintyChocolateBlocks.class, mintychocolateblock.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(cookiesandcreamblock, cookiesandcreamblock.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(goldchocolateblock, goldchocolateblock.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(ChocolateMould, ChocolateMould.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(ChocolateBallMould, ChocolateBallMould.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatebrick, ItemBrickBlocks.class, chocolatebrick.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatepiller, ItemPillerBlocks.class, chocolatepiller.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatechiseled, ItemChiseledBlocks.class, chocolatechiseled.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatebrickstairs, chocolatebrickstairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocolatebrickstairs, darkchocolatebrickstairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocolatebrickstairs, lightchocolatebrickstairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocolatebrickstairs, whitechocolatebrickstairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smallchocolatebrickstairs, smallchocolatebrickstairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smalldarkchocolatebrickstairs, smalldarkchocolatebrickstairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smalllightchocolatebrickstairs, smalllightchocolatebrickstairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smallwhitechocolatebrickstairs, smallwhitechocolatebrickstairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatestairs, chocolatestairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocolatestairs, darkchocolatestairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocolatestairs, lightchocolatestairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatebrickfence, chocolatebrickfence.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocolatestairs, whitechocolatestairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocolatebrickfence, darkchocolatebrickfence.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocolatebrickfence, lightchocolatebrickfence.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocolatebrickfence, whitechocolatebrickfence.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatefence, chocolatefence.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocolatefence, darkchocolatefence.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocolatefence, lightchocolatefence.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocolatefence, whitechocolatefence.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(CocoaPlanks, ItemCocoaPlanks.class, CocoaPlanks.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(CocoaStairs, CocoaStairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(BlockChocolatePortal, BlockChocolatePortal.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatepane, chocolatepane.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocolatepane, darkchocolatepane.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocolatepane, lightchocolatepane.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocolatepane, whitechocolatepane.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolateOres, ItemChocolateOres.class, chocolateOres.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatebrickdouble, ItemChocolateBrickSlabs.class, chocolatebrickdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatebricksingle, ItemChocolateBrickSlabs.class, chocolatebricksingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocolatebrickdouble, ItemDarkChocolateBrickSlabs.class, darkchocolatebrickdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocolatebricksingle, ItemDarkChocolateBrickSlabs.class, darkchocolatebricksingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocolatebrickdouble, ItemLightChocolateBrickSlabs.class, lightchocolatebrickdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocolatebricksingle, ItemLightChocolateBrickSlabs.class, lightchocolatebricksingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocolatebrickdouble, ItemWhiteChocolateBrickSlabs.class, whitechocolatebrickdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocolatebricksingle, ItemWhiteChocolateBrickSlabs.class, whitechocolatebricksingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatedouble, ItemChocolateSlabs.class, chocolatedouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolatesingle, ItemChocolateSlabs.class, chocolatesingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocolatedouble, ItemDarkChocolateSlabs.class, darkchocolatedouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocolatesingle, ItemDarkChocolateSlabs.class, darkchocolatesingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocolatedouble, ItemLightChocolateSlabs.class, lightchocolatedouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocolatesingle, ItemLightChocolateSlabs.class, lightchocolatesingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocolatedouble, ItemWhiteChocolateSlabs.class, whitechocolatedouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocolatesingle, ItemWhiteChocolateSlabs.class, whitechocolatesingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smallchocolatebrickdouble, ItemSmallChocolateBrickSlabs.class, smallchocolatebrickdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smallchocolatebricksingle, ItemSmallChocolateBrickSlabs.class, smallchocolatebricksingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smalldarkchocolatebrickdouble, ItemSmallDarkChocolateBrickSlabs.class, smalldarkchocolatebrickdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smalldarkchocolatebricksingle, ItemSmallDarkChocolateBrickSlabs.class, smalldarkchocolatebricksingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smalllightchocolatebrickdouble, ItemSmallLightChocolateBrickSlabs.class, smalllightchocolatebrickdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smalllightchocolatebricksingle, ItemSmallLightChocolateBrickSlabs.class, smalllightchocolatebricksingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smallwhitechocolatebrickdouble, ItemSmallWhiteChocolateBrickSlabs.class, smallwhitechocolatebrickdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(smallwhitechocolatebricksingle, ItemSmallWhiteChocolateBrickSlabs.class, smallwhitechocolatebricksingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(ChocolateCake, ChocolateCake.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(DarkChocolateCake, DarkChocolateCake.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(LightChocolateCake, LightChocolateCake.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(WhiteChocolateCake, WhiteChocolateCake.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(CocoaSlabdouble, ItemCocoaSlabs.class, CocoaSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(CocoaSlabsingle, ItemCocoaSlabs.class, CocoaSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoGrass, chocoGrass.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoStone, ItemChocoStone.class, chocoStone.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoDiamond, chocoDiamond.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoGold, chocoGold.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoIron, chocoIron.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoLapis, chocoLapis.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoCoal, chocoCoal.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoRedstone, chocoRedstone.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(litChocoRedstone, litChocoRedstone.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocoCobbleStoneStairs, darkchocoCobbleStoneStairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoCobbleStoneStairs, chocoCobbleStoneStairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocoCobbleStoneStairs, lightchocoCobbleStoneStairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocoCobbleStoneStairs, whitechocoCobbleStoneStairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocoCobbleStoneSlabdouble, ItemdarkchocoCobbleStoneSlabs.class, darkchocoCobbleStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocoCobbleStoneSlabsingle, ItemdarkchocoCobbleStoneSlabs.class, darkchocoCobbleStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoCobbleStoneSlabdouble, ItemchocoCobbleStoneSlabs.class, chocoCobbleStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoCobbleStoneSlabsingle, ItemchocoCobbleStoneSlabs.class, chocoCobbleStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocoCobbleStoneSlabdouble, ItemlightchocoCobbleStoneSlabs.class, lightchocoCobbleStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocoCobbleStoneSlabsingle, ItemlightchocoCobbleStoneSlabs.class, lightchocoCobbleStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocoCobbleStoneSlabdouble, ItemwhitechocoCobbleStoneSlabs.class, whitechocoCobbleStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocoCobbleStoneSlabsingle, ItemwhitechocoCobbleStoneSlabs.class, whitechocoCobbleStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(cocoaDoor, cocoaDoor.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoDirt, chocoDirt.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoSand, ItemChocolateGlass.class, chocoSand.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoCobbleStoneWall, ItemChocolateWall.class, chocoCobbleStoneWall.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolateBrickWall, ItemBrickWall.class, chocolateBrickWall.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocolateSmallBrickWall, ItemBrickWall.class, chocolateSmallBrickWall.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoGlass, ItemChocolateGlass.class, chocoGlass.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoGlassPane, chocoGlassPane.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkChocoGlassPane, darkChocoGlassPane.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightChocoGlassPane, lightChocoGlassPane.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whiteChocoGlassPane, whiteChocoGlassPane.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoSandstone, ItemChocoSandstone.class, chocoSandstone.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whiteChocoSandstonestairs, whiteChocoSandstonestairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whiteChocoSmoothSandstoneStairs, whiteChocoSmoothSandstoneStairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocoSandStoneSlabdouble, ItemwhitechocoSandStoneSlabs.class, whitechocoSandStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocoSandStoneSlabsingle, ItemwhitechocoSandStoneSlabs.class, whitechocoSandStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocoSmoothSandStoneSlabdouble, ItemwhitechocoSmoothSandStoneSlabs.class, whitechocoSmoothSandStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(whitechocoSmoothSandStoneSlabsingle, ItemwhitechocoSmoothSandStoneSlabs.class, whitechocoSmoothSandStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(ChocoSandstonestairs, ChocoSandstonestairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(ChocoSmoothSandstoneStairs, ChocoSmoothSandstoneStairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoSandStoneSlabdouble, ItemchocoSandStoneSlabs.class, chocoSandStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoSandStoneSlabsingle, ItemchocoSandStoneSlabs.class, chocoSandStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoSmoothSandStoneSlabdouble, ItemchocoSmoothSandStoneSlabs.class, chocoSmoothSandStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(chocoSmoothSandStoneSlabsingle, ItemchocoSmoothSandStoneSlabs.class, chocoSmoothSandStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkChocoSandstonestairs, darkChocoSandstonestairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkChocoSmoothSandstoneStairs, darkChocoSmoothSandstoneStairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocoSandStoneSlabdouble, ItemdarkchocoSandStoneSlabs.class, darkchocoSandStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocoSandStoneSlabsingle, ItemdarkchocoSandStoneSlabs.class, darkchocoSandStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocoSmoothSandStoneSlabdouble, ItemdarkchocoSmoothSandStoneSlabs.class, darkchocoSmoothSandStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(darkchocoSmoothSandStoneSlabsingle, ItemdarkchocoSmoothSandStoneSlabs.class, darkchocoSmoothSandStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightChocoSandstonestairs, lightChocoSandstonestairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightChocoSmoothSandstoneStairs, lightChocoSmoothSandstoneStairs.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocoSandStoneSlabdouble, ItemlightchocoSandStoneSlabs.class, lightchocoSandStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocoSandStoneSlabsingle, ItemlightchocoSandStoneSlabs.class, lightchocoSandStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocoSmoothSandStoneSlabdouble, ItemlightchocoSmoothSandStoneSlabs.class, lightchocoSmoothSandStoneSlabdouble.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(lightchocoSmoothSandStoneSlabsingle, ItemlightchocoSmoothSandStoneSlabs.class, lightchocoSmoothSandStoneSlabsingle.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(caramelBlock, ItemCaramelBlocks.class, caramelBlock.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(ChocolateDoor, ChocolateDoor.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(DarkChocolateDoor, DarkChocolateDoor.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(LightChocolateDoor, LightChocolateDoor.getUnlocalizedName().substring(5));
GameRegistry.registerBlock(WhiteChocolateDoor, WhiteChocolateDoor.getUnlocalizedName().substring(5));
}
}
Grass Block
package com.chocolatemod.block;
import com.chocolatemod.main.MainRegistry;
import com.chocolatemod.plants.PlantRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.IGrowable;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.EnumPlantType;
import net.minecraftforge.common.IPlantable;
import net.minecraftforge.common.util.ForgeDirection;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.Random;
public class BlockChocoGrass extends Block implements IGrowable {
private static final Logger logger = LogManager.getLogger();
@SideOnly(Side.CLIENT)
private IIcon field_149991_b;
@SideOnly(Side.CLIENT)
private IIcon field_149993_M;
@SideOnly(Side.CLIENT)
private IIcon field_149994_N;
private static final String __OBFID = "CL_00000251";
protected BlockChocoGrass() {
super(Material.grass);
this.setTickRandomly(true);
this.setCreativeTab(MainRegistry.tabChocolateBlocks);
}
/**
* Gets the block's texture. Args: side, meta
*/
@SideOnly(Side.CLIENT)
public IIcon getIcon(int p_149691_1_, int p_149691_2_) {
return p_149691_1_ == 1 ? this.field_149991_b : (p_149691_1_ == 0 ? BlockRegistry.chocoDirt.getBlockTextureFromSide(p_149691_1_) : this.blockIcon);
}
/**
* Ticks the block if it's been scheduled
*/
public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_) {
if (!p_149674_1_.isRemote) {
if (p_149674_1_.getBlockLightValue(p_149674_2_, p_149674_3_ + 1, p_149674_4_) < 4 && p_149674_1_.getBlockLightOpacity(p_149674_2_, p_149674_3_ + 1, p_149674_4_) > 2) {
p_149674_1_.setBlock(p_149674_2_, p_149674_3_, p_149674_4_, BlockRegistry.chocoDirt);
} else if (p_149674_1_.getBlockLightValue(p_149674_2_, p_149674_3_ + 1, p_149674_4_) >= 9) {
for (int l = 0; l < 4; ++l) {
int i1 = p_149674_2_ + p_149674_5_.nextInt(3) - 1;
int j1 = p_149674_3_ + p_149674_5_.nextInt(5) - 3;
int k1 = p_149674_4_ + p_149674_5_.nextInt(3) - 1;
Block block = p_149674_1_.getBlock(i1, j1 + 1, k1);
if (p_149674_1_.getBlock(i1, j1, k1) == BlockRegistry.chocoDirt && p_149674_1_.getBlockMetadata(i1, j1, k1) == 0 && p_149674_1_.getBlockLightValue(i1, j1 + 1, k1) >= 4 && p_149674_1_.getBlockLightOpacity(i1, j1 + 1, k1) <= 2) {
p_149674_1_.setBlock(i1, j1, k1, this);
}
}
}
}
}
public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) {
return BlockRegistry.chocoDirt.getItemDropped(0, p_149650_2_, p_149650_3_);
}
public boolean func_149851_a(World p_149851_1_, int p_149851_2_, int p_149851_3_, int p_149851_4_, boolean p_149851_5_) {
return true;
}
public boolean func_149852_a(World p_149852_1_, Random p_149852_2_, int p_149852_3_, int p_149852_4_, int p_149852_5_) {
return true;
}
@SideOnly(Side.CLIENT)
public IIcon getIcon(IBlockAccess p_149673_1_, int p_149673_2_, int p_149673_3_, int p_149673_4_, int p_149673_5_) {
if (p_149673_5_ == 1) {
return this.field_149991_b;
} else if (p_149673_5_ == 0) {
return BlockRegistry.chocoDirt.getBlockTextureFromSide(p_149673_5_);
} else {
Material material = p_149673_1_.getBlock(p_149673_2_, p_149673_3_ + 1, p_149673_4_).getMaterial();
return material != Material.snow && material != Material.craftedSnow ? this.blockIcon : this.field_149993_M;
}
}
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister p_149651_1_) {
this.blockIcon = p_149651_1_.registerIcon(this.getTextureName() + "_side2");
this.field_149991_b = p_149651_1_.registerIcon(this.getTextureName() + "_top2");
}
/**
* Returns the color this block should be rendered. Used by leaves.
*/
/**
* Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called
* when first determining what to render.
*/
@SideOnly(Side.CLIENT)
public static Block getIconSideOverlay() {
return com.chocolatemod.block.BlockRegistry.chocoGrass;
}
public void func_149853_b(World p_149853_1_, Random p_149853_2_, int p_149853_3_, int p_149853_4_, int p_149853_5_) {
int l = 0;
while (l < 128) {
int i1 = p_149853_3_;
int j1 = p_149853_4_ + 1;
int k1 = p_149853_5_;
int l1 = 0;
while (true) {
if (l1 < l / 16) {
i1 += p_149853_2_.nextInt(3) - 1;
j1 += (p_149853_2_.nextInt(3) - 1) * p_149853_2_.nextInt(3) / 2;
k1 += p_149853_2_.nextInt(3) - 1;
if (p_149853_1_.getBlock(i1, j1 - 1, k1) == com.chocolatemod.block.BlockRegistry.chocoGrass && !p_149853_1_.getBlock(i1, j1, k1).isNormalCube()) {
++l1;
continue;
}
} else if (p_149853_1_.getBlock(i1, j1, k1).getMaterial() == Material.air) {
if (p_149853_2_.nextInt(8) != 0) {
if (PlantRegistry.ChocolateGrass.canBlockStay(p_149853_1_, i1, j1, k1)) {
p_149853_1_.setBlock(i1, j1, k1, PlantRegistry.ChocolateGrass, 1, 3);
}
} else {
p_149853_1_.getBiomeGenForCoords(i1, k1).plantFlower(p_149853_1_, p_149853_2_, i1, j1, k1);
}
}
++l;
break;
}
}
}
@Override
public boolean canSustainPlant(IBlockAccess world, int x, int y, int z, ForgeDirection direction, IPlantable plantable)
{
return true;
}
}
Dirt Block
package com.chocolatemod.block;
import com.chocolatemod.main.MainRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
public class BlockChocoDirt extends Block {
@SideOnly(Side.CLIENT)
private IIcon field_150008_b;
@SideOnly(Side.CLIENT)
private IIcon field_150010_M;
private static final String __OBFID = "CL_00000228";
protected BlockChocoDirt() {
super(Material.ground);
this.setCreativeTab(MainRegistry.tabChocolateBlocks);
}
/**
* Gets the block's texture. Args: side, meta
*/
/**
* Determines the damage on the item the block drops. Used in cloth and wood.
*/
@SideOnly(Side.CLIENT)
public IIcon getIcon(IBlockAccess p_149673_1_, int p_149673_2_, int p_149673_3_, int p_149673_4_, int p_149673_5_) {
int i1 = p_149673_1_.getBlockMetadata(p_149673_2_, p_149673_3_, p_149673_4_);
if (i1 == 2) {
if (p_149673_5_ == 1) {
return this.field_150008_b;
}
if (p_149673_5_ != 0) {
Material material = p_149673_1_.getBlock(p_149673_2_, p_149673_3_ + 1, p_149673_4_).getMaterial();
if (material == Material.snow || material == Material.craftedSnow) {
return BlockRegistry.chocoGrass.getIcon(p_149673_1_, p_149673_2_, p_149673_3_, p_149673_4_, p_149673_5_);
}
Block block = p_149673_1_.getBlock(p_149673_2_, p_149673_3_ + 1, p_149673_4_);
if (block != BlockRegistry.chocoDirt && block != BlockRegistry.chocoGrass) {
return this.field_150010_M;
}
}
}
return this.blockIcon;
}
/**
* Returns an item stack containing a single instance of the current block type. 'i' is the block's subtype/damage
* and is ignored for blocks which do not support subtypes. Blocks which cannot be harvested should return null.
*/
/**
* returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
*/
/**
* Get the block's damage value (for use with pick block).
*/
}
I didnt know where the ctor was so i put the code right under where i declared the top and filler blocks of the two biomes for the grass and dirt.
What I'm confused about is why on earth these numbers are different between biomes...?
Look at these, changing memory addresses:
@7c616a1 changes to @275566b
@444cc84d changes to @59f40e83
Are these blocks being assigned more than one time?
Is initialiseBlock the only place where you are assigning chocoGrass to something. If so, check where it's being called, and how many times it is called, and put that here. If not, put the other places where you are assigning chocoGrass.
And the name of blocks are the same, I just redid that test. I honestly dont know why they were different before. which I dont understand either. All i know is that programming does unexpected weird **** sometimes. like this biome problem.
I do believe initialize block is the only place i actually assign my blocks values. As for being called, I believe in every single biome class im calling choco grass as my top block and choco dirt as my filler block. And im also doing that in the biomechocolategenbase class. as well as the plant classes. But i only assign it a value once.
Im not sure why, but my custom swamp as well as my custom mountain biomes spawn without a filler block and a top block. Instead they're both just stone wastelands. The custom water and trees spawn, just not the grass/dirt blocks. I would really apreciate the help. -killerjdog51
Chocolate Swamp
Chocolate Mountains
Chocolate Gen Base
It looks like your biomes are being initialised before your blocks.
So, chocoGrass/Dirt is null by the time the biome's ctor is called and top/fillerBlock is assigned?
yea, it didnt work. thanks for trying to help though. although the two biomes are still rocky wastelands.
I am so certain that is the problem, can you try printing those blocks in your biome constructor to the console to see what their value is?
Im not certain i know how to do that. and that wouldnt explain why every other biome in the world works correctly.
Can I have a look at the code of one of the working biomes?
Heres my plains and forest biomes. Both of which spawn normally, except for the extra little stuff like strawberries, mint, and flowers, im still trying to figure out a way for those to work. But otherwise both should be fine examples of biomes that work the way they're supposed to.
Chocolate plains
Chocolate Forest
To check the value of the blocks, just write System.out.println("grass = " + BlockRegistry.chocoGrass + ", dirt = " + BlockRegistry.chocoDirt); in the broken biome's ctor and post the results.
And if your blocks are initialised outside of a function, afaik it's pretty difficult to know when they will be initialised in what order alongside the biomes' initialisation since they are also outside of an explicit call, especially since they're initialised in separate classes? This is probs untrue, but it helps explain why some biomes work and others don't, idk. My knowledge's pretty limited with how java works with globals, I never use them.
heres what the system spit out into the consul:
Chocolate Mountain Biome:
[20:32:10] [Server thread/INFO] [STDOUT]: [com.chocolatemod.worldgen.BiomeGenChocolateMountian:<init>:34]: grass = com.chocolatemod.block.BlockChocoGrass@7c616a1, dirt = com.chocolatemod.block.BlockChocoDirt@444cc84d
Chocolate Swamp Biome:
[20:35:07] [Server thread/INFO] [STDOUT]: [com.chocolatemod.worldgen.BiomeGenChocolateSwamp:<init>:45]: grass = com.chocolatemod.block.BlockChocoGrass@275566b, dirt = com.chocolatemod.block.BlockChocoDirt@59f40e83
I didnt know where the ctor was so i put the code right under where i declared the top and filler blocks of the two biomes for the grass and dirt.
Yeah, the ctor = constructor, you put it in the right spot.
And these messages are... interesting...
Yea, I thought that was a weird message when I saw it. I was hoping you would understand it.
What about the other biomes? What grass and dirt do they have? Do the others have the same grass and dirt as each other? The two biomes you posted have different varieties of chocolate grass and chocolate dirt to each other, which is unusual.
Also post the contents for BlockRegistry.java. It may be useful.
Well the entire dimension and every biome in it should be using the exact same dirt and grass. And my dirt does spawn in these two biomes, but not as the filler block, just like little patches of random dirt, similar to finding dirt deep underground in the surface world. But anyways here's my block registry.
Block Registry
Grass Block
Dirt Block
What I'm confused about is why on earth these numbers are different between biomes...?
Look at these, changing memory addresses:
@7c616a1 changes to @275566b
@444cc84d changes to @59f40e83
Are these blocks being assigned more than one time?
All I can suggest is try putting these:
In a function called initialiseBiome or something, and calling that after the spot you call
I think i might already be doing that. I have everything routed at the main registry class.
I think those are for trees and ores and things?
In BiomeGenChocolateBase, they're being assigned statically.
Is initialiseBlock the only place where you are assigning chocoGrass to something. If so, check where it's being called, and how many times it is called, and put that here. If not, put the other places where you are assigning chocoGrass.
And the name of blocks are the same, I just redid that test. I honestly dont know why they were different before. which I dont understand either. All i know is that programming does unexpected weird **** sometimes. like this biome problem.
[16:49:04] [Server thread/INFO] [STDOUT]: [com.chocolatemod.worldgen.BiomeGenChocolateMountian:<init>:34]: grass = com.chocolatemod.block.BlockChocoGrass@271ddf95, dirt = com.chocolatemod.block.BlockChocoDirt@5cdd240
[16:49:04] [Server thread/INFO] [STDOUT]: [com.chocolatemod.worldgen.BiomeGenChocolateSwamp:<init>:45]: grass = com.chocolatemod.block.BlockChocoGrass@271ddf95, dirt = com.chocolatemod.block.BlockChocoDirt@5cdd240
I do believe initialize block is the only place i actually assign my blocks values. As for being called, I believe in every single biome class im calling choco grass as my top block and choco dirt as my filler block. And im also doing that in the biomechocolategenbase class. as well as the plant classes. But i only assign it a value once.
if it helps i could upload my code to github and let you guys view it.